In Linux, there is no drive letter concept. the device name is used to access the device, and the device name is stored in the/dev directory. The SSD, SAS, and SATA hard disks mentioned above are all hard disks of the SCSI interface type, which are identified by sd in Linux, while the IDE hard disks are hard disks of the IDE interface type, hd is used in Linux. In Linux, the naming rules for different hard disks are as follows: the first SCSI interface type hard disk:/dev/sda
In Linux, there is no drive letter concept. the device name can be used to access the device. the device name is stored in the/dev directory.
The SSD, SAS, and SATA hard disks mentioned above are all hard disks of the SCSI interface type, which are identified by sd in Linux, while the IDE hard disks are hard disks of the IDE interface type, hd is used in Linux.
In Linux, the naming rules for different hard disks are as follows:
First SCSI interface type hard disk:/dev/sda
The second SCSI interface type hard disk:/dev/sdb
Disk of the first IDE interface type:/dev/hda
Disk of the second IDE interface type:/dev/hdb
For hard disk partitions, a hard disk can only have four primary partitions or three primary partitions and one extended partition. that is, numbers 1-4 are reserved for the primary partition or extended partition, A maximum of four primary and extended partitions can be added. The primary and extended partitions are at the same level. A hard disk can only have one extended partition at most, but the extended partition cannot be used directly to store data. you need to divide it into several logical partitions. Therefore, we can see from the above that the number of the logical partition must start from 5.
Partition scheme in Linux:
3 p + 1e or 2 p + 1e or 1 p + 1e
Partition number in Linux:
1st partitions of the first SCSI interface hard disk:/dev/sda1
5th partitions of the first SCSI interface hard disk:/dev/sda5
The first 1st partitions of the IDE interface hard drive:/dev/hda1
The first 5th partitions of the IDE interface type hard drive:/dev/hda5