You are not logged in.

#1 2014-03-31 03:18:57

oni5115
Member
Registered: 2009-01-10
Posts: 38

Grub-Install error ... set GRUB_ENABLE_CRYPTODISK=1

I'm following the beginner's guide while also looking at the SSD and dm-crypt/LUKS pages.

I've got my SSD partitioned as:
/dev/sdh1 is /boot
dev/sdh2 is  LUKS container root_crypt  as /

I've mounted /dev/mapper/root_crypt as /mnt and followed the beginner's guide until the "Install and configure a bootloader."

Exceptions:
I modified the /etc/mkinitcpio.conf
HOOKS="base udev autodetect modconf keyboard usbinput block encrypt filesystems fsck"

# mkinitcpio -p linux

Worked just fine.

# pacman -S grub
# grub-install --target=i386-pc --recheck /dev/sdh

The output I get is:

grub-install: error attempt to install to encrypted disk without cryptodisk enabled.  Set GRUB_ENABLE_CRYPTODISK=1 in file /etc/default/grub

I tried to follow those directions, but when running "grub-install --target=i386-pc --recheck /dev/sdh"  I got the same message again.

After doing some more reading: (https://wiki.archlinux.org/index.php/Dm … oot_loader)
I edited /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAUL="quiet cryptdevice=/dev/sdh2:root_crypt"
grub-install --target=i386-pc --recheck /dev/sdh

Has the exact same output as before.

I'm just not sure what else I need to do for this.

Offline

#2 2014-03-31 18:37:16

OlaffTheGreat
Member
Registered: 2013-06-03
Posts: 107

Re: Grub-Install error ... set GRUB_ENABLE_CRYPTODISK=1

Hi,

I don't see where your error comes from.

However.
I do have also an encrypted system with dm_crypt/luks on lvm on a M4 SSD.
It works fine. I use also a usbkey to unlock it at boot.
I did follow also the arch wiki pages.

I do find some differences with your configuration.
My /etc/mkinitcpio.conf:
HOOKS="base udev autodetect modconf block filesystems keyboard fsck"

My /etc/default/grub:
GRUB_CMDLINE_LINUX_DEFAULT="quiet cryptdevice=/dev/sda2:root cryptkey=/dev/disk/by-uuid/xxxxxxxxxxxxxx:ext2:/secretkey allow-discards root_trim=yes"


Lenovo Thinkpad x230 i5-3320M 2.6GHz 250GB SSD (M4) 16GB
SSD | SeaBIOS | GPT | BTRFS | OpenRC | Xfce4 | Zsh | Tmux | Spacemacs
* "Aware Newbie" *
Ibus IM for language script support (e.g. 日本語 - 中文)

Offline

Board footer

Powered by FluxBB