主启动记录(MBR)磁盘使用旧版 BIOS 分区方案(也称为分区样式),每个磁盘最多支持四个主要分区。 MBR 限制为 2 TB 或更小的磁盘,不建议用于更大的驱动器。 GUID 分区表(GPT)磁盘使用现代统一可扩展固件接口(UEFI),支持四个以上的分区,并且可以管理大于 2 TB 的磁盘。
仅当磁盘不包含任何分区或卷时,才能转换磁盘的分区样式。 在尝试更改磁盘格式之前,请确保删除所有现有分区或卷。
Prerequisites
You must be a member of the Administrators group (or have equivalent privileges) to convert a disk.
Important
在转换磁盘之前,请备份磁盘上的任何数据,并关闭访问磁盘的任何程序。
转换磁盘
可以使用磁盘管理工具或命令行转换磁盘。 请按照以下步骤选择你的方法。
在转换分区样式之前,请备份或将数据移出磁盘。
Select Start, type diskmgmt.msc, then select Enter.
右键单击与磁盘相关的卷。
Select Delete Volume, then select Yes. 对磁盘上的所有卷重复此步骤。
右键单击磁盘,然后选择“ 转换为 MBR 磁盘 ”或 “转换为 GPT 磁盘”。
To verify the conversion process, right-click on your disk, select Properties, select the Volumes tab, and check the partition style information.
在转换分区样式之前,请备份或将数据移出磁盘。
Open an elevated command prompt window, type diskpart, then hit Enter.
通过清理(删除)任何分区或卷来准备磁盘进行转换。
Note
If your disk doesn't have any partitions or volumes, skip to step 3 to convert your disk.
Type list disk and hit Enter. 记下要转换的磁盘编号。
Type select disk, provide the disk number you want to convert, then hit Enter.
Type clean to delete all partitions and volumes on the disk.
To convert GPT to MBR, type convert mbr, then hit Enter.
To convert MBR to GPT, type convert gpt, then hit Enter.
转换过程完成时会收到通知。 To learn more, see the diskpart commands reference.
在转换分区样式之前,请备份或将数据移出磁盘。
打开提升权限的 PowerShell 窗口。
通过清理(删除)任何分区或卷来准备磁盘进行转换。
Note
If your disk doesn't have any partitions or volumes, skip to step 3 to convert your disk.
若要列出所有磁盘,请运行以下命令:
Get-Disk
记下要转换的磁盘编号。
若要从磁盘中删除所有分区和卷,请运行以下命令。 用您之前记录的磁盘编号替换<Disk Number>
:
Clear-Disk -Number <Disk Number> -RemoveData -Confirm:$false
若要转换分区样式,请运行以下命令:
对于 MBR 到 GPT 转换:
Initialize-Disk -Number <Disk Number> -PartitionStyle GPT
对于 GPT 到 MBR 转换:
Initialize-Disk -Number <Disk Number> -PartitionStyle MBR
Note
初始化磁盘后,无需再次运行 Clear-Disk
cmdlet 即可将其转换为另一个分区样式。
To verify the conversion process, run the following command and check the Partition Style column:
Get-Disk
See also