Used To Create or Delete Partitions On Hard Drives.: Diskpart
Used To Create or Delete Partitions On Hard Drives.: Diskpart
You can also access this command from the Recovery Console in Windows 2000 and
Windows XP.
NOTE: Managing partitions is also possible without the use of a command from within
any version of Windows using the Disk Management tool.
In the above example, the diskpart command creates a 5,000 MB partition on the
hard drive located at \Device\HardDisk0.
diskpart /delete \Device\HardDisk0\Partition1
For this one, the diskpart command will remove the Partition1 partition located on the
hard drive \Device\HardDisk0.
diskpart /delete G:
This command will remove the partition currently assigned the drive letter G.
diskpart
list disk
select disk 1
attributes disk clear readonly
exit