Can't mount a LUKS volume after unmounting
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-volume-manager (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: gnome-volume-
I have a USB disk with a LUKS ext3 encrypted partition. When I plug it in for the first time, gnome detects the encrypted partition, asks me for the password, and mounts the device. If I unmount it and them plug it in again, it fails to mount the volume again. In nautilus "computer:/// ", the volume name is still there. When I double click it to access it it says:
"Unable to mount the volume xpto"
Details:
"mount: special device /dev/mapper/
However, if I use cryptsetup and mount manually, I can mount the volume.
I'm using Gutsy, as updated on 19/10/2007. This problem did not occur with Feisty. Maybe this is a udev or kernel related issue. I noticed in Feisty that if I unmounted a USB device and mounted it again, the device name would be different. Eg., if this device was /dev/sdb when mounted for the first time, the second time it got mounted it would be /dev/sdc, the third time /dev/sdd, etc. With Gutsy, if I mount the device again it's name is again /dev/sdb. Maybe the gnome volume manager associates this device name to the particular LUKS device map created the first time, and tries to mount it again, without calling cryptsetup. Then it fails, because the mapper device does not exist anymore and cryptsetup needs to be called to create a new one.
I should just add that if the device name for this device is changed (for instance, if I mount another USB device first), then when I try to mount it a second time, gnome will ask for the password and mount it correctly.