Chapter 2 Flashcards
Which of the following files is GRUB’s configuration file?
/boot/grub/grub.conf
What would be the conventional name of the initial ramdisk for the 2.6.32-8.el6 kernel?
/boot/initramfs-2.6.32-8.el6.img
What command is used to install GRUB?
grub-install
In GRUB’s configuration file, lines beginning with which keyword define the user visible menu labels?
title
When booting, which file is executed as GRUB’s stage 1?
The question is inappropriate, as GRUB’s stage 1 lives in a Master Boot Record or bootsector.
Use the following transcript to answer the next 4 questions.
[root@station root]# cat /etc/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda3
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
password –md5 $2$MrXSq0xS$0LXqkBTfpywyD3TVCao3d0
title Red Hat Enterprise Linux Server (2.6.18-8.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-8.el5 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.18-8.el5.img
[root@station root]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 5131108 4606964 263492 95% /
/dev/sda1 124427 9508 108495 9% /boot
none 127616 0 127616 0% /dev/shm
-
How would GRUB refer to the file /etc/passwd?
(hd0,2)/etc/passwd
How would GRUB refer to the file /boot/grub/grub.conf?
None of the above
Where is the initial ramdisk referenced in the above configuration file located?
/boot/initrd-2.6.18-8.el5.img
When booting, approximately how long does the user have to select a menu item?
10 seconds
After editing the GRUB configuration file, which command must be run to implement the changes?
None of the above