1. Relationship between the transmission interface of the hard drive and the device file name
At present, the transmission interface of the hard disk mainly has the following several:
IDE interface: The IDE interface uses a wide range of cables, each of which can connect two IDE devices, both of which are distinguished from Master (master) and slave (slave devices). Typically the motherboard will provide two IDE interfaces, respectively known as IDE1 (Primary) and IDE2 (secondary). Therefore, a motherboard can connect up to 4 IDE devices, and their file names in the Linux system are shown in the following table:
Ide/jumper |
Master |
Slave |
IDE1 (Primary) |
/dev/hda |
/dev/hdb |
IDE2 (secondary) |
/dev/hdc |
/dev/hdd |
SATA interface: The SATA interface uses a thin line, each SATA cable can only connect one SATA device. SATA/USB/SCSI and other hard disk interfaces are driven using SCSI modules, the hard disk device filenames of these interfaces are/dev/sd[a-p], depending on the order of the disks detected by the Linux kernel.
For example, if you have two SATA hard disks and a USB flash drive on your computer. These two SATA hard drives are plugged into the SATA1,SATA5 slots on the motherboard, respectively. Then the file names of these devices are as follows:
- Hard drive on SATA1 socket:/DEV/SDA
- Hard drive on SATA5 socket:/dev/sdb
- U disk:/DEV/SDC
SCSI interface: The hard disk of a SCSI interface is common in computers with workstations or workstations above the level.
2. Hard disk partitioning table (Partition table)