Re: loop-aes: problem after repartitioning disk

markus reichelt <[email protected]>
Newsgroups gmane.linux.cryptography
Organization still stuck in reorganization mode
Message-ID <[email protected]>
* Juergen Lemke <[email protected]> wrote:

> 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.

Shouldn't be a problem. I successfully migrated encrypted systems to
different partitions.


> 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]

which ones?


> $ 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:

Are all the necessary device nodes present in your initrd image?
namely /dev/hdaX and /dev/sdaX


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

please post your initrd.conf, if all fails I can clone an initrd for
you with it.

-- 
left blank, right bald
loop-AES FAQ: http://mareichelt.de/pub/texts.loop-aes.php
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkjaddIACgkQLMyTO8Kj/uQ/qACeMYCzo/9KP9SgtkUr/gwDTcsx
zx4An3enmsgi16VPrQ1gKNQcevJ9zJLO
=cOdx
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.