nerdexam
Linux_Foundation

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.

Submitted by jakub_pl· Apr 18, 2026Storage Management

Question

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?

Options

  • A/dev/hda4
  • B/dev/hda5
  • C/dev/hdb4
  • D/dev/hdb5

How the community answered

(31 responses)
  • A
    3% (1)
  • B
    3% (1)
  • C
    6% (2)
  • D
    87% (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.

A/dev/hda4

This refers to the fourth primary partition on the first IDE disk (`/dev/hda4`), which does not match `hd1` in GRUB's notation.

B/dev/hda5

This refers to the fifth partition (first logical) on the first IDE disk (`/dev/hda5`), which does not match `hd1`.

C/dev/hdb4
D/dev/hdb5Correct

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

#GRUB#Device Naming#Disk Partitioning#Bootloader Configuration

Community Discussion

No community discussion yet for this question.

Full LFCS Practice