loop-aes: problem after repartitioning disk

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

 



Dear all

Until yesterday I had a hard drive with three partitions, one used as a root partition encrypted with loop-aes, another unencrypted partition and swap space. I had to delete the unencrypted partition and divide it into two smaller, separate partitions, which I did using cfdisk. As a result, cfdisk shows that the partition encrypted with loop-aes changed names from /dev/hda3 to /dev/hda4. 

After this change I could not boot my encrypted system from the usual usb stick. I booted using a knoppix cdrom, mounted my usb key under /boot and edited initrd.conf on the usb key so that it read

CRYPTROOT=/dev/hda4

(rather than /dev/hda3) and then ran

$ sudo ./build-initrd.sh /boot/initrd.conf
[this copied a bunch of files and only generated warnings about not being able to preserve permissions on two files]
$ sudo umount /boot
$ sudo syslinux /dev/sdc

But this did not work. When I now try to boot from the usb stick, I get this message:

Error: gpg key file decryption failed
Command "/lib/losetup -e AES256   -I 0 -K /lib/rootkey.gpg -G /lib /dev/loop5 /dev/hda4" returned error

even after having repeatedly inserted the correct passphrase. I booted back into knoppix and verified, running "gpg -d rootkey.gpg", that I can still correctly decrypt it using my passphrase.

Where did I mess up? Any help would be greatly appreciated.

Best

Juergen




__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. 
http://mail.yahoo.com 

-
Linux-crypto:  cryptography in and on the Linux system
Archive:       http://mail.nl.linux.org/linux-crypto/



[Index of Archives]     [Kernel]     [Linux Crypto]     [Gnu Crypto]     [Gnu Classpath]     [Netfilter]     [Bugtraq]
  Powered by Linux