Mike DePaulo on 3 Aug 2016 16:52:51 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] Making sure GRUB2 detects your root volume


This is the answer to a question at PLUG central:

Edit "/etc/default/grub"

My Fedora 24 laptop has the contents:

GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rd.lvm.lv=fedora/root
rd.luks.uuid=luks-62c83a70-f5bf-4b20-aab7-78a2b48f3164
rd.lvm.lv=fedora/swap rhgb quiet"
GRUB_DISABLE_RECOVERY="true"

The option you care about is "rd.lvm.lv". "fedora/root" is the volume
group name / logical volume name.

Afterwards, run your command to generate your grub.cfg. This varies
based on whether you are in BIOS or UEFI mode.

BIOS mode:
grub2-mkconfig -o /boot/grub2/grub.cfg

UEFI mode:
A command like this ("fedora" string will differ for your distro):
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug