You are not logged in.
Pages: 1
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
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
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
No worries :-)
Offline
confused.
Why are there 2 volume groups instead of 1 over the 2 disks?
Offline
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
Pages: 1