All devices in Linux are represented as a file under/dev, and various IDE devices are assigned a file consisting of an HD prefix, and for various SCSI devices, a file consisting of an SD prefix is assigned, for example:
The primary disk on the IDE0 interface becomes the slave disk on the/dev/hda,ide0 interface, which becomes the slave on the/dev/hdb;scsi0 interface, which is called/dev/sdb from the disk on the/dev/sda,scsi0 interface.
The three letters in the device name are a, which means the first hard disk, while B is the second hard disk, and so on.
Partitions are represented by numbers, and the number 1-4 is used to represent primary or extended partitions, and the number of logical partitions begins with 5.
The first primary partition of the primary disk on the IDE0 interface, called the primary disk on the/dev/hda1,ide0 interface, is called/DEV/HD5.
In addition, the Ethernet in Linux is expressed as "eth*", eth0 represents the first Ethernet card, eth1 represents the second Ethernet card, and so on.
How to express the hard disk and network card in Linux