Article Title: Why can Linux be divided into four sectors at most. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Some people have asked why there are only four primary partitions and four extended partitions when installing Linux. At that time, due to lack of basic knowledge, the problem cannot be solved in a timely manner. Now I have a research study and I will share it with you.
MBR (Master Boot Recorder) Stores hard disk information in the Main Boot Sector. MBR can be said to be the most important part of the entire hard disk, because two important items are recorded in MBR: The Boot Management Program and the partition table ). Therefore, we are modifying the partition table.
Due to the limited capacity of this MBR block, at the beginning of the design, only four partition records were designed. These partition records were called Primary (Primary partition) and Extended (Extended partition), that is, a hard disk can have up to four Primary + Extended sectors, of which, Extended can have only one. Therefore, if you want to partition into four disk partitions, you can:
P + P
P + E
To partition. Note that, in the above case, 3 P + E only has three "available" disks. If four disks are required 』, the score is 4 P! (Because Extended cannot be used directly, you still need to partition it into Logical)
Think 1: If I want to temporarily partition my large hard drive into four partitions, And there is other space for me to plan in the future, how should I partition it?
From the preceding description, we can know that Primary + Extended can have up to four partitions. If you want to have more than five partitions, you need Extended help. Therefore, in this example, we cannot partition the data into four Primary. Why? If you are a 20 GB hard disk and 4 primary share 15 GB, do you think there are 5 GB available? Error! The remaining 5 GB cannot be used at all. This is because there is no additional partition table Record area available, so no additional partitions can be made. Of course ??? Master the notebook, master the Huanhuan Shuo training, and play tricks? Why? Too many tasks? Why ??? Smart ?? When there are more than 4 slots, remember to have an Extended partition area, and you must allocate all the remaining space to Extended, and then plan the Extended space using the logical partition area.
[1] [2] Next page