在动态类型和基本类型之间转换磁盘可以更改在 Windows 系统上管理存储的方式。 基本磁盘使用主分区、扩展分区和逻辑驱动器,使其适合大多数标准配置。 动态磁盘提供跨区、条带化和镜像卷等高级功能,但现在已被弃用并且不建议用于新的部署。 Instead, use basic disks or the newer Storage Spaces technology when you want to pool disks together into larger volumes. 如果要镜像 Windows 的引导卷,则可能需要使用硬件 RAID 控制器,例如许多主板上包含的 RAID 控制器。
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 hit Enter.
右键单击与磁盘相关的卷。
Select Delete Volume, then select Yes. 对磁盘上的所有卷重复此步骤。
右键单击磁盘并选择以下任一项:
转换为动态磁盘,选择要转换的正确磁盘,然后选择“ 确定”。
转换为基本磁盘。
Once conversion is complete, you'll see either Basic or Dynamic under your disk. If a new volume is created, you can see the disk type under the Type column.
在转换分区样式之前,请备份或将数据移出磁盘。
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.
Type convert basic or convert dynamic, then hit Enter.
转换完成后,您会收到有关该过程的通知。
在转换分区样式之前,请备份或将数据移出磁盘。
打开提升权限的 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
To convert the disk type to basic, run the following command and replace Disk Number
with your actual disk number:
$diskNumber = Disk Number
$convert = @(
"select disk $diskNumber",
"convert basic"
)
$convert | ForEach-Object { $_ } | diskpart
To convert the disk type to dynamic, run the following command and replace Disk Number
with your actual disk number:
$diskNumber = Disk Number
$convert = @(
"select disk $diskNumber",
"convert dynamic"
)
$convert | ForEach-Object { $_ } | diskpart
转换完成后,您会收到有关该过程的通知。