You are not logged in.

#1 2011-12-07 22:32:21

vbim0nk
Member
Registered: 2011-12-05
Posts: 19

[solved] Encryption Issues

This is my first attempt at installing Arch, I have previously used Ubuntu and Fedora. Before messing with my actual system, I decided to test out what I want my setup to be in VirtualBox. I am trying to set up encryption and am running into some issues. This is what I want to do:

/dev/sda1 100 MB /boot
/dev/sda5 extended encrypted partition containing the following:
-Volume Group named vgone
--Logical volume for swap
--Logical volume for root

/dev/sdb5 extended encrypted partition
--Volume Group named vgtwo
--Logical Volume for home

I added the lvm2 and encrypt hooks to the mkinitcpio, and my grub line looks like

kernel /vmlinuz=linux cryptdevice=/dev/sda5:vgone root=/dev/mapper/vgone-root ro

I get the following error and am dropped to a recovery shell
ERROR: Unable to determine major/minor number of root device '/dev/mapper/vgone-root'

Any and all help is appreciated.

Last edited by vbim0nk (2011-12-07 23:46:44)

Offline

#2 2011-12-07 22:52:40

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

Re: [solved] Encryption Issues

Just to clarify, you have a LVM over LUKS setup?

I have LVM over LUKS over LVM. For your reference, my configs look like this:

$ sudo cat /boot/grub/grub.cfg | grep cryptdevice
linux	/vmlinuz-linux root=/dev/mapper/cryptvg-root cryptdevice=/dev/mapper/vg-crypt:root rootfstype=ext4 ro  quiet
$ grep ^HOOKS /etc/mkinitcpio.conf 
HOOKS="base udev autodetect pata scsi sata keymap lvm2 encrypt lvm2 filesystems usbinput"

And my setup is as explained in this thread.

Last edited by /dev/zero (2011-12-07 22:53:14)

Offline

#3 2011-12-07 23:43:02

vbim0nk
Member
Registered: 2011-12-05
Posts: 19

Re: [solved] Encryption Issues

Yes, I have LVM over LUKS, as in the partition is first encrypted with LUKS and then I did luksOpen /dev/sda5 crypt1 and then pvcreate /dev/mapper/crypt1 and so forth. I was looking through that thread, and I think I figured out what my problem was. I put my lvm2 hook before my encrypt hook, so my lvm wasn't activated. I fixed that and everything is working properly now. Thanks for the help.

Offline

#4 2011-12-07 23:52:37

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

Re: [solved] Encryption Issues

No worries :-)

Offline

#5 2011-12-08 01:00:54

fschiff
Member
Registered: 2011-10-06
Posts: 71

Re: [solved] Encryption Issues

confused.
Why are there 2 volume groups instead of 1 over the 2 disks?

Offline

#6 2011-12-08 13:14:01

vbim0nk
Member
Registered: 2011-12-05
Posts: 19

Re: [solved] Encryption Issues

I changed my setup a little and got rid of the second vg and just have it as a normal luks partition that I mount with crypttab. The first hard drive is a small SSD, so I just leave that entirely for my root/swap partitions and put /home on the second disk.

Offline

Board footer

Powered by FluxBB