3.2. Converting a Basic Disk to Dynamic

Problem

You want to convert a basic disk to a dynamic disk.

Solution

Using a graphical user interface

  1. Open the Computer Management snap-in.

  2. In the left pane, expand Storage and click on Disk Management.

  3. In the lower-right pane, right-click the disk you want to convert and select Convert to Dynamic Disk (on Windows XP and Windows Server 2003) or Upgrade to Dynamic Disk (on Windows 2000).

  4. Check the box beside the disk(s) you want to convert and click OK.

  5. Click Convert (on Windows XP and Windows Server 2003) or Upgrade (on Windows 2000) and click Yes to confirm the conversion.

Using a command-line interface

On Windows Server 2003, you can use the diskpart utility to convert a disk to dynamic. First, run diskpart to enter interactive mode:

> diskpart

You need to get a list of disks so you can select the one you want to convert:

> list disk

In the following example, I'll select disk 0:

> select disk 0

Now, run the following command to convert the disk:

> convert dynamic

You may be asked to reboot for the change to take effect.

Using VBScript

None of the WMI classes support converting a disk to a dynamic disk.

Discussion

By default, disks are initialized as basic on both Windows 2000 and Windows Server 2003. You can convert a disk to dynamic to take advantage of features such as the ability to dynamically extend partitions. Some additional benefits of dynamic disks include:

  • You can perform disk and volume management without needing to restart the operating system. ...

Get Windows Server Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.