Workbook 4: System Initialization and Services Flashcards

1
Q

Which of the following controls the first part of the boot sequence?

A

BIOS

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

Which of the following controls the last part of the boot sequence?

A

/sbin/init

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

A bootloader usually passes control to which of the following?

A

the Linux kernel

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

Which is the first process started by the Linux kernel?

A

/sbin/init

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

Which of the following is responsible for initially mounting the root partition?

A

the Linux kernel

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

Which of the following is responsible for determining the appropriate boot device?

A

BIOS

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

Which of the following is usually found in a disk’s Master Boot Record?

A

a bootloader

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

Which of the following is found in the ROM of a system’s motherboard?

A

BIOS

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

What is the name of the protocol used to assign non-conflicting resource configurations to devices?

A

Plug-‘n-Play

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

BIOS usually passes control to which of the following?

A

a bootloader

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

Which of the following files is GRUB’s configuration file?

A

/boot/grub/grub.conf

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

What would be the conventional name of the initial ramdisk for the 2.6.32-8.el6 kernel?

A

/boot/initramfs-2.6.32-8.el6.img

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

What command is used to install GRUB?

A

grub-install

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

n GRUB’s configuration file, lines beginning with which keyword define the user visible menu labels?

A

title

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

When booting, which file is executed as GRUB’s stage 1?

A

The question is inappropriate, as GRUB’s stage 1 lives in a Master Boot Record or bootsector.

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

How would GRUB refer to the file /etc/passwd?

A

(hd0,2)/etc/passwd

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

How would GRUB refer to the file /boot/grub/grub.conf?

A

None of the above

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

Where is the initial ramdisk referenced in the above configuration file located?

A

/boot/initrd-2.6.18-8.el5.img

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

When booting, approximately how long does the user have to select a menu item?

A

10 seconds

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

After editing the GRUB configuration file, which command must be run to implement the changes?

A

None of the above

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

Which of the following would be a reasonable default runlevel for a rack mounted network server?

A

3

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

Which runlevel is traditionally associated with shutting down a machine?

A

6

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

Which command lines or actions could be used to reboot the machine?

A

1) reboot
2) init 6
3) shutdown -r now
4) Entering CTRL+ALT+DELETE from the console.

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

If a machine were booted without any user intervention, how many mingetty processes would be started directly by the init process?

A

6

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

Upon pressing the CTRL-ALT-DEL key sequence, what will happen?

A

The system will gracefully shutdown.

26
Q

Once a machine has booted directly into runlevel 5, which of the following processes would not have been started directly by init?

A

All of the above processes would have been started by init

27
Q

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?

A

/etc/sysconfig/init

28
Q

Which of the following command lines would schedule a shutdown of the machine for 2 hours after it was executed?

A

shutdown -h +120

29
Q

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?

A

Yo-yo

30
Q

Which commands could be used to perform an immediate shutdown of the machine?

A

poweroff
halt
shutdown -h n now
init 0

31
Q

Which of the following is not a standard command for Red Hat Enterprise Linux service scripts?

A

kill

32
Q

What runlevel is traditionally referred to as single user mode?

A

1

33
Q

Which of the following best describes how the gpm service would respond when changing from runlevel 2 to runlevel 5?

A

The gpm service, which should not have been running, will be started.

34
Q

Which of the following best describes how the gpm service would respond when changing from runlevel 5 to runlevel 6?

A

The gpm service, which should have been running, will be stopped.

35
Q

What directory contains Red Hat Enterprise Linux service scripts?

A

None of the above

36
Q

Which of the following command lines would immediately start the newly installed httpd service?

A

service httpd start

37
Q

Which of the following command lines would configure the newly installed httpd service to start automatically upon reboots?

A

chkconfig httpd on

38
Q

Which of the following command lines would list the runlevel configuration for all services?

A

chkconfig –list

39
Q

Which of the following command lines is equivalent to the command line service smb status?

A

/etc/rc.d/init.d/smb status

40
Q

Which of the following commands would reinitialize the crond daemon, but not kill it and start a new one?

A

service crond reload

41
Q

What graphical application can be used to configure Red Hat Enterprise Linux services?

A

system-config-services

42
Q

What key sequence can be used to scroll through the history of a virtual console?

A

SHIFT+PAGEUP

43
Q

Which of the following is the most likely cause of the problem?

A

The bootloader has been configured with an incorrect root partition or path to the kernel.

44
Q

Which of the following files will most likely have to be edited to solve the problem?

A

/boot/grub/grub.conf

45
Q

Which of the following best explains the problem?

A

For some reason, the kernel could not find or execute its normal first process.

46
Q

Which file should be examined and or modified?

A

/sbin/init

47
Q

What is the most likely problem?

A

The /etc/fstab file has an incorrect entry referencing the root partition.

48
Q

Which file would you most likely have to edit to solve this problem?

A

/etc/fstab

49
Q

“Unable to remove file /var/lib/rpm/__db.001: Read-only Filesystem”

What is the most likely cause of the problem?

A

The /var partition was mounted read-only.

50
Q

Which of the following files would most likely need to be edited to fix the problem?

A

/etc/fstab

51
Q

What graphical application can be used to configure Red Hat Enterprise Linux services?

A

system-config-services

52
Q

What key sequence can be used to scroll through the history of a virtual console?

A

SHIFT+PAGEUP

53
Q

Which of the following is the most likely cause of the problem?

A

The bootloader has been configured with an incorrect root partition or path to the kernel.

54
Q

Which of the following files will most likely have to be edited to solve the problem?

A

/boot/grub/grub.conf

55
Q

Which of the following best explains the problem?

A

For some reason, the kernel could not find or execute its normal first process.

56
Q

Which file should be examined and or modified?

A

/sbin/init

57
Q

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?

A

The /etc/fstab file has an incorrect entry referencing the root partition.

58
Q

Which file would you most likely have to edit to solve this problem?

A

/etc/fstab

59
Q

“Unable to remove file /var/lib/rpm/__db.001: Read-only Filesystem”

What is the most likely cause of the problem?

A

The /var partition was mounted read-only.

60
Q

Which of the following files would most likely need to be edited to fix the problem?

A

/etc/fstab