Press Enter key to run the Diskpart tool. Step 2: In the Command Prompt, execute the following commands one after another. To do so, type CMD in the Start/taskbar search box, right-click on the Command Prompt entry in the search results, and then click Run as administrator option.Ĭlick Yes button when you get the User Account Control screen to continue. Step 1: Run Command Prompt as administrator.
#Open disk formatting windows cmd how to#
If you like this article, check out how to zoom in and zoom out in command prompt and PowerShell and how to change command prompt or PowerShell cursor size, color, and shape.Format USB pen drive via Command Prompt in Windows 10 You can also partition the USB drive to manage stored data better if you want. Comment below sharing your experiences or any problems you face while formatting a USB drive from Command Prompt. See? It’s not that hard to format a USB drive from Command Prompt. If you open the File Explorer, you can see your drive formatted and neat. After that, you can close the Command Prompt window by clicking the “X” button on the title bar or typing exit again.ġ2. To get out of it, execute the exit command.ġ1.
Remember, we are still in the Diskpart utility. That is it you are done formatting the USB drive from Command Prompt. So, execute the below command to assign a drive letter to your USB drive. You should tell Windows to assign a drive letter specifically. This is because Windows did not assign a drive letter to the newly formatted drive. Even after formatting, you will not see the USB drive in the File Explorer. You will see it as a checkbox when you try to format drives from File Explorer. The “quick” part in the command is signaling the system to do a quick format. If you want a FAT32 file system, replace ntfs with fat32 in the below command. In general, Windows drives are formatted as NTFS. Execute the below command to format the USB drive with the NTFS file system. Now that the partition is created, we can format the drive. For that, execute the below command create partition primaryĨ. After cleaning the drive, it’s time to create the primary partition. Execute the below command to clean the USB drive. After selecting the disk, you need to clean it. Once you replace the dummy command with the actual disk number, the command looks like this. After identifying the USB drive from the list of disks, type the below command and press Enter to execute the command. So my USB drive is represented as “Disk 2” with 3818MB.ĥ. For instance, I’ve plugged in a 4GB pen drive. You can generally identify the USB drive using its size. Execute the list disk command to list all the disks in your system.Ĥ. You will now be inside the Diskpart utility. To format the USB drive, we need to use the Diskpart tool. Search for cmd in the start menu, right-click on Command Prompt and select “ Run as Administrator.”Ģ. After that, open the Command Promot window as admin.
You can try formatting the USB drive from Command Prompt in those situations.