Hard disk devices

By default, Linux defines IDE device files as follows:


Primary master IDE (often the hard disk)


Primary slave IDE


Secondary master IDE (often a CD-ROM)


Secondary slave IDE

SCSI device files (or any devices using the SCSI emulation layer) are similar, except that there is no four-device limitation:


First SCSI drive


Second SCSI drive


Third SCSI drive (and so on)

Under Linux, a typical PC with a single hard disk on the primary IDE interface and a single CD-ROM on the secondary IDE interface would have disk drive /dev/hda and CD-ROM /dev/hdc.

Get LPI Linux Certification in a Nutshell, 3rd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.