-
Notifications
You must be signed in to change notification settings - Fork 8
GRUB
Henryk Paluch edited this page Dec 22, 2023
·
1 revision
GRUB is currently standard boot loader for Linux (original loader is LILO, but it was for some reason replaced by GRUB).
There are actually two very different GRUB releases:
- GRUB version 1 - there was manually created
/boot/grub/menu.lst
and on every kernel install/removal it has to be carefully editect by scripts - GRUB version 2 - now fully generates
/boot/grub/grub.cfg
(you should NOT edit it manually) using wrapper or commandgrub-mkconfig
which runs all executable scripts from/etc/grub.d/*
GRUB 2 has some issues with BSD partitions - I'm not sure yet which one.
Here is example from /sbin/grub-mkconfig
### How to get device for root filesystem:
/sbin/grub-probe --target=device /
Output: /dev/mapper/pvessd-root
# but this command does not like some BSD partitions (fortunately just warning):
/sbin/grub-probe --device /dev/mapper/pvessd-root --target=fs
# WARNINGS:
/sbin/grub-probe: warning: Discarding improperly nested partition (hostdisk//dev/sdb,gpt5,bsd1).
...
/sbin/grub-probe: warning: Discarding improperly nested partition (hostdisk//dev/sdb,gpt5,bsd16).
Output: ext2
Copyright © Henryk Paluch. All rights reserved.
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License