Diskpart manual
diskpart and press Enter to enter the Diskpart interface.list disk
Lists all disks connected to your system, showing their size and status.
list diskselect disk disk_number
Selects a specific disk by its number for further operations. Replace disk_number with the actual disk number (e.g., select disk 0).
select disk 0detail disk
Displays detailed information about the selected disk, including its partitions, status, and size.
detail diskclean
Removes all partitions and data from the selected disk, essentially resetting it to an "uninitialized" state.
cleanconvert mbr|gpt
Converts the selected disk to MBR (Master Boot Record) or GPT (GUID Partition Table). This operation erases all partitions on the disk.
convert mbror
convert gptlist partition
Lists all partitions on the selected disk.
list partitionselect partition partition_number
Selects a specific partition on the selected disk. Replace partition_number with the partition number (e.g., select partition 1).
select partition 1create partition primary size=5000
Creates a primary partition with a size of 5000 MB. If no size is specified, it will take up all unallocated space.
create partition primary size=5000create partition extended size=20000
Creates an extended partition. This partition type allows you to create logical partitions within it.
create partition extended size=20000create partition logical size=10000
Creates a logical partition within the extended partition, using the specified size.
create partition logical size=10000delete partition
Deletes the selected partition.
delete partitionformat fs=ntfs quick
Formats the selected partition with the NTFS file system using a quick format.
format fs=ntfs quickassign letter=D
Assigns a drive letter to the selected partition, making it accessible through Windows Explorer.
assign letter=Dremove letter=D
Removes the assigned letter from the selected partition.
remove letter=Dextend
Extends the selected partition into any unallocated space available after it. If no size is specified, the partition will use all available space.
extendshrink desired=5000
Shrinks the selected partition by the specified amount (5000 MB in this case), creating unallocated space.
shrink desired=5000active
Marks the selected partition as active. Only one partition can be active at a time, and it is used to boot the operating system.
activeinactive
Marks the selected partition as inactive.
inactiveVolumes are different from basic partitions. On dynamic disks, a volume can span multiple partitions or disks.
list volume
Lists all volumes on the system, whether they are on basic or dynamic disks.
list volumeselect volume volume_number
Selects a volume for further operations. Replace volume_number with the volume number (e.g., select volume 1).
select volume 1detail volume
Shows detailed information about the selected volume, including file system and size.
detail volumedelete volume
Deletes the selected volume.
delete volumeÚltima actualización