You are not logged in.

#1 2012-08-10 21:52:34

saltire
Member
Registered: 2012-08-10
Posts: 1

[SOLVED] Unable to install grub with encrypted partition

Hi,

I'm doing a fresh Arch install with an encrypted root partition. I have an unencrypted boot partition at /dev/sda1, and /dev/sda2 is encrypted with LUKS (enabled as "main"), with two LVM volumes (/ and /home) on top of that.

I'm still booted into the live installer, and I'm chrooted into the root filesystem on /mnt. When I try to run grub-install /dev/mapper/main, i get this message: /usr/sbin/grub-bios-setup: error: unable to identify a filesystem in cryptouuid/(UUID); safety check can't be performed. ...where (UUID) is that of /dev/sda2.

The /boot and /home partitions are mounted properly. I added encrypt and lvm2 to mkinitcpio.conf and rebuilt the ramdisk. I set USELVM="yes" in rc.conf. I've added the LVM partitions to fstab. Not sure what else I can do to get it working; any suggestions?

Thanks!



EDIT:
Wow, I just realized my mistake here: trying to install grub to /dev/mapper/main which is, of course, the encrypted partition at /dev/sda2. I should have been running grub-install /dev/sda. Oops.

Last edited by saltire (2012-08-13 18:12:35)

Offline

Board footer

Powered by FluxBB