Crypto CD doesn't mount correctly

Bug #85085 reported by Sven Bachmann
4
Affects Status Importance Assigned to Milestone
linux-source-2.6.20 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Hi,

I'm very happy to see that now also CDs which are encrypted get automatically detected and ask for a password.

But this doesn't work here correctly. After entering the password it asks again and again.

The kern.log shows the following:

Feb 14 13:18:23 localhost kernel: [10690.308000] device-mapper: table: 254:5: crypt: Device lookup failed
Feb 14 13:18:23 localhost kernel: [10690.308000] device-mapper: ioctl: error adding target to table
Feb 14 13:18:23 localhost kernel: [10690.312000] device-mapper: ioctl: device doesn't appear to be in the dev hash table.

Is there a possibility to add the 254:5 device to the dev hash table?

Bye
  Sven

Revision history for this message
Brian Murray (brian-murray) wrote :

Thanks for your bug report. Which version of Ubuntu and kernel do you have installed? Thanks in advance.

Revision history for this message
Sven Bachmann (basv) wrote :

Hi,

I'm using 7.04 with the 2.6.20-8-generic kernel.

Should I provide you with a lukscrypted iso-image file so you can test it for yourself?

Bye
  Sven

Revision history for this message
Sven Bachmann (basv) wrote :
Revision history for this message
Sven Bachmann (basv) wrote :

After doing some intensiv search through the web, I found out that its not possible to create a dm device for the CD/DVD drive which cryptsetup needs.

echo 0 $(blockdev --getsize /dev/hdc) linear /dev/hdc 0 | dmsetup create hdc

This command fails with the following error message:

device-mapper: table: 254:5: linear: dm-linear: Device lookup failed
device-mapper: ioctl: error adding target to table

What works is, creating a loop device with /dev/hdc and mount the loopdevice with cryptsetup. But this does not work with the automatic cryptpassword dialog.

Revision history for this message
Ben Collins (ben-collins) wrote :

Not a bug then.

Changed in linux-source-2.6.20:
status: Confirmed → Rejected
Revision history for this message
Sven Bachmann (basv) wrote :

Ok, it's not a bug, but could it become a feature request for 7.10? (I think it's a very important feature to handle encrypted eg. backup CDs/DVDs).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.