Re: [rock-user] Encrypted filessystem doesn't work ?

Benjamin Schieder <blindcoder-1k+CIuW/[email protected]> Fri, 28 Apr 2006 14:43:59 +0200
Newsgroups gmane.linux.distributions.rock.user
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tuan Anh TRINH wrote:
>>Yes, fake just pointed me in IRC that rev 6945 still has the old mkinitrd. You
>>might want to try a newer version:
>>http://iso.rocklinux.de/rock-ftp/unofficial/fake/test-releases/crystal_test-rev7469-pmmx_cd1.iso
>>
>>In this version you also don't have to append init=/linuxrc anymore, though
>>root=/dev/ram0 is still necessary.
> 
> I've download and install it but it seems not work. During the setup 
> there some errors as in:
> http://www.vhc.com.vn/26/capture-enc-01.JPG
> http://www.vhc.com.vn/26/capture-enc-02.JPG
> http://www.vhc.com.vn/26/capture-enc-03.JPG
> http://www.vhc.com.vn/26/capture-enc-04.JPG
> and after reboot, it still as me to set the password for encryption and 
> when I enter the password (three time), I got that:
> http://www.vhc.com.vn/26/capture-enc-05.JPG

Okay, most of these error messages are related to incomplete udev support in the
initrd. I'm working on that.
Two things to note:
When you encrypt a filesystem you have to comment the corresponding line in
/etc/fstab. I think this should probably be done automatically without user
interaction.
The other problem is this:
After encryption, the initrd adjusts itself to recognize the filesystem as
encrypted. It seems that this isn't failsafe yet. I will look into this, too.
Right now your filesystem is actually encrypted _twice_, because after the first
encryption the initrd did not set itself from 'encrypt' to 'encrypted'.

In the meantime, you can do this after encryption:
- - run stone
- - go to encrypted filesystems menu
- - check that your filesystem is set to 'encrypted'
- - leave stone
- - check that /boot (if any) is mounted
- - run mkinitrd

I will look into fixing that, too. I've opened two bugreports for this:
Bug #247: https://www.rocklinux.net/flyspray/index.php?do=details&id=247
Bug #248: https://www.rocklinux.net/flyspray/index.php?do=details&id=248

Thanks for testing and reporting these problems!

Greetings,
	Benjamin

- --
Today, memory either forgets things when you don't want it to,
or remembers things long after they're better forgotten.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFEUg4Or0OTeImXvg8RAvTKAJ4kc63z8qzmVa93HDSuLgtpM+0nlwCeLhJA
yLjqH2cVkFum2XUSxGs9ybc=
=3JGl
-----END PGP SIGNATURE-----