nerdexam
CompTIA

XK0-004 · Question #459

Which of the following is an M.2 drive device name?

The correct answer is C. nvmeOn0. NVMe drives - the protocol used by most M.2 PCIe drives - are exposed by the Linux kernel under the 'nvme' device naming scheme, not the legacy 'sd' or 'hd' names.

System Management

Question

Which of the following is an M.2 drive device name?

Options

  • Asr0
  • Bhda
  • CnvmeOn0
  • Dsda

How the community answered

(37 responses)
  • A
    3% (1)
  • B
    3% (1)
  • C
    89% (33)
  • D
    5% (2)

Why each option

NVMe drives - the protocol used by most M.2 PCIe drives - are exposed by the Linux kernel under the 'nvme' device naming scheme, not the legacy 'sd' or 'hd' names.

Asr0

sr0 is the Linux device name assigned to optical disc drives such as CD-ROM or DVD-ROM devices, not to any type of solid-state or hard disk storage.

Bhda

hda is the legacy device name for the first IDE (PATA) hard drive and has not been used for modern storage devices including M.2 drives.

CnvmeOn0Correct

The device name nvme0n1 follows the NVMe naming convention: 'nvme' identifies the driver, '0' is the controller index, and 'n1' refers to namespace 1. M.2 slots that use the PCIe-based NVMe protocol are enumerated this way by the kernel's NVMe driver. SATA-based M.2 drives are the exception and still appear as 'sd' devices because they use the AHCI controller path.

Dsda

sda is the device name for the first SCSI or SATA block device; while SATA-based M.2 drives use this scheme, NVMe-based M.2 drives use the nvme naming convention instead.

Concept tested: Linux NVMe M.2 drive device naming convention

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

Topics

#device naming#NVMe#M.2#storage devices

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice