You are not logged in.

#1 2009-10-18 15:34:15

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Installation of latest Iso with encryption

Hello guys,

I followed the guide to encrypt my data. Currently I'm at the installation point "Manage filesystems".

I have the following partition layout:

/dev/sda1 raw->no_fs
/dev/sda2 raw->no_fs
/dev/mapper/lvm raw->no_fs
/dev/mapper/main-home raw->no_fs
/dev/mapper/main-root raw->no_fs
/dev/mapper/main-swp raw->no_fs

How do I have to set up it that it works properly?

I tried it that way, but that isn't working:

/dev/sda1 raw->ext4, /boot
/dev/sda2 raw->no_fs
/dev/mapper/lvm raw->no_fs
/dev/mapper/main-home raw->ext4, /home
/dev/mapper/main-root raw->ext4, /
/dev/mapper/main-swp raw->swap, swap

After reboot I'm going to be dropped to the recovery shell because he can't find the main-root.

Offline

#2 2009-10-18 18:58:56

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Installation of latest Iso with encryption

Does nobody have used this with the new arch install image?

Offline

#3 2009-10-18 19:38:15

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: Installation of latest Iso with encryption

orschiro wrote:

Hello guys,

I followed the guide to encrypt my data. Currently I'm at the installation point "Manage filesystems".

I have the following partition layout:

/dev/sda1 raw->no_fs
/dev/sda2 raw->no_fs
/dev/mapper/lvm raw->no_fs
/dev/mapper/main-home raw->no_fs
/dev/mapper/main-root raw->no_fs
/dev/mapper/main-swp raw->no_fs

How do I have to set up it that it works properly?

I tried it that way, but that isn't working:

/dev/sda1 raw->ext4, /boot
/dev/sda2 raw->no_fs
/dev/mapper/lvm raw->no_fs
/dev/mapper/main-home raw->ext4, /home
/dev/mapper/main-root raw->ext4, /
/dev/mapper/main-swp raw->swap, swap

After reboot I'm going to be dropped to the recovery shell because he can't find the main-root.

I wonder how you managed to make it so that there is no filesystem (anymore?) on /dev/sda2 and /dev/mapper/lvm, because those /dev/mapper entries can only exist (and appear) when there is something below it that supports it (eg: for lvm logical volumes you need a volume group, for a volume group you need a physical volume, etc).
so how did you do this?

what you probably want is dm_crypt on /dev/sda2 (with label sda2_crypt or something), then make /dev/mapper/sda2_crypt the lvm physical volume, then make volume group 'main' then the rest is OK.

if you still have doubts: look at this example, it has exactly this layout: http://github.com/Dieterbe/aif/blob/mas … all-on-sda


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

Board footer

Powered by FluxBB