Creating A Partition Using Diskpart: Hard Drive Partitions
Creating A Partition Using Diskpart: Hard Drive Partitions
also create, delete and resize hard drive partitions, and assign or
reassign drive letters.
Note: Any text in parentheses are comments only; they should not be
typed along with any commands given.
To create a partition:
2. At the DISKPART prompt, type: LIST DISK (Lists disks found. Make note of
the drive number you wish to manipulate.)
3. At the DISKPART prompt, type: Select Disk 1 (This selects the disk; make
sure to type in the disk number from step two.)
7. Use the Command Prompt format command, Disk Administrator or any disk
format utility to format the drive -- typically using NTFS, of course.
Extending a partition using Diskpart
When it comes to adding space to a partition or volume, this method is superior
to configuring dynamic disks. Dynamic disk extensions only concatenate the
newly added space, meaning they merely add the disk space to the end of the
original partition without restriping the data.
Concatenation isolates performance within each partition and does not offer fault
tolerance when the partition is configured in a RAID array. Diskpart allows you
to restripe your existing data. This is truly beneficial when the partition is set up
in a RAID array, because the existing partition data is spread out across all the
drives in the array, rather than just adding new space to the end, like Disk
Administrator.
Microsoft's official position is you cannot use Diskpart to extend your system or
boot partition. However, this tip on increasing the capacity of your system
volume suggests otherwise.
Note: If you try it or any other method, make sure you have a full backup.
To extend a partition:
1. Verify that contiguous free space is available on the same drive and that free
space is next to the partition you intend on extending, with no partitions in
between.
5. At the DISKPART prompt, type: Extend Size=10000 (If you do not set a size,
such as the above example for 10 GB, then all available space on the disk will
be used.)
Note: It is not necessary, but I normally reboot the server to make sure all is well
from a startup standpoint.
3. At the DISKPART prompt, type: CLEAN ALL (The CLEAN ALL command
removes all partition and volume information from the hard drive being
focused on.)
Final note: Here are four important things to keep in mind regarding Diskpart.
Do not use DISKPART until you have fully backed up the hard disk you are
manipulating.