[Bug 160083] Re: cryptsetup fails for dmraid device
Launchpad Bug Tracker
160083 at bugs.launchpad.net
Wed Jun 13 04:17:44 UTC 2012
[Expired for cryptsetup (Ubuntu) because there has been no activity for
60 days.]
** Changed in: cryptsetup (Ubuntu)
Status: Incomplete => Expired
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to cryptsetup in Ubuntu.
https://bugs.launchpad.net/bugs/160083
Title:
cryptsetup fails for dmraid device
Status in “cryptsetup” package in Ubuntu:
Expired
Status in “dmraid” package in Ubuntu:
Invalid
Bug description:
Binary package hint: cryptsetup
When using cryptsetup on a dmraid device (fakeraid), cryptsetup isn't
able to mount correctly root partition.
For example, I've two SATA drives configured in RAID-1 (mirror) on an
Intel raid controller supported by dmraid. My devices appears like
that :
$ ls -al /dev/mapper/
total 0
drwxr-xr-x 2 root root 200 Nov 4 22:10 .
drwxr-xr-x 13 root root 14740 Nov 4 22:10 ..
crw-rw---- 1 root root 10, 63 Nov 4 22:05 control
brw-rw---- 1 root disk 254, 0 Nov 4 22:10 isw_djjhbadhab_Volume0
brw-rw---- 1 root disk 254, 1 Nov 4 22:10 isw_djjhbadhab_Volume01
brw-rw---- 1 root disk 254, 2 Nov 4 22:10 isw_djjhbadhab_Volume02
brw-rw---- 1 root disk 254, 3 Nov 4 22:10 isw_djjhbadhab_Volume05
brw-rw---- 1 root disk 254, 4 Nov 4 22:10 isw_djjhbadhab_Volume06
brw-rw---- 1 root disk 254, 5 Nov 4 22:10 isw_djjhbadhab_Volume07
So I've setup encrypted partitions like that :
$ cat /etc/crypttab
# <target name> <source device> <key file> <options>
root_crypto /dev/mapper/isw_djjhbadhab_Volume05 none cipher=aes-cbc-plain,size=256,hash=sha256,tries=5,loud
swap_crypto /dev/mapper/isw_djjhbadhab_Volume06 /dev/urandom swap
$ cat /etc/fstab
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/mapper/isw_djjhbadhab_Volume02 /boot ext3 defaults 0 2
/dev/mapper/root_crypto / ext3 defaults,errors=remount-ro 0 1
/dev/mapper/swap_crypto none swap sw 0 0
initramfs has been rebuild via : update-initramfs -u -k all
I use grub to boot using that kind of menu.lst :
title Ubuntu 7.10, kernel 2.6.22-14-generic
root (hd0,1)
kernel /vmlinuz-2.6.22-14-generic root=/dev/mapper/root_crypto ro irqpoll
initrd /initrd.img-2.6.22-14-generic
But when my system boot, I got a : "cryptsetup: unknown fstype, bad password or options?"
So I wait for initramfs to give me a shell, and as a workaround I do :
cryptsetup remove root_crypto
cryptsetup -y create root_crypto /dev/mapper/isw_djjhbadhab_Volume05
mount -t ext3 /dev/mapper/root_crypto /root
CTRL-D
and the boot process just continue...
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cryptsetup/+bug/160083/+subscriptions
More information about the foundations-bugs
mailing list