LFCS · Question #712
In GRUB's configuration file an administrator finds the following line: root (hd1,4) Which of the following is the corresponding device name on a Linux system?
The correct answer is D. /dev/hdb5. The GRUB notation (hdX,Y) maps to Linux device names where 'hd1' represents the second IDE hard disk and '4' represents the first logical partition on that disk.
Question
Options
- A/dev/hda4
- B/dev/hda5
- C/dev/hdb4
- D/dev/hdb5
How the community answered
(31 responses)- A3% (1)
- B3% (1)
- C6% (2)
- D87% (27)
Why each option
The GRUB notation (hdX,Y) maps to Linux device names where 'hd1' represents the second IDE hard disk and '4' represents the first logical partition on that disk.
This refers to the fourth primary partition on the first IDE disk (`/dev/hda4`), which does not match `hd1` in GRUB's notation.
This refers to the fifth partition (first logical) on the first IDE disk (`/dev/hda5`), which does not match `hd1`.
In GRUB's legacy notation, `hd1` refers to the second hard disk, which is typically `/dev/hdb` on a Linux system. Partition numbering in GRUB starts at 0 for primary partitions, and the first logical partition is denoted by '4', corresponding to `/dev/hdb5` in Linux device naming.
Concept tested: GRUB disk and partition naming
Source: https://www.gnu.org/software/grub/manual/grub.html#Naming-convention
Topics
Community Discussion
No community discussion yet for this question.