Linux primary partitions, extended partitions, and logical partitions

Source: Internet
Author: User
I remember that when I first started to install the Linux operating system, I had some knowledge about Linux disk partitions, but it was always time-consuming and I forgot about it for a while, I vaguely remember that I once knew this was the case. People's memory is like this, so once you select an industry, it is best not to light up... information &
I remember that when I first started installing the Linux operating system, I had some knowledge about Linux disk partitioning, but it was always time-consuming and I forgot about it for a while, I vaguely remember that I once knew this was the case. People's memory is like this, so once you select an industry, it is best not to turn easily, because a lot of knowledge needs to be repeated to truly grasp, an industry requires a lot of real knowledge. some people say this is a process of accumulation. In any case, no matter which industry it is, it will not be done after a few minutes. And your accumulation becomes a barrier to turn to others. The more you accumulate, the higher the barrier. So once you choose, you have to keep going. I believe that you will see different lights in the near future, because many people are halfway through the road. I firmly believe this. Www.2cto.com
To put it bluntly, when CentOS5.3 is installed, there will be a disk partition interface with four options in the drop-down menu. in this case, do not select the default option. open the drop-down menu, select the last item ). Select confirm in the lower-right corner and create/,/home, and swap in sequence on the next dialog page. Confirm the configured partition.

To emphasize the importance, write the important content in the figure again. /Root directory ext3 hda1/home user directory ext3 hda2Swap swap partition swap hda3
Explanation of hda1: hd: IDE hard disk. If it is a SCSI hard disk, it is sd. this can only be remembered, there is no better way. A: The first hard disk. If it is the second hard disk, it is B, and c, d ...... 1: Primary partition. Among them, 1, 2, 3, 4 are all primary partitions, starting from 5th as logical partitions, up to 16
Relationship between disk capacity and primary partition, extended partition, and logical partition:
Hard disk capacity = capacity of the primary partition + capacity of the extended partition capacity expansion partition capacity = total capacity of each logical partition a physical hard disk can only include: one to four primary partitions (but only one of them is an active primary partition), one to three primary partitions, and one extended partition. Corresponding to hda1, hda2, hda3, hda4. www.2cto.com
Linux stipulates that each hard disk device can have a maximum of four primary partitions (including extended partitions). any extended partition occupies a primary partition number, that is, in a hard disk, the maximum number of primary and extended partitions is four. I used to be confused: I do not know whether an extended partition occupies a partition number in the primary partition (up to four.
My summary: you can set only the primary partition for one hard disk. in this case, you can set four partition numbers for the primary partition. You can also set it to primary partition + logical partition. at this time, it is also a maximum of four partition numbers, but it is changed to 4 = 3 + 1. 4 is the maximum number of primary partitions and extended partitions. 3 is the primary partition, which can be less than or equal to 3. 1 is the extended partition number, which occupies a primary partition number. From 5 to 16, all are logical partitions. If there is only one 5, the extended partition is no longer partitioned, then the extended partition is a logical partition (the total number of disks in the extended partition is equal to the total number of disks in the same logical partition ). Commonly, extended partitions are divided into several logical partitions and identified by numbers such as 5, 6, 7, and 8.
Next, let's take a look at the above partition:/root directory ext3 hda1 active primary partition, start OS/home user directory ext3 hda2 primary partition swap hda3 primary partition there may be an extended partition, it should be hda4. In this way, you can also set hda5, hda6 ,...... It is also possible that only three primary partitions (up to four) occupy the full disk capacity.
Author a287971
Related Article

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.