Workbook 4: System Initialization and Services Flashcards
Which of the following controls the first part of the boot sequence?
BIOS
Which of the following controls the last part of the boot sequence?
/sbin/init
A bootloader usually passes control to which of the following?
the Linux kernel
Which is the first process started by the Linux kernel?
/sbin/init
Which of the following is responsible for initially mounting the root partition?
the Linux kernel
Which of the following is responsible for determining the appropriate boot device?
BIOS
Which of the following is usually found in a disk’s Master Boot Record?
a bootloader
Which of the following is found in the ROM of a system’s motherboard?
BIOS
What is the name of the protocol used to assign non-conflicting resource configurations to devices?
Plug-‘n-Play
BIOS usually passes control to which of the following?
a bootloader
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
n 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.
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
Which of the following would be a reasonable default runlevel for a rack mounted network server?
3
Which runlevel is traditionally associated with shutting down a machine?
6
Which command lines or actions could be used to reboot the machine?
1) reboot
2) init 6
3) shutdown -r now
4) Entering CTRL+ALT+DELETE from the console.
If a machine were booted without any user intervention, how many mingetty processes would be started directly by the init process?
6
Upon pressing the CTRL-ALT-DEL key sequence, what will happen?
The system will gracefully shutdown.
Once a machine has booted directly into runlevel 5, which of the following processes would not have been started directly by init?
All of the above processes would have been started by init
You decide that you would like to have two additional virtual consoles present login prompts. What file should be edited to add the additional mingetty processes?
/etc/sysconfig/init
Which of the following command lines would schedule a shutdown of the machine for 2 hours after it was executed?
shutdown -h +120
ou find a Red Hat Enterprise Linux machine with the following line in its /etc/inittab file.
id:6:initdefault:
What would be the most appropriate name for the machine?
Yo-yo
Which commands could be used to perform an immediate shutdown of the machine?
poweroff
halt
shutdown -h n now
init 0
Which of the following is not a standard command for Red Hat Enterprise Linux service scripts?
kill
What runlevel is traditionally referred to as single user mode?
1
Which of the following best describes how the gpm service would respond when changing from runlevel 2 to runlevel 5?
The gpm service, which should not have been running, will be started.
Which of the following best describes how the gpm service would respond when changing from runlevel 5 to runlevel 6?
The gpm service, which should have been running, will be stopped.
What directory contains Red Hat Enterprise Linux service scripts?
None of the above
Which of the following command lines would immediately start the newly installed httpd service?
service httpd start
Which of the following command lines would configure the newly installed httpd service to start automatically upon reboots?
chkconfig httpd on
Which of the following command lines would list the runlevel configuration for all services?
chkconfig –list
Which of the following command lines is equivalent to the command line service smb status?
/etc/rc.d/init.d/smb status
Which of the following commands would reinitialize the crond daemon, but not kill it and start a new one?
service crond reload
What graphical application can be used to configure Red Hat Enterprise Linux services?
system-config-services
What key sequence can be used to scroll through the history of a virtual console?
SHIFT+PAGEUP
Which of the following is the most likely cause of the problem?
The bootloader has been configured with an incorrect root partition or path to the kernel.
Which of the following files will most likely have to be edited to solve the problem?
/boot/grub/grub.conf
Which of the following best explains the problem?
For some reason, the kernel could not find or execute its normal first process.
Which file should be examined and or modified?
/sbin/init
What is the most likely problem?
The /etc/fstab file has an incorrect entry referencing the root partition.
Which file would you most likely have to edit to solve this problem?
/etc/fstab
“Unable to remove file /var/lib/rpm/__db.001: Read-only Filesystem”
What is the most likely cause of the problem?
The /var partition was mounted read-only.
Which of the following files would most likely need to be edited to fix the problem?
/etc/fstab
What graphical application can be used to configure Red Hat Enterprise Linux services?
system-config-services
What key sequence can be used to scroll through the history of a virtual console?
SHIFT+PAGEUP
Which of the following is the most likely cause of the problem?
The bootloader has been configured with an incorrect root partition or path to the kernel.
Which of the following files will most likely have to be edited to solve the problem?
/boot/grub/grub.conf
Which of the following best explains the problem?
For some reason, the kernel could not find or execute its normal first process.
Which file should be examined and or modified?
/sbin/init
Upon booting, you select an entry from from the GRUB menu, and see a series of kernel and init script messages. The boot sequence ends abruptly at the following point, however.
*
What is the most likely problem?
The /etc/fstab file has an incorrect entry referencing the root partition.
Which file would you most likely have to edit to solve this problem?
/etc/fstab
“Unable to remove file /var/lib/rpm/__db.001: Read-only Filesystem”
What is the most likely cause of the problem?
The /var partition was mounted read-only.
Which of the following files would most likely need to be edited to fix the problem?
/etc/fstab