fdisk(8) says:
The device is usually /dev/sda, /dev/sdb or so. A device name refers to the entire disk. Old systems without libata (a library used inside the Linux kernel to support ATA host controllers and devices) make a difference between IDE and SCSI disks. In such cases the device name will be /dev/hd* (IDE) or /dev/sd* (SCSI).
The partition is a device name followed by a partition number. For example, /dev/sda1 is the first partition on the first hard disk in the system. See also Linux kernel documentation (the Documentation/devices.txt file).
Based on this, I understand that in the context of Linux, a string like /dev/hda
or /dev/sda
is a "device name". Otherwise, the second sentence I have emphasised above does not make sense: it would instead say, "For example, sda1 is the first partition on the first hard disk in the system."
This view is corroborated by the Linux Partition HOWTO:
By convention, IDE drives will be given device names /dev/hda to /dev/hdd.
Is there a technically correct (and, preferably, unambiguous and concise) English term for the substring hda
or sda
of such a device name? For example, would it be correct in this case to call sda
the drive's:
- "short name"; or
- "unqualified device name"; or
- something else?
(I am not asking for colloquialisms that are technically incorrect, even if they are in common use.)
Best Answer
sda
is the device name./dev/sda
is the device path.Think of
/sbin/fdisk
,fdisk
is the file name, while/sbin/fdisk
is the file path.