大网数据广告活动
磁盘与文件系统

Convert a disk to Dynamic or Basic

· 52CE 我爱测

Learn how to convert a disk type to Dynamic or Basic using Disk Management and the command line in Windows.

Converting a disk between dynamic and basic types allows you to change how storage is managed on your Windows system. Basic disks use primary partitions, extended partitions, and logical drives, making them suitable for most standard configurations. Dynamic disks offer advanced features like spanning, striping, and mirroring volumes, but are now deprecated and not recommended for new deployments. Instead, use basic disks or the newer Storage Spaces technology when you want to pool disks together into larger volumes. If you want to mirror the volume from which Windows boots, you might want to use a hardware RAID controller, such as the one included on many motherboards.

Prerequisites

You must be a member of the Administrators group (or have equivalent privileges) to convert a disk.

Important: Before you convert a disk, back up any data on the disk, and close any programs that access the disk.

Convert a disk

You can convert your disk using either the Disk Management tool or the command line. Follow these steps for your method of choice.

Disk Management

Before you convert your disk type, back up or move the data off the disk.

  1. Select Start, type diskmgmt.msc, then hit Enter.

  2. Right-click on the volume pertaining to your disk.

  3. Select Delete Volume, then select Yes. Repeat this step for all volumes on the disk.

  4. Right-click on the disk and select either:

    1. Convert to Dynamic Disk, select the correct disk that you want to convert, then select OK.

    2. Convert to Basic Disk.

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.

Diskpart

Before you convert partition styles, back up or move the data off the disk.

  1. Open an elevated command prompt window, type diskpart, then hit Enter.

  2. Prepare your disk for conversion by cleaning (deleting) any partitions or volumes.

    [!NOTE] If your disk doesn't have any partitions or volumes, skip to step 3 to convert your disk.

    1. Type list disk and press Enter. Note the disk number that you want to convert.

    2. Type select disk <disk number>, replace <disk number> with the number you noted in the previous step, and then press Enter.

    3. To verify the details of the currently selected disk, type detail disk and press Enter. The detail disk command displays information about the currently selected disk and doesn't accept a disk number as an argument.

    4. Type clean and press Enter to delete all partitions and volumes on the disk.

      [!CAUTION] The clean command permanently destroys all data on the selected disk. Ensure you back up or move all important data before running this command.

  3. Type convert basic or convert dynamic, and then press Enter.

Once conversion is complete, you're notified of the process.

PowerShell

Before you convert partition styles, back up or move the data off the disk.

  1. Open an elevated PowerShell window.

  2. Prepare your disk for conversion by cleaning (deleting) any partitions or volumes.

    [!NOTE] If your disk doesn't have any partitions or volumes, skip to step 3 to convert your disk.

    1. To list all disks, run the following command:

      Get-Disk
      

      Note the disk number you want to convert.

    2. To remove all partitions and volumes from the disk, run the following command. Replace <Disk Number> with the disk number you noted earlier:

      Clear-Disk -Number <Disk Number> -RemoveData -Confirm:$false
      
  3. 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
    

Once conversion is complete, you're notified of the process.


Related links

Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Server documentation
适用范围
Windows Server · Source date 06/17/2025
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。