Naming rules for CentOS disks and partitions

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.