CompTIA Linux+ (XK0-005) — Question 81
A systems administrator is tasked with installing GRUB on the legacy MBR of the SATA hard drive. Which of the following commands will help the administrator accomplish this task?
Answer options
- A. grub-install /dev/hda
- B. grub-install /dev/sda
- C. grub-install /dev/sr0
- D. grub-install /dev/hd0,0
Correct answer: B
Explanation
The correct command is 'grub-install /dev/sda' because '/dev/sda' refers to the primary SATA hard drive in a typical setup. The other options are incorrect as '/dev/hda' refers to older IDE drives, '/dev/sr0' is for optical drives, and '/dev/hd0,0' is an invalid syntax for specifying a hard drive in this context.