Help! Command failed: /dev/sdd1 is not a LUKS partition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Folks,

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

There are three things I can think of:
  1. The install program wrote out a new partition table, changing the partition type flag.
  2. The /dev/sdXs were named differently, and I've scribbled all over what was /dev/sdd1.
  3. Mandriva was unaffected by the problem, but Kubuntu is.
In the first case I think I have hope, what steps should I take?  In the second case, I think I'm SOL.  I tried using the Mandriva Live CD, and got the same result, so the second & third cases are ruled out.

===========
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 1
it 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

[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux