[pkg-cryptsetup-devel] Bug#554600: luksClose fails:Device (null) doesn't exist or access denied.

Michael Biebl biebl at debian.org
Thu Nov 5 15:24:19 UTC 2009


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

Hi,

I have an external usb hard drive, with a luks encrypted vfat partition.
To mount the drive I use

# cryptsetup luksOpen /dev/sdb2 crypto
<insert password>
# mount /dev/mapper/crypto /mnt/crypto
I now (accidentally) pull the usb plug, so the physical /dev/sdb2 is
gone
The drive is still shown as mounted, but I can run
# umount /mnt/crypto
and the mount is gone.
The dm device is still there, though
# ls -al /dev/mapper/crypto 
brw-rw---- 1 root disk 254, 0  5. Nov 16:19 /dev/mapper/crypto
And a luksClose fails
# cryptsetup luksClose /dev/mapper/crypto
Device (null) doesn't exist or access denied.



-- Package-specific info:
-- /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-2.6.31-1-686 root=UUID=60a26179-e292-48e5-ae26-eb0a20ed9f34 ro quiet

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

-- /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
LABEL=Debian	/               ext4    errors=remount-ro 0       1
LABEL=Home	/home           ext4    defaults 	0       2
LABEL=Swap	none            swap    sw              0       0
LABEL=Data	/mnt/data	ntfs-3g	user,auto	0	0

-- lsmod
Module                  Size  Used by
sha256_generic         11492  0 
cbc                     3352  0 
nls_utf8                1664  0 
nls_cp437               5464  0 
vfat                    9316  0 
fat                    45708  1 vfat
usb_storage            50908  0 
vboxnetflt             80504  0 
vboxnetadp             74176  0 
vboxdrv               112760  1 vboxnetflt
michael_mic             2312  4 
arc4                    1712  2 
ecb                     2724  2 
lib80211_crypt_tkip     8436  1 
aes_i586                8312  1 
aes_generic            27640  1 aes_i586
lib80211_crypt_ccmp     5064  1 
radeon                126556  2 
drm                   150200  3 radeon
ppdev                   6172  0 
lp                      8656  0 
sco                     9744  2 
bridge                 45972  0 
stp                     2260  1 bridge
bnep                   11448  2 
rfcomm                 33432  4 
l2cap                  19672  16 bnep,rfcomm
acpi_cpufreq            8104  0 
cpufreq_stats           3868  0 
cpufreq_conservative     6780  0 
cpufreq_userspace       2936  0 
cpufreq_powersave       1408  0 
binfmt_misc             7588  1 
fuse                   58144  3 
loop                   14264  0 
firewire_sbp2          13936  0 
dm_crypt               12324  0 
dm_mod                 65364  1 dm_crypt
pcmcia                 26196  0 
snd_intel8x0m          13044  0 
snd_intel8x0           28036  1 
snd_ac97_codec         99668  2 snd_intel8x0m,snd_intel8x0
snd_pcm_oss            35316  0 
ac97_bus                1628  1 snd_ac97_codec
snd_mixer_oss          13528  1 snd_pcm_oss
snd_pcm                69984  4 snd_intel8x0m,snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_seq_midi            6096  0 
snd_rawmidi            20452  1 snd_seq_midi
snd_seq_midi_event      6992  1 snd_seq_midi
snd_seq                47932  2 snd_seq_midi,snd_seq_midi_event
snd_timer              19000  2 snd_pcm,snd_seq
yenta_socket           22620  1 
rsrc_nonstatic         10616  1 yenta_socket
snd_seq_device          6780  3 snd_seq_midi,snd_rawmidi,snd_seq
pcmcia_core            33584  3 pcmcia,yenta_socket,rsrc_nonstatic
smsc_ircc2             14580  0 
parport_pc             23704  1 
ipw2200               127880  0 
irda                  109764  1 smsc_ircc2
snd                    54436  12 snd_intel8x0m,snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
libipw                 25652  1 ipw2200
lib80211                6484  4 lib80211_crypt_tkip,lib80211_crypt_ccmp,ipw2200,libipw
joydev                  9252  0 
btusb                  11120  2 
bluetooth              52820  9 sco,bnep,rfcomm,l2cap,btusb
crc_ccitt               1896  1 irda
soundcore               6844  1 snd
rfkill                 18644  1 bluetooth
snd_page_alloc          8628  3 snd_intel8x0m,snd_intel8x0,snd_pcm
i2c_i801                8948  0 
shpchp                 28744  0 
button                  5488  0 
pci_hotplug            25820  1 shpchp
rng_core                3996  0 
parport                33408  3 ppdev,lp,parport_pc
serio_raw               5108  0 
container               3460  0 
evdev                   8832  15 
pcspkr                  2428  0 
battery                 6348  0 
processor              36744  2 acpi_cpufreq
ac                      3124  0 
psmouse                40736  0 
ext4                  284768  2 
mbcache                 7488  1 ext4
jbd2                   73860  1 ext4
crc16                   1840  1 ext4
sg                     21552  0 
sr_mod                 14476  0 
sd_mod                 31828  5 
crc_t10dif              1716  1 sd_mod
cdrom                  31704  1 sr_mod
ide_pci_generic         3784  0 
ata_generic             4500  0 
piix                    6064  0 
ide_core               97596  2 ide_pci_generic,piix
ata_piix               22716  4 
uhci_hcd               20476  0 
libata                162868  2 ata_generic,ata_piix
firewire_ohci          20432  0 
8139cp                 18708  0 
ehci_hcd               32428  0 
intel_agp              25372  1 
8139too                21716  0 
mii                     5048  2 8139cp,8139too
firewire_core          45208  2 firewire_sbp2,firewire_ohci
crc_itu_t               1892  1 firewire_core
wbsd                   13028  0 
scsi_mod              142980  6 usb_storage,firewire_sbp2,sg,sr_mod,sd_mod,libata
usbcore               141072  5 usb_storage,btusb,uhci_hcd,ehci_hcd
nls_base                7188  5 nls_utf8,nls_cp437,vfat,fat,usbcore
agpgart                33088  2 drm,intel_agp
mmc_core               51588  1 wbsd
video                  19856  0 
output                  2872  1 video
thermal                13720  0 
fan                     4460  0 
thermal_sys            14396  4 processor,video,thermal,fan
radeonfb               59072  1 
fb_ddc                  1988  1 radeonfb
i2c_algo_bit            5428  1 radeonfb
i2c_core               21736  5 drm,i2c_i801,radeonfb,fb_ddc,i2c_algo_bit


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

Kernel: Linux 2.6.31-1-686 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages cryptsetup depends on:
ii  dmsetup                    2:1.02.38-2.1 The Linux Kernel Device Mapper use
ii  libc6                      2.10.1-5      GNU C Library: Shared libraries
ii  libdevmapper1.02.1         2:1.02.38-2.1 The Linux Kernel Device Mapper use
ii  libpopt0                   1.15-1        lib for parsing cmdline parameters
ii  libuuid1                   2.16.1-4      Universally Unique ID library

cryptsetup recommends no packages.

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

-- no debconf information





More information about the pkg-cryptsetup-devel mailing list