nerdexam
LPI

010-150 · Question #27

Identify the proper device for the third partition, on the second hard disk, on the first IDE controller on a PC system.

The correct answer is A. /dev/hdb3. On Linux, IDE hard disks follow a naming convention where the second disk on the first controller is hdb, and partition numbers are appended directly, giving /dev/hdb3.

The Linux Operating System

Question

Identify the proper device for the third partition, on the second hard disk, on the first IDE controller on a PC system.

Options

  • A/dev/hdb3
  • B/dev/hd1b3
  • C/dev/hdc1d2p3
  • Ddev/hdc1a3
  • Edev/hdc1b3

How the community answered

(31 responses)
  • A
    77% (24)
  • B
    13% (4)
  • C
    6% (2)
  • D
    3% (1)

Why each option

On Linux, IDE hard disks follow a naming convention where the second disk on the first controller is hdb, and partition numbers are appended directly, giving /dev/hdb3.

A/dev/hdb3Correct

Linux names IDE disks sequentially as hda, hdb, hdc, hdd - where hda is the primary master and hdb is the primary slave on the first IDE controller. Partition numbers are appended as a digit with no separator, so the third partition on the second disk (hdb) is /dev/hdb3. The /dev/ prefix is required for a valid absolute device path.

B/dev/hd1b3

/dev/hd1b3 is not valid Linux device naming syntax; IDE devices use alphabetic suffixes (hda, hdb), not numeric ones (hd1).

C/dev/hdc1d2p3

/dev/hdc1d2p3 invents a multi-segment notation that does not exist in the Linux device naming scheme.

Ddev/hdc1a3

dev/hdc1a3 is missing the leading slash making it a relative path, and hdc refers to the primary master of the second IDE controller, not the second disk on the first controller.

Edev/hdc1b3

dev/hdc1b3 is also missing the leading slash and hdc again refers to the second IDE controller's first device, not the second disk on the first controller.

Concept tested: Linux IDE disk and partition device naming

Source: https://www.kernel.org/doc/html/latest/admin-guide/devices.html

Topics

#device naming#/dev#IDE controller#disk partitions

Community Discussion

No community discussion yet for this question.

Full 010-150 Practice