Section: 38 GRUB Flashcards

1
Q

GRUB GRUB

What is Grub?

A
  • Vertually all x86 linux systems today use GRUB to handle the early phases fo the system start up.
  • Important features of GRUB;
    1. alternative operating systems can be chosen at boot time
    2. alternative kernels and /or intial ramdisks can be chosen at boot time for a given operationing system.
    3. Boot parameters can be easily changed at boot time without having to edit configuration files, etc. in advance.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

At boot, a basic configuration file is read.

what are the possible files that are used ?

A
  • /boot/grub/grub.cfg
  • /boot/grub2/grub.cfg
  • /boot/efi/EFI/redhat/grub.cfg
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The GRUB basic configuration file is _____________ by update-grub

or (grub2-mkconfig).

A
  • auto generated
    • should not be edited by hand.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
  • Education: Grub
    • Installing Grub can have several different meanings:
      1. 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.
      2. Installing the files GRUB needs to operate at boot time under either
        1. / boot/grub
        2. or /boot/grub2
      3. Installing GRUB as the boot loader in the system.
        1. this can be done :
          1. at the front of the hard disk
          2. in a partition
          3. or accessed via chainloading from one GRUB to another.
A
  • If I am instlling GRUB 1 what is the program called that i need to install?
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  • Education: Grub
    • Installing Grub can have several different meanings:
      1. 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.
      2. Installing the files GRUB needs to operate at boot time under either
        1. / boot/grub
        2. or /boot/grub2
      3. Installing GRUB as the boot loader in the system.
        1. this can be done :
          1. at the front of the hard disk
          2. in a partition
          3. or accessed via chainloading from one GRUB to another.
A
  • When installing GRUB as the boot loader , what are the three places i could have it stored?
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  • Education: Grub
    • Installing Grub can have several different meanings:
      1. 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.
      2. Installing the files GRUB needs to operate at boot time under either
        1. / boot/grub
        2. or /boot/grub2
      3. Installing GRUB as the boot loader in the system.
        1. this can be done :
          1. at the front of the hard disk
          2. in a partition
          3. or accessed via chainloading from one GRUB to another.
A
  • the files that grub needs to operate at boot time are located where?
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
  • Grub Versions:
    • In both versions , the first hard drive is denoted:
      • hd0
A
  • In Grub what is the name of the first hard drive
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
  • 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.
A
  • The grub configuration file :
    • In each stanza has to specify ________?
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
  • 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
A
  • What does it mean when we are speaking of the root partition wrt GRUB?
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
  • Grub configuation files:
    • Remeber that I should not edit the grub.cfg file directly.
A

Should I edit the grub.cfg directly?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
  • 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 :
        1. /etc/default/grub
        2. /etc/grub.d
A

what the two locations in the /etc directory that would need to be attention and are used to rebuild the grub.cfg file?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
  • Grub Configuration files:
    • Each of the two files( /etc/default/grub and /etc/grub.d) run in ascending order when the file is updated.
A
  • do the files :
    • /etc/default/grub
    • /etc/grub.d
  • run in ascending or descending order when updated?
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
  • Boot loader specification configuration:
    • On systems configured with BLSCFG a person would still use the usual grub commands when installing or updating kernels, etc.
A

on systems where BLSCFG is installed would I still use the usual grub commands when installing or updating kernels?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
  • 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
A

When your system is configured with BLSCFG detailed information and options for each kernel that can be chosen is located where?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

With the boot loader specification configuration scheme, each possible kernel

gains an entry in what file?

A

/boot/loader/entries

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

/boot/grub2/grubenv sets the _____ ________ ______ ?

A

/boot/grub2/grubenv set the default boot kernel .

17
Q

In the location /boot/grub2/grubenv there are a number of

envorinmental variables that may be set. what are they?

A
  • kernelopts
  • tuned_initrd
  • tuned_params
  • grub_users
18
Q

Where are the GRUB configuration variables located?

A

/etc/default/grub

19
Q

the directory /etc/grub.d contains …..?

A

scripts use to build GRUB’s menu

20
Q
A