LFCS · Question #695
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. In Linux, the second partition on the first SCSI-like drive is typically identified by the device file name /dev/sda2.
Question
Options
- A/dev/hda1
- B/dev/sda2
- C/dev/sd0a2
- D/dev/sd1p2
How the community answered
(40 responses)- A3% (1)
- B90% (36)
- C5% (2)
- D3% (1)
Why each option
In Linux, the second partition on the first SCSI-like drive is typically identified by the device file name `/dev/sda2`.
/dev/hda1 refers to the first partition on the first IDE drive, which uses a different naming convention than SCSI drives.
In modern Linux systems, SCSI, SATA, and USB drives are identified as `/dev/sdX`, where 'a' denotes the first drive. Partitions on these drives are numbered sequentially, thus `/dev/sda2` refers to the second partition on the first detected SCSI-like drive.
/dev/sd0a2 uses an incorrect and non-standard numbering scheme for drives and partitions; drives are typically lettered (a, b, c) and partitions are numbered directly.
/dev/sd1p2 uses a non-standard naming convention; `/dev/sd1` would imply the second drive, and `p2` for partition 2 is not the typical Linux naming for SCSI/SATA partitions which simply appends the number.
Concept tested: Linux SCSI disk device naming
Source: https://www.kernel.org/doc/html/latest/block/disk-naming.html
Topics
Community Discussion
No community discussion yet for this question.