Home >Common Problem >What are the disk partition forms?

What are the disk partition forms?

青灯夜游
青灯夜游Original
2022-02-11 14:09:1177002browse

There are two forms of disk partitioning: 1. MBR (Master Boot Record) form, which is a special boot sector that exists at the beginning of the disk drive; 2. GPT (GUID Partition Table) form, which It is a disk organization method that uses UEFI boot.

What are the disk partition forms?

The operating environment of this tutorial: Windows 7 system, Dell G3 computer.

There are two types of disk partitions: MBR and GPT.

What are the disk partition forms?

When you buy a new hard drive and set the partition, the system will ask you whether you want to use the MBR partition format or the GPT partition format (some hard drives are defaulted when shipped from the factory. The partition format is set for you). MBR is the previous partition form, and GPT is a new partition form, which is now gradually replacing the MBR partition form.

What are the disk partition forms?

MBR partition

MBR means "Master Boot Record", which was proposed by IBM in the early years. It is a special boot sector that exists at the beginning of the disk drive. This sector contains system information about the installed operating system and a small piece of code to boot the system. If you installed Windows, its startup information is placed in this piece of code - if the MBR information is damaged or accidentally deleted, Windows cannot be started normally. At this time, you need to find a boot repair software tool to repair it. In Linux systems, MBR is usually the GRUB loader. MBR. When a computer starts up, it will first start the BIOS system that comes with the motherboard. The bios loads MBR, and then MBR starts Windows. This is the startup process of mbr.

GPT Partition

GPT means GUID Partition Table, which is "Globally Unique Identification Disk Partition Table". It is another more advanced and novel disk organization method, a disk organization method that uses UEFI boot. Initially it was for better compatibility, but later it was widely used because of its larger supported memory (mbr partition supports up to 2T disks) and more compatibility, especially since all Apple MAC systems use gpt partitions. gtp no longer has the concept of partitions, and all CDEF disks are stored in a piece of information. It can be simply understood as a technology that is more advanced but not widely used enough.

GPT brings many new features, but MBR still has the best compatibility. GPT is not a new standard specific to Windows—Mac OS X, Linux, and other operating systems also use GPT. Before you can use your new disk, you must partition it. MBR (Master Boot Record) and GPT (GUID Partition Table) are two different ways of storing partition information on disk. This partition information includes where the partition starts, so that the operating system knows which sector belongs to which partition and which partition can be booted. When creating a partition on a disk, you have to choose between MBR and GPT. Currently, there are only two types of partitioning.

Limitations of MBR

MBR means "Master Boot Record" and was first proposed in IBM PC DOS 2.0 in 1983. It is called the "master boot record" because it is a special boot sector that exists at the beginning of the drive. This sector contains the drive's partition information (64 bytes, fixed size, a partition is recorded in 16 bytes) and the installed operating system's boot loader (446 bytes) and a 2-byte end flag , so the size of this sector is 512 bytes. . The so-called boot loader is a small piece of code used to load larger loaders on other partitions on the drive. If you installed Windows, the initial information of the Windows boot loader is placed in this area - if the MBR information is overwritten and Windows cannot start, you need to use the MBR repair function of Windows to restore it to normal. If you have installed Linux, the GRUB loader will usually be located in the MBR. MBR supports disks up to 2TB, it cannot handle disks with a capacity larger than 2TB. MBR also only supports up to 4 primary partitions - if you want more partitions, you need to create so-called "extended partitions" and create logical partitions within them. MBR has become the industry standard for disk partitioning and booting.

Advantages of GPT

GPT means GUID partition table. (GUID means Globally Unique Identifier). This is a new standard that is gradually replacing MBR. It and UEFI complement each other - UEFI is used to replace the old BIOS, while GPT replaces the old MBR. It’s called a “GUID Partition Table” because each partition on your drive has a globally unique identifier (GUID)—a randomly generated string that’s guaranteed to be Every GPT partition on a GPT partition is assigned a completely unique identifier. This standard does not have the limitations of MBR. Disk drives can be much larger than the operating system and file system can support. It also supports an almost unlimited number of partitions. The limitation is only in the operating system - Windows supports up to 128 GPT partitions. There is no concept of primary partitions and extended partitions on GPT hard disks. All partitions are called partitions. On MBR disks, partition and boot information are saved together. If this part of the data is overwritten or corrupted, things could be in trouble. In contrast, GPT saves multiple copies of this part of the information on the entire disk, so it is more robust and can recover this part of the information if it is damaged. GPT also stores a cyclic redundancy check (CRC) for this information to ensure that it is complete and correct - if the data is corrupted, GPT will detect the corruption and restore it from elsewhere on the disk. MBR is powerless to deal with these problems - only after the problem occurs, you will find that the computer cannot start, or the disk partitions are gone.

GPT compatibility

As you can see, there is also a mark similar to MBR (Master Boot Record) in the first data block of the GTP disk. It's called PMBR (Protected MBR). The function of PMBR is that when using a partitioning tool that does not support GPT, the entire hard disk will appear as a protected partition to prevent the partition table and hard disk data from being damaged. UEFI does not obtain the partition information of the GPT disk from PMBR. It has its own partition table, the GPT partition table.

Primary partition, extended partition and logical partition

These terms are only available in MBR because GPT supports unlimited primary partitions. If you are using the MBR partition format, then you will have at least one and at most four primary partitions; if you want to have more partitions, then you will need to create an extended partition and then create a new one in the extended partition. Multiple logical partitions. And the number of primary partitions and extended partitions shall not exceed four; extended partitions may have none or at most one; logical partitions may have none or multiple logical partitions. Extended partitions cannot be enclosed between primary partitions.

The activated primary partition is the boot partition of the hard disk. It is independent and is also the first partition of the hard disk. If it is divided normally, it is the C drive. After the primary partition is divided, the remaining part can be divided into extended partitions. Generally, the remaining part is divided into extended partitions, or not completely. Then the remaining part is wasted. But the extension cannot be used directly. It is used in the form of logical partitions, so the extended partition can be divided into several logical partitions. Their relationship is an inclusive relationship, and all logical partitions are part of the extended partition. Equivalent to hda partition in Linux.

The capacity of the hard disk = the capacity of the primary partition and the capacity of the extended partition

The capacity of the extended partition = the sum of the capacities of each logical partition

Up to 4 in the MBR partition table Primary partition or 3 primary partitions and 1 extended partition, which means there can only be one extended partition, and then it can be subdivided into multiple logical partitions.

In the Linux system, the hard disk partitions are named sda1~sda4 or hda1~hda4 (sd represents SCSI hard disk, hd represents IDE hard disk, where a represents the hard disk number, and if there are multiple hard disks, they are b and c , d; 1 represents the first partition, 2 represents the second partition, and so on). In an MBR hard disk, partition numbers 1-4 are primary partitions (or extended partitions), and logical partition numbers can only start from 5.

As shown in the figure, the F, G, and H disks in disk 1 are primary partitions, I K J is an extended partition, and I, K, and J are logical partitions.

What are the disk partition forms?

In Windows, by default, an extended partition will be created only after you have created 3 primary partitions. If we want to create an extended partition directly, we can use the command

What are the disk partition forms?

For more related knowledge, please visit the FAQ column!

The above is the detailed content of What are the disk partition forms?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn