You can connect your USB to your Windows computer, open File Explorer, and right-click the USB drive to select Format and select a file system to format the USB flash drive.
Read More Format USB Flash Drive for Free with SoftwareĪctually, you can easily format a USB flash drive on Windows 10 by using File Explorer. Type exit to close DiskPart and type exit to close Command Prompt window.Īfter formatting the USB flash drive in CMD (Command Prompt), the USB drive should be shown in Windows File Explorer and is available for storing files. Press Enter to assign a letter for the USB drive and make it visible in Windows File Explorer. Assign a drive letter for the USBĬontinue to type the command assign letter=h, replace “h” with the preferred drive letter you want to assign to the USB drive. Optionally you can add a “quick” flag after the command for a faster format. Then type the command format fs=ntfs or format fs=fat32, and press Enter to format the USB flash drive to NTFS or FAT32 format. You can type list disk command again, press Enter, and the selected disk should have a “*” mark before the disk number.Īfter that, you can type the command create partition primary, and press Enter. Tip: Before you format USB using CMD, you can confirm again that you’ve selected the right disk, to avoid formatting the wrong disk. Format USB flash drive/pen drive with CMD (Command Prompt) Type the command select disk 3 and press Enter to select the target USB flash drive. You may identify the USB by checking the size. Check carefully which disk is your USB drive. Then you can type the command list disk, press Enter and all detected disks will be displayed with detailed information. Next you can type the command diskpart in Command Prompt window. One easy way is: press Windows + R, type cmd in Run dialog, press Ctrl + Shift + Enter and click Yes to run Command Prompt as administrator. You have several ways to open Command Prompt on Windows 10.
How to Format USB Flash Drive/Pen Drive Using CMD on Win 10
If the USB can’t be recognized by computer, you may try some tips to see if you can make it visible on PC before you use Command Prompt to format it. If the USB flash drive can still be recognized by computer, you can connect it to computer and copy needed files to another device. Step 5: Type exit and hit Enter to leave DiskPart and close command prompt.Note: Disk formatting will wipe all data on the disk. After the partition is selected, type delete partition and hit Enter. Type " select partition partition-number" and press Enter. According to the disk information, choose the one where the partition is located, type " select disk disk-number" and press Enter.įind the partition according to the information presented. In the command prompt window, input diskpart and press Enter. Remove a partition with partition command Step 4: Type exit and hit Enter to leave DiskPart and close command prompt. Remember to replace volume-number with the partition you want to delete, like "Select volume 4". Type " select volume volume-number" to select the volume you’d like to delete and hit Enter. In the pop-up interface, type diskpart and press Enter. Then right-click the top result and select the Run as administrator. Delete partitions with volume commandĬlick the "Start" menu and type cmd in the searching box. There are 2 ways to remove a partition using CMD. Remember to back up important data before partition formatting. You can delete almost any partition, except for the system partition which running CMD. Part 2: Delete a partition using DiskPart Step 7: Type Exit and press enter to close the command prompt. Want to learn more about formatting partition using cmd? Read this article for more information: How to Format Disk Partition Using Command Prompt. If you want to format it using the NTFS file system and give it a name, type format fs=ntfs quick label=data and press enter. Of course, you can allocate more space to the partition as long as it does not exceed the size of space left on the selected disk. Step 5: Type the following command to create a new partition with 10000MB size: For instance, type "select disk 0" and press Enter. Make sure to replace the disk-number with the disk you’d like to choose. Step 4: Input " select disk disk-number" to choose a disk. It is recommended to select a disk with a large free space to create a new partition. You can see the sizes of the free space on all disks. Step 3: Type list disk and hit Enter to show all available disks. Step 2: Type diskpart on the command prompt and press Enter. Right-click the icon and select Run as administrator. Step 1: Type "cmd" or "command prompt" in the search box in the lower-left corner. Part 1: Create new partitions using command prompt