In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article shares with you the content of a sample analysis of disk and partition naming rules in CentOS. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
In Linux, there is no concept of a drive letter, and the device is accessed through the device name, which is stored in the / dev directory.
The SSD, SAS and SATA hard drives mentioned above all belong to the SCSI interface type, which is identified by sd in Linux, while the IDE hard disk belongs to the IDE interface type and is identified by hd in Linux.
In Linux, the naming rules for different hard drives are as follows:
The first SCSI interface type hard disk: / dev/sda
The second SCSI interface type hard disk: / dev/sdb
The first IDE interface type hard disk: / dev/hda
The second IDE interface type hard disk: / dev/hdb
With regard to the partition of a hard disk, a hard disk can only have at most 4 primary partitions or 3 primary partitions plus 1 extended partition, that is, the serial number 1-4 is reserved for the primary partition or extended partition, and the total number of primary partition and extended partition is only 4 at most. The main partition and the extended partition are horizontal. A hard disk can only have one extended partition at most, but the extended partition can not be used to store data directly. It needs to be divided into several logical partitions. So as you can see from the above, the number of logical partitions must start at 5.
Partition scheme in Linux:
3p+1e or 2p+1e or 1p+1e
In Linux, partition number:
The first partition of the first SCSI interface type hard disk: / dev/sda1
The fifth partition of the first SCSI interface type hard disk: / dev/sda5
The first partition of the first IDE interface type hard disk: / dev/hda1
The fifth partition of the first IDE interface type hard disk: / dev/hda5
Thank you for reading! This is the end of this article on "sample Analysis of disk and Partition naming rules in CentOS". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.