102.2 Flashcards

1
Q

What is the default configuration file for GRUB 2? A) /etc/grub.conf
B) /boot/grub/grub.conf
C) /etc/default/grub
D) /boot/grub/menu.lst

A

C) /etc/default/grub

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

Which command is used to update the GRUB 2 configuration? A) grub2-mkconfig
B) update-grub
C) grub-install
D) grub-set-default

A

A) grub2-mkconfig

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

What does the command ‘grub-install’ do? A) Installs the GRUB bootloader
B) Updates GRUB configuration
C) Configures GRUB menu
D) Uninstalls the bootloader

A

A) Installs the GRUB bootloader

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

Which file contains the list of boot menu entries for GRUB? A) /boot/grub/grub.cfg
B) /etc/default/grub
C) /boot/grub/menu.lst
D) /etc/grub.conf

A

A) /boot/grub/grub.cfg

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

What bootloader does UEFI systems typically use? A) GRUB
B) UEFI Boot Manager
C) LILO
D) SYSLINUX

A

B) UEFI Boot Manager

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

Which command is used to set the default boot entry in GRUB 2? A) grub-set-default
B) grub2-mkconfig
C) grub-install
D) update-grub

A

A) grub-set-default

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

Where is the MBR (Master Boot Record) stored on a hard disk? A) The first 512 bytes of the disk
B) The last 512 bytes of the disk
C) /boot partition
D) BIOS chip

A

A) The first 512 bytes of the disk

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

What is the purpose of a boot manager? A) Load and start the operating system
B) Manage disk partitions
C) Install the operating system
D) Update the BIOS

A

A) Load and start the operating system

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

Which command backs up the MBR in Linux? A) dd if=/dev/sda of=mbr.bak bs=512 count=1
B) cp /dev/mbr mbr.bak
C) tar -cvf mbr.bak /dev/sda
D) rsync -a /dev/sda mbr.bak

A

A) dd if=/dev/sda of=mbr.bak bs=512 count=1

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

How can you check the GRUB boot menu entries? A) cat /boot/grub/grub.cfg
B) nano /etc/default/grub
C) update-grub
D) ls /boot

A

A) cat /boot/grub/grub.cfg

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

What is the GRUB 2 command to edit a boot entry during startup? A) Press ‘e’
B) Press ‘d’
C) Press ‘x’
D) Press ‘g’

A

A) Press ‘e’

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

How can you manually boot a system from the GRUB 2 prompt? A) Use the ‘linux’ and ‘initrd’ commands
B) Use ‘boot’ only
C) Use ‘runos’ command
D) Use ‘start-kernel’

A

A) Use the ‘linux’ and ‘initrd’ commands

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

What is the primary configuration file for the LILO bootloader? A) /etc/lilo.conf
B) /boot/lilo.cfg
C) /etc/grub.conf
D) /boot/grub/grub.cfg

A

A) /etc/lilo.conf

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

Which key can be pressed to access the GRUB 2 menu during boot? A) Shift
B) F8
C) Ctrl
D) Esc

A

A) Shift

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

What command would you use to install GRUB to a specific device? A) grub-install /dev/sda
B) install-grub /dev/sda
C) update-grub /dev/sda
D) grub-set-device /dev/sda

A

A) grub-install /dev/sda

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

What is the purpose of the ‘os-prober’ package in GRUB? A) Detects other operating systems
B) Installs GRUB bootloader
C) Updates GRUB configuration
D) Repairs the boot sector

A

A) Detects other operating systems

17
Q

Which bootloader supports booting from network devices? A) PXE
B) GRUB
C) LILO
D) UEFI

A

A) PXE

18
Q

Which command should you run after modifying /etc/default/grub? A) update-grub
B) grub-install
C) grub2-mkconfig
D) grub-mkconfig

A

A) update-grub

19
Q

Where does GRUB store its environment block? A) /boot/grub/grubenv
B) /etc/default/grub
C) /boot/grub/menu.lst
D) /boot/grub/grub.cfg

A

A) /boot/grub/grubenv

20
Q

Which option is used with GRUB to add a kernel parameter? A) Press ‘e’ and edit the kernel line
B) Run ‘grub-mkconfig’
C) Use ‘grub-params’ command
D) Edit /etc/default/grub

A

A) Press ‘e’ and edit the kernel line

21
Q

What is the difference between GRUB Legacy and GRUB 2? A) GRUB 2 supports dynamic configuration
B) GRUB Legacy uses /boot/grub/menu.lst
C) GRUB 2 can boot from GPT partitions
D) All of the above

A

D) All of the above

22
Q

Which command would you use to repair a broken GRUB installation? A) grub-install /dev/sda
B) update-grub
C) grub-repair
D) fsck /boot

A

A) grub-install /dev/sda

23
Q

What does the ‘hiddenmenu’ option in GRUB Legacy do? A) Hides the boot menu unless a key is pressed
B) Disables the GRUB menu entirely
C) Sets a password on the GRUB menu
D) Shows detailed kernel logs

A

A) Hides the boot menu unless a key is pressed

24
Q

Which option in GRUB configuration sets the default boot entry? A) GRUB_DEFAULT
B) GRUB_TIMEOUT
C) GRUB_CMDLINE_LINUX
D) GRUB_MENU_TIMEOUT

A

A) GRUB_DEFAULT

25
Q

Which file is edited to configure GRUB timeout? A) /etc/default/grub
B) /boot/grub/grub.cfg
C) /etc/grub.conf
D) /boot/grub/menu.lst

A

A) /etc/default/grub

26
Q

What does the GRUB ‘savedefault’ option do? A) Saves the selected menu entry as the default
B) Boots into the default entry
C) Installs GRUB on a device
D) Removes GRUB configuration

A

A) Saves the selected menu entry as the default

27
Q

How can you reinstall GRUB from a rescue mode? A) grub-install /dev/sda
B) update-grub
C) fsck /boot
D) init 6

A

A) grub-install /dev/sda

28
Q

What GRUB feature allows booting different operating systems? A) Multiboot
B) Multipass
C) Dualboot
D) Chainboot

A

A) Multiboot

29
Q

What is the purpose of the ‘GRUB_CMDLINE_LINUX’ variable in GRUB? A) Specifies kernel parameters
B) Sets the default boot entry
C) Defines GRUB boot options
D) Configures GRUB menu appearance

A

A) Specifies kernel parameters