Section: 38 GRUB Flashcards
GRUB GRUB
What is Grub?
- Vertually all x86 linux systems today use GRUB to handle the early phases fo the system start up.
- Important features of GRUB;
- alternative operating systems can be chosen at boot time
- alternative kernels and /or intial ramdisks can be chosen at boot time for a given operationing system.
- Boot parameters can be easily changed at boot time without having to edit configuration files, etc. in advance.
At boot, a basic configuration file is read.
what are the possible files that are used ?
- /boot/grub/grub.cfg
- /boot/grub2/grub.cfg
- /boot/efi/EFI/redhat/grub.cfg
The GRUB basic configuration file is _____________ by update-grub
or (grub2-mkconfig).
- auto generated
- should not be edited by hand.
-
Education: Grub
- Installing Grub can have several different meanings:
- installing the grub program and associated utilities
- In GRUB 1 there is usaly a program just called grub, but in GRUB2 there are a bunch of utlities with names like grub2-* or grub-*
- how they are packaeged is different depending on the distribution.
- In GRUB 1 there is usaly a program just called grub, but in GRUB2 there are a bunch of utlities with names like grub2-* or grub-*
- Installing the files GRUB needs to operate at boot time under either
- / boot/grub
- or /boot/grub2
- Installing GRUB as the boot loader in the system.
- this can be done :
- at the front of the hard disk
- in a partition
- or accessed via chainloading from one GRUB to another.
- this can be done :
- installing the grub program and associated utilities
- Installing Grub can have several different meanings:
- If I am instlling GRUB 1 what is the program called that i need to install?
-
Education: Grub
- Installing Grub can have several different meanings:
- installing the grub program and associated utilities
- In GRUB 1 there is usaly a program just called grub, but in GRUB2 there are a bunch of utlities with names like grub2-* or grub-*
- how they are packaeged is different depending on the distribution.
- In GRUB 1 there is usaly a program just called grub, but in GRUB2 there are a bunch of utlities with names like grub2-* or grub-*
- Installing the files GRUB needs to operate at boot time under either
- / boot/grub
- or /boot/grub2
- Installing GRUB as the boot loader in the system.
- this can be done :
- at the front of the hard disk
- in a partition
- or accessed via chainloading from one GRUB to another.
- this can be done :
- installing the grub program and associated utilities
- Installing Grub can have several different meanings:
- When installing GRUB as the boot loader , what are the three places i could have it stored?
-
Education: Grub
- Installing Grub can have several different meanings:
- installing the grub program and associated utilities
- In GRUB 1 there is usaly a program just called grub, but in GRUB2 there are a bunch of utlities with names like grub2-* or grub-*
- how they are packaeged is different depending on the distribution.
- In GRUB 1 there is usaly a program just called grub, but in GRUB2 there are a bunch of utlities with names like grub2-* or grub-*
- Installing the files GRUB needs to operate at boot time under either
- / boot/grub
- or /boot/grub2
- Installing GRUB as the boot loader in the system.
- this can be done :
- at the front of the hard disk
- in a partition
- or accessed via chainloading from one GRUB to another.
- this can be done :
- installing the grub program and associated utilities
- Installing Grub can have several different meanings:
- the files that grub needs to operate at boot time are located where?
- Grub Versions:
- In both versions , the first hard drive is denoted:
- hd0
- In both versions , the first hard drive is denoted:
- In Grub what is the name of the first hard drive
- In Grubs configuration file, each stanza has to specify what the root partition is. This is not the same as what we mean when we talk about the root directory system.
- The grub configuration file :
- In each stanza has to specify ________?
- when we are speaking about a root partition wrt GRUB,
- it means the partition contains the kernel itself (in the /boot directory.
- example:
- it is very common for the to have /boot in its own partition . Lets say /dev/sda1
- What does it mean when we are speaking of the root partition wrt GRUB?
- Grub configuation files:
- Remeber that I should not edit the grub.cfg file directly.
Should I edit the grub.cfg directly?
- Grub configuration files :
- There are two locations in the /etc directory that would need attention and are used to rebuild the grub.cfg file when the system is changed with new kernels.
- these are :
- /etc/default/grub
- /etc/grub.d
- these are :
- There are two locations in the /etc directory that would need attention and are used to rebuild the grub.cfg file when the system is changed with new kernels.
what the two locations in the /etc directory that would need to be attention and are used to rebuild the grub.cfg file?
- Grub Configuration files:
- Each of the two files( /etc/default/grub and /etc/grub.d) run in ascending order when the file is updated.
- do the files :
- /etc/default/grub
- /etc/grub.d
- run in ascending or descending order when updated?
- Boot loader specification configuration:
- On systems configured with BLSCFG a person would still use the usual grub commands when installing or updating kernels, etc.
on systems where BLSCFG is installed would I still use the usual grub commands when installing or updating kernels?
- Boot Loader specification configuration:
- When a systen is configured with BLSCFG there are some details to remember:
- while the file /boot/grub2/grub.cfg still exists detailed informantion and options for each kernel that can be chosen appears in :
- /boot/loader/entries
- while the file /boot/grub2/grub.cfg still exists detailed informantion and options for each kernel that can be chosen appears in :
- When a systen is configured with BLSCFG there are some details to remember:
When your system is configured with BLSCFG detailed information and options for each kernel that can be chosen is located where?
With the boot loader specification configuration scheme, each possible kernel
gains an entry in what file?
/boot/loader/entries