4- install boot manager Flashcards Preview

LPIC 1 - Self Study - Linux Academy > 4- install boot manager > Flashcards

Flashcards in 4- install boot manager Deck (11)
Loading flashcards...

what GRUB stands for?

GRand Unified Boot Loader


In Grub menu, what can we edit by pressing e? will these changes be permanent?

You can edit the commands before booting this allows you to change the hard drive you're booting from, the kernel and the initrd. These changes will not be adopted permanently.


what file contains the GRUB configuration?



What are the three parameters of grub title menu?

- The title can be anything we want it to be.
- root - is hard drive and partition. The root or / of our system.
- kernel - the kernel (vmlinux) and where it is stored. rhgb = red hat graphical boot. quiet hides the boot messages
- initrd - the initial ram disk for the kernel



kernel file


if you want to install GRUB on /dev/sdb, what command would you run?

grub-install /dev/sdb or grub-install /dev/hd1



- hitting ¨ e¨ allows for entry editing
- also uses ¨/boot¨ directory has EFI support
- uses /etc/grub.d directory
- grub2-mkconfig - used to build menus for grub



It has:
* grub.cfg
* generated menu file, containing a more complex configuration that is a combination of a number of files when the 'grub2-mkconfig' utility is used
* editing changes here will be lost during the next run of the 'grub2-mkconfig' utility


where the grub2 scripts located?



How do you make changes to grub2 configurations?

Edit files in /etc/grub.d or edit /etc/default/grub


How would you regenerate the GRUB2 menu to include any changes to scripts you may have made. What should you always do before running this command?

as super user: grub-mkconfig > /boot/grub2/grub.cfg

before doing this you should always backup the grub.cfg file using the cp command