In some cases you will not be able to fix your storage unit in windows using the graphic user interface (GUI). The command line (CMD) utility called “DiskPart” is a tool that could be used to list disks, select disks and delete partitions within a selected disk. Here’s a simplified tutorial on how to use the DiskPart utility in Windows to list disks, choose a disk, remove a partition, and create partitions:
Starting the Program
Open the Command Prompt as an administrator. To do this, click the Start button, type “cmd” into the search bar, right-click on “Command Prompt,” and select “Run as administrator.”
Type “diskpart” into the Command Prompt and press Enter. This will launch the DiskPart utility.
List the Disks Connected to your Computer
To list all the disks on your system, type “list disk” and press Enter. You will see a list of all the disks, along with their size and status.
Selecting a Disk to Work on it
To select a disk, type “select disk X” where X is the number of the disk you want to choose. For example, if you want to select the first disk, type “select disk 0” and press Enter.
Remove a Partition from Selected Disk
To remove a partition, type “delete partition X” where X is the number of the partition you want to delete. For example, if you want to delete the first partition, type “delete partition 0” and press Enter.
Create a Partition from Selected Disk
To create a new partition, type “create partition primary size=X” where X is the size of the partition you want to create. For example, if you want to create a 500 MB partition, type “create partition primary size=500” and press Enter.
How to Force an Action if Action is not Allowed
If you want to force a command in DiskPart, you can use the “force” parameter. This parameter is available for some commands, such as “create partition” and “delete partition.”
Here’s an example of how to use the “force” parameter with the “delete partition” command:
- Open the Command Prompt as an administrator.
- Type “diskpart” and press Enter.
- Type “list disk” and press Enter.
- Type “select disk X” where X is the number of the disk that contains the partition you want to delete.
- Type “list partition” and press Enter.
- Type “select partition X” where X is the number of the partition you want to delete.
- Type “delete partition override” and press Enter. This command will delete the selected partition without prompting for confirmation.
Note that the “override” parameter is similar to the “force” parameter, and they can be used interchangeably. However, be careful when using these parameters, as they will permanently delete any data stored on the selected partition. Make sure to back up any important data before using these commands.
That’s it! I hope this tutorial helps you get started with the DiskPart utility in Windows. Remember to be careful when deleting partitions, as this will permanently erase any data stored on them.