This article will guide you on how to format hard drives and removable devices using the command prompt in windows.
Many at times some hard drives and USB often cannot be formatted using the GUI (graphical user interface). Some prompt with errors such as Windows cannot complete the format and other error messages.
This can indeed be so frustrating but don’t worry we have you covered.
To format hard drives, and USB using the elevated command prompt known as CMD. Whether you just want to play around with formatting using the command prompt or you want to fix your problem the following solution will work both ways.
Follow keenly for the commands and the scripts that are run.
1. Open CMD
For these purposes, you need to open the command prompt as an administrator.
To do these press the windows button and type CMD.
After typing then right-click to open as an administrator.
The screenshot down below will guide you.
Another alternative way is to press Windows + R keys to open run the type CMD, after that press enter to open the CMD.
From the CMD is where we will run our commands and scripts.
2. Type “diskpart”.
This command will enable us to run commands on the disks. Such as check if the online disks connected to the computer, the storage capacity for all the disk, disks with no volumes.
3. Type “list disk”.
This command will list all the available drives connected to your computer.
It will list them as follows with their volumes and available capacity.
4. Type “select disk E”.
Replace disk “E” with the drive label you want to format.
This will ensure that we don’t interfere with other drives except for the one we want to format.
5. Type “clean”.
This command, unlike format, will delete and format everything within the drive including the drive partitions. It will also do away with the bad sectors within the drive.
It will also do away with unallocated storages and merge the volume.
6. Type “create partition primary”.
This command will create a primary partition on the drive and mask it as online.
At this stage of your drive should show on your computer disks. If it doesn’t show anything try formatting again using the GUI (graphical user interface) and it should be fine.
If your drive doesn’t show any signs at this stage then there are some hardware problems with your drive.
If you having problems with navigating through the drives using the command prompt then follow along with this article (link here).
If you found this article helpful drop your comment in the comment section and share with your friends.
If you have any suggestion or encounter problems don’t hesitate to shoot your query.
Peace until next time.