Linux sub-partition related knowledge

Source: Internet
Author: User

LINUX specifies that the primary partition (or extended partition) takes up the first 4 numbers from 1 to 16th numbers. As an example of the first IDE hard disk, the primary partition (or extended partition) occupies hda1, Hda2, Hda3, HDA4, while the logical partition occupies 12 numbers, such as Hda5 to Hda16. As a result, there are up to 16 partitions per drive in Linux.
So hda1-hda4 is the meaning of the main area. HDA5 is logical partition after!!

Linux, each hard disk device is mapped to a system of device files, for the disk, CD-ROM and other IDE or SCSI device is no exception.

Here to penetrate a concept--"Some devices are files"

IDE磁盘的设备文件采用/dev/hdx来命名,分区则采用/dev/hdxy来命名,其中x表示磁盘(a是第一块磁盘,b是第二块磁盘,以此类推),y代表分区的号码(由1开始,1、2、3以此类推)  SCSI设备和分区采用/dev/sdx和/dev/sdxy来命名(x和y的命名规则与IDE磁盘一样)。IDE和SCSI光驱采用的是跟磁盘一样的命名方式。

  

/dev/hda/表示第一个IDE接口的第一个硬盘设备(master) /dev/hdb/表示第一个IDE接口的第二个硬盘设备(slave)/dev/hdc和/dev/hdd则是第二个IDE接口上的master和slave设备

Thus, a maximum of 2 devices on an IDE interface, one master device and one slave device.

/dev/sda1表示第一个SCSI接口硬盘的第一个分区

Note: SCSI one interface only one device, no master and slave points.

The file name of the hard disk partition represents the hard disk and partition

Partition:

As mentioned earlier, the partition number is marked with numbers, 1, 2, 3, 4 ... and so on;

Where the primary partition occupies 1 to 4th, and the logical partition starts with 5, such as number 6th is the first logical partition.

Practice:

1. /dev/hdc6:第二个IDE接口的master接口硬盘的第二个逻辑分区 2. /dev/sdb1:第二个SCSI接口硬盘的第1个主分区 3. 第二个IDE接口的master接口硬盘的第三个主分区:/dev/hda3 4. 第五个SCSI接口硬盘的第三个逻辑分区:/dev/sde7http://www.cnblogs.com/gylei/archive/2011/12/04/2276009.htmlhttp://www.cnblogs.com/gylei/archive/2011/12/04/ 2275987.htmlhttp://vbird.dic.ksu.edu.tw/linux_basic/0130designlinux.php

Linux sub-partition related knowledge

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.