[pkg-cryptsetup-devel] Bug#574126: cryptsetup: Cannot open LUKS device if device mapping still exists

Florian fbugs at gmx.net
Tue Mar 16 13:47:13 UTC 2010


Package: cryptsetup
Version: 2:1.1.0~rc2-1
Severity: normal

I regularly get into a situation where I cannot mount my external USB disk anymore,
and I am not aware of a working workaround at the moment.
If it happens that the USB disk gets disconnected (in my case because of some file system
errors, but I guess it would be sufficient to just accidently plug out the cable, ...),
then Gnome asks for the passphrase of the LUKS device again--entering the passphrase results
in the error message:

----------------
Unable to mount
Error unlocking device: cryptsetup exited with exit code 239: Device 
devkit-disks-luks-uuid-xxx already exists.
----------------

Trying to remove the device mapping using

sudo cryptsetup luksClose devkit-disks-luks-xxx

results in: "Device (null) doesn't exist or access denied.", but it can be found in /dev/mapper/.
This looks like bug #554600.

Any other workaround other than rebooting?

Not sure if this is #509068, and it is also known it Ubuntu:
LP#484429

Thanks, Florian



-- Package-specific info:
-- /proc/cmdline
BOOT_IMAGE=//vmlinuz-2.6.32-trunk-686 root=UUID=43fcea2b-a862-41c0-9d0c-ba9f0da6632a ro quiet

-- /etc/crypttab
# <target name>	<source device>		<key file>	<options>

-- /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/sda5       /               ext3    defaults,relatime,errors=remount-ro 0       1
/dev/sda1       /boot           ext3    defaults        0       2
/dev/sda8       /home           xfs     defaults,noatime        0       2
/dev/sda6       /var            ext3    defaults,relatime        0       2
/dev/sda7       none            swap    sw              0       0
/dev/hda        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0


-- lsmod
Module                  Size  Used by
sha256_generic         10748  2 
aes_i586                6816  2 
aes_generic            25738  1 aes_i586
cbc                     2047  1 
nls_utf8                 908  1 
nls_cp437               4489  1 
vfat                    6506  1 
fat                    34776  1 vfat
ppdev                   4058  0 
lp                      5570  0 
sco                     5837  2 
bridge                 32851  0 
stp                      996  1 bridge
bnep                    7376  2 
l2cap                  21677  3 bnep
crc16                   1027  1 l2cap
bluetooth              36259  5 sco,bnep,l2cap
rfkill                 10196  2 bluetooth
battery                 3782  0 
binfmt_misc             4875  1 
fuse                   43554  1 
nfsd                  192383  2 
nfs                   205624  3 
lockd                  49301  2 nfsd,nfs
fscache                24422  1 nfs
nfs_acl                 1695  2 nfsd,nfs
auth_rpcgss            25068  2 nfsd,nfs
sunrpc                134156  14 nfsd,nfs,lockd,nfs_acl,auth_rpcgss
xfs                   414272  1 
exportfs                2586  2 nfsd,xfs
smsc47b397              2279  0 
loop                    9721  0 
dm_crypt                9059  1 
dm_mod                 45854  3 dm_crypt
snd_hda_codec_realtek   162851  1 
snd_hda_intel          15263  0 
snd_hda_codec          45998  2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep               4054  1 snd_hda_codec
snd_pcm                47350  2 snd_hda_intel,snd_hda_codec
snd_seq                35303  0 
snd_timer              12258  2 snd_pcm,snd_seq
snd_seq_device          3673  1 snd_seq
snd                    33551  8 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_seq,snd_timer,snd_seq_device
parport_pc             15799  1 
parport                22554  3 ppdev,lp,parport_pc
pcspkr                  1207  0 
psmouse                44409  0 
serio_raw               2916  0 
wmi                     3575  0 
rng_core                2178  0 
processor              25803  0 
evdev                   5609  10 
soundcore               3450  1 snd
snd_page_alloc          4977  2 snd_hda_intel,snd_pcm
ext3                   93828  4 
jbd                    31965  1 ext3
mbcache                 3762  1 ext3
usbhid                 26784  0 
hid                    50545  1 usbhid
sd_mod                 25717  10 
crc_t10dif              1012  1 sd_mod
ide_cd_mod             21044  0 
cdrom                  26487  1 ide_cd_mod
ide_pci_generic         1924  0 
usb_storage            29825  2 
ata_generic             2015  0 
i915                  217023  3 
uhci_hcd               15953  0 
ata_piix               16513  6 
drm_kms_helper         17183  1 i915
drm                   107507  4 i915,drm_kms_helper
i2c_algo_bit            3497  1 i915
ehci_hcd               27230  0 
piix                    3564  0 
tg3                    88049  0 
libata                113728  2 ata_generic,ata_piix
i2c_core               12612  3 i915,drm,i2c_algo_bit
intel_agp              20145  1 
floppy                 40923  0 
ide_core               63850  3 ide_cd_mod,ide_pci_generic,piix
libphy                 11238  1 tg3
usbcore                97930  5 usbhid,usb_storage,uhci_hcd,ehci_hcd
nls_base                4541  5 nls_utf8,nls_cp437,vfat,fat,usbcore
scsi_mod              101073  3 sd_mod,usb_storage,libata
video                  14605  1 i915
output                  1204  1 video
button                  3598  1 i915
agpgart                19516  2 drm,intel_agp
thermal                 9206  0 
fan                     2586  0 
thermal_sys             9378  4 processor,video,thermal,fan


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages cryptsetup depends on:
ii  dmsetup                      2:1.02.39-1 The Linux Kernel Device Mapper use
ii  libc6                        2.10.2-6    Embedded GNU C Library: Shared lib
ii  libdevmapper1.02.1           2:1.02.39-1 The Linux Kernel Device Mapper use
ii  libpopt0                     1.15-1      lib for parsing cmdline parameters
ii  libuuid1                     2.16.2-0    Universally Unique ID library

cryptsetup recommends no packages.

Versions of packages cryptsetup suggests:
ii  dosfstools                    3.0.9-1    utilities for making and checking 
ii  initramfs-tools [linux-initra 0.93.4     tools for generating an initramfs
ii  udev                          151-2      /dev/ and hotplug management daemo

-- no debconf information





More information about the pkg-cryptsetup-devel mailing list