Primary partition, extended partition, logical partition, active partition, system partition, boot partition. . . . . . . . .
Master Boot Sector, MBR, bootloader. . . . . . . . . .
Various concepts, do you know what they mean?
It took a day to finally research it clearly. The explanations of many posts on the Internet are wrong, or they do not go deep into the essence. What are the C drives and D drives, they have all been brainwashed by windows. Wasted a long time.
Primary partition: In fact, there was no concept of primary partition, extended partition and logical partition in early hard disk partitions, and the type of each partition is primary partition. Since the hard disk only reserves 64 bytes of storage space for the partition table, and the parameters of each partition occupy 16 bytes, the master boot sector can only store data of 4 partitions in total. That is to say, a physical hard disk can only be divided into 4 logical disks. In specific applications, four logical disks often cannot meet actual requirements. In order to create more logical disks for the operating system, extended partition and logical partition are introduced, and the original partition type is called primary partition.
Extended partition: As mentioned above, 4 partitions obviously cannot meet the requirements, but what if the physical hardware limit can only have 4 partitions? So the operating system started to go out and named one of the main partitions as the extended partition. Remember that it is just a name. In principle, the extended partition and the main partition are the same, but the functions are different. After talking about logical partitions below, you will understand what I am talking about.
Logical partition: 4 partitions are definitely not enough, I want 20 partitions, what should I do? Turn one of the main partitions into an extended partition, and then cut on this extended partition to turn into D disks, E disks, F disks, etc., but these disks are combined into an extended partition, and these disks are linked to each other. , unlike the main partition, the 4 are independent of each other and do not interfere with each other. The logical partition is linked by a linked list. If the partition information in the E drive is lost, the operating system cannot find the F drive.
System partition: The partition where Ntldr program or Grub program is stored. Windows is usually installed in the C drive, and Linux is usually installed in the /boot partition.
Active partition: the active partition is the main partition, and the active partition is the system partition. Each time the PC starts, a hard disk can only There is an active partition. If you want to start Windows, set the Windows system partition as the active partition, and the computer will go there to load the boot program (Ntldr or Grub) and execute it. If you want to start Linux, set the Linux system partition as the active partition. .
You children's shoes should all understand it~~~~~
Let's talk about the startup
MBR: As mentioned above, it is a program with a length of 446 bytes, which is used to load the bootloader.