grub2 notes

From thelinuxwiki
Jump to: navigation, search

system was booting in bios compat mode, with GPT disk and grub2 with luks encrypted root and LVM

Error message: on boot, system was complaining about invalid root / block device

Solution: edit /etc/default/grub file and added my required parameters to

GRUB_CMDLINE_LINUX=

example:

GRUB_CMDLINE_LINUX="root=/dev/ram0 crypt_root=/dev/vg1/root"

AND

the line below was uncommented

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
GRUB_DISABLE_LINUX_UUID=true            <<< uncommented