nerdexam
CompTIA

XK0-004 · Question #44

Which of the following is the device file name for the second partition on the only SCSI drive?

The correct answer is B. /dev/sda2. Linux names SCSI and SATA drives using the /dev/sd* convention where the first drive is sda, and partitions are numbered sequentially starting at 1.

System Management

Question

Which of the following is the device file name for the second partition on the only SCSI drive?

Options

  • A/dev/hda1
  • B/dev/sda2
  • C/dev/sd0a2
  • D/dev/sd1p2

How the community answered

(36 responses)
  • A
    3% (1)
  • B
    89% (32)
  • C
    3% (1)
  • D
    6% (2)

Why each option

Linux names SCSI and SATA drives using the /dev/sd* convention where the first drive is sda, and partitions are numbered sequentially starting at 1.

A/dev/hda1

/dev/hda1 uses the legacy IDE/PATA naming prefix hd, which applies to parallel ATA drives, not SCSI drives, and the partition number 1 denotes the first partition, not the second.

B/dev/sda2Correct

The only SCSI drive in the system is assigned the identifier sda (first SCSI device), and the second partition on that drive is represented as /dev/sda2, following the standard Linux SCSI device naming scheme.

C/dev/sd0a2

/dev/sd0a2 is not a valid Linux device naming convention - Linux does not use a numeric index directly after sd for drive identification.

D/dev/sd1p2

/dev/sd1p2 is not a valid Linux device path - Linux does not append a p separator between the drive letter and partition number for SCSI devices (that notation is used for devices like /dev/mmcblk0p2).

Concept tested: Linux SCSI disk device file naming convention

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

Topics

#device files#SCSI disks#disk partitions#/dev naming

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice