1. Open the command prompt, type diskpart, then press Enter. This will start the diskpart utility, and you'll see the command prompt change to DISKPART>.
2. Now you need to find the partition you want to extend or shrink. To do this, use the command list volume.
3. To change the focus of the diskpart utility to the partition you want to work with, select volume #, where # stands for the number of the volume that you see listed in step #2.
4. Assuming you already have the space on the drive available to extend the partition to, just type extend and press Enter. This will expand your partition into the new free space.
You can also shrink the volume instead of extending it, or you can specify just how much to extend or shrink with additional command line parameters. I just covered the easiest, and most useful feature in my opinion. diskpart.exe has plenty of other uses too, but most of those can also be done in the Disk Management MMC. Basic vs Dynamic disks are another interesting topic, along with striped disks right from Windows. I'll leave those for another time though. diskpart.exe does have some difference between XP and Vista, but I'll let you figure those out as you go. Just know that if you have problems using it in Vista, check to make sure the command is supported.
For more information about diskpart.exe, check out these links.
No comments:
Post a Comment