I have four disks. I installed kubuntu 9.10 alt amd64, using /dev/sda, /dev/sdb, and /dev/sdc. I had long used /dev/sdd1 (single partition for the whole disk) as luks. I kept all my backups on that disk, and didn't touch it at all during the instillation. The installation program said that /dev/sdd1 was LVM, which I thot was odd, however I've used LVM in the past, so that partition was likely still marked LVM when I started using it as straight luks. I didn't use or set up LVM at all on any of the disks (hence didn't go into the settup LVM part of the install program).
Post install when I run cryptsetup:
thomas@Aristotle:~$ sudo cryptsetup luksOpen /dev/sdd1 backup_crypt
Enter LUKS passphrase:
Command failed: /dev/sdd1 is not a LUKS partition
thomas@Aristotle:~$ sudo cryptsetup luksDump /dev/sdd1
Command failed: /dev/sdd1 is not a LUKS partition
thomas@Aristotle:~$ shoot me now
shoot: command not found
Enter LUKS passphrase:
Command failed: /dev/sdd1 is not a LUKS partition
thomas@Aristotle:~$ sudo cryptsetup luksDump /dev/sdd1
Command failed: /dev/sdd1 is not a LUKS partition
thomas@Aristotle:~$ shoot me now
shoot: command not found
There are three things I can think of:
- The install program wrote out a new partition table, changing the partition type flag.
- The /dev/sdXs were named differently, and I've scribbled all over what was /dev/sdd1.
- Mandriva was unaffected by the problem, but Kubuntu is.
===========
I have another weird, lessor problem:
At boot time, my new luks partition /dev/sda3, says "command failed, bad key or options" for all three tries then boots (because it is opened and just doesn't know it). I tested this by not giving it the passphrase, in which case it won't boot, but if I type the passphrase right the first time, and blow off the other 2 tries, it boots. I thot this might be a btrfs problem, so post boot, I formatted an empty luks partition as btrfs, and tried unlocking it. No problem. To get root btrfs, I followed the instructions here: http://ubuntuforums.org/showthread.php?t=1389279
============
Last issue:
I've got more drives to add to btrfs, but how will it know it needs to unlock the other drives to open the root partition? It's only unlocking /dev/sda3 during boot, because /dev/sdb2 and /dev/sdc2 aren't being used (even tho, I've got them in the crypttab). From the fstab
/dev/mapper/sda3_crypt / btrfs error=remount-ro,compress 0 1it looks like it just needs the one. Also, they all have the same passphrase, so I'd like to unlock them all at once... which mandriva did, but kubuntu doesn't. Ideas?
--
Cheers,
~Thomas
Samuel Goldwyn - "I'm willing to admit that I may not always be right, but I am never wrong."
_______________________________________________ dm-crypt mailing list dm-crypt@xxxxxxxx http://www.saout.de/mailman/listinfo/dm-crypt