Assume that we have two disks, one master SATA and one master ATA. How will they show up in /dev?
ATA and SATA Disk Names in Linux – Understanding the Differences
hard-disklinuxpatasata
hard-disklinuxpatasata
Assume that we have two disks, one master SATA and one master ATA. How will they show up in /dev?
Best Answer
Depending on your SATA driver and your distribution's configuration, they might show up as
/dev/hda
and/dev/hdb
, or/dev/hda
and/dev/sda
, or/dev/sda
and/dev/sdb
. Distributions and drivers are moving towards having everything hard disk calledsd?
, but PATA drivers traditionally usedhd?
and a few SATA drivers also did.The device names are determined by the
udev
configuration. For example, on Ubuntu 10.04, the following lines from/lib/udev/rules.d/60-persistent-storage.rules
make all ATA hard disks appear as/dev/sd*
and all ATA CD drives appear as/dev/sr*
: