201-450 practice question 10 of 25

A system has one hard disk and one CD writer which are both connected to SATA controllers. Which device represents the CD writer?

Full set: 161 questions
Answer options
A: /dev/hdb
B: /dev/sdd
C: /dev/scd1
D: /dev/sr0 Correct answer
E: /dev/sr1
Correct Answer:
D. /dev/sr0
Explanation

In modern Linux systems, the kernel's libata driver handles both PATA (IDE) and SATA devices, presenting them through the SCSI subsystem. As a result, all such devices follow the SCSI naming convention. Hard disks are named /dev/sdX (e.g., /dev/sda). Optical drives like CD or DVD writers are designated as /dev/srX (SCSI ROM), where X is a number starting from 0. Therefore, the first SATA CD writer on a system would be /dev/sr0.

Why Incorrect

A. /dev/hdb is a legacy naming convention for a PATA/IDE device on the primary channel, not a modern SATA device.
B. /dev/sdd represents the fourth SCSI/SATA hard disk drive, not an optical drive.
C. /dev/scd1 is an older naming scheme for a SCSI CD-ROM drive. The sr naming is the modern standard.
E. /dev/sr1 would represent the second SATA/SCSI optical drive, but the question implies there is only one.

References

1. The Linux Kernel Documentation, "devices.txt". This document lists device numbers and naming conventions. It specifies sr for "SCSI-ROM (CD-ROM, DVD, etc.)" devices. (Available at https://www.kernel.org/doc/Documentation/admin-guide/devices.txt).

2. Arch Linux Wiki, "Optical disc drive". The article states, "Optical drives are usually available through a device file such as /dev/sr0 or /dev/cdrom".

3. Red Hat Enterprise Linux 9 Documentation, "Managing storage devices", Chapter 2. "Device names". It describes the /dev/sd naming for block devices and /dev/sr for optical drives.

Scroll to Top