Thủ Thuật

How to format usb using cmd (command prompt) windows 10

  • Linkedin
  • Reddit

USB flash drive is widely used for storing and transferring files. But sometimes you may need to format the USB drive because of corrupted file system, data corruption issues, bad sectors, virus infection, etc. This post gives a step-by-step guide for how to format USB using CMD, namely the Windows built-in free DiskPart command tool, on Windows 10/8/7.

Note: Disk formatting will wipe all data on the disk. If the USB flash drive can still be recognized by computer, you can connect it to computer and copy needed files to another device. If the

Disk formatting will wipe all data on the disk. If the USB flash drive can still be recognized by computer, you can connect it to computer and copy needed files to another device. 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.

How to Format USB Flash Drive/Pen Drive Using CMD on Win 10

Step 1. Open Command Prompt on Windows 10

You have several ways to open Command Prompt on Windows 10. 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.

open cmd on Windows 10

Step 2. Open DiskPart command tool

Next you can type the command diskpart in Command Prompt window. Press Enter to launch DiskPart utility.

open DiskPart utility

Step 3. List all disks on PC

Then you can type the command list disk, press Enter and all detected disks will be displayed with detailed information. Check carefully which disk is your USB drive. You may identify the USB by checking the size. Here, my USB is Disk 3.

list all disks in cmd

Step 4. Select and clean the target USB drive

Type the command select disk 3 and press Enter to select the target USB flash drive. Then type clean command and press Enter. DiskPart will wipe disk data.

Xem Thêm :  Tổng hợp 10 phần mềm keylogger miễn phí tốt nhất trên windows!

select the USB

Step 5. Format USB flash drive/pen drive with CMD (Command Prompt)

Tip: Before you format USB using CMD, you can confirm again that you’ve selected the right disk, to avoid formatting the wrong disk. You can type list disk command again, press Enter, and the selected disk should have a “*” mark before the disk number.

After that, you can type the command create partition primary, and press Enter.

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. Optionally you can add a “quick” flag after the command for a faster format.

format USB CMD

Step 6. Assign a drive letter for the USB

Continue to type the command assign letter=h, replace “h” with the preferred drive letter you want to assign to the USB drive. Press Enter to assign a letter for the USB drive and make it visible in Windows File Explorer.

Type exit to close DiskPart and type exit to close Command Prompt window.

After 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.

Format USB Flash Drive for Free with Software

Actually, you can easily format a USB flash drive on Windows 10 by using File Explorer. 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.

However, you might get an error message “Windows was unable to complete the format” when using this way to format USB. If you meet this error, you can use the Command Prompt to format the USB drive or use other USB formatter software to do this task for free.

MiniTool Partition Wizard is the best free disk partition manager for Windows 10. You can use this program to easily format USB to NTFS or FAT32 for free. The process is much simpler than formatting USB with CMD.

MiniTool Partition Wizard allows you to easily create/resize/format/delete/wipe partitions, convert FAT to ntfs or vice versa, check and fix disk errors, migrate OS, clone disk, benchmark disk, etc.

Xem Thêm :  Gmat là gì? bạn biết gì về bài thi gmat?

Download and install MiniTool Partition Wizard on your Windows 10 computer. Check how to use this tool to format USB in a few clicks below.

Free Download

Step 1. Connect you USB to PC. Launch the USB format tool.

Step 2. Right-click the partition on the USB drive, and choose Format.

Step 3. In the pop-up Format Partition window, choose a file system like FAT32, NTFS. Type a preferred partition label if you like. Click OK.

Step 4. Click Apply button at the bottom-left to start the USB formatting process.

format USB with MiniTool Partition Wizard

Click to tweet

How to Recover Data from a Mistakenly/Intentionally Formatted USB

Formatting USB with CMD or other USB format tools will erase all data on it. No matter you mistakenly or intentionally formatted the USB flash drive/pen drive, you can recover data from USB drive if you want.

MiniTool Power Data Recovery is a professional data recovery program for Windows. This free data recovery software lets you recover any deleted/lost files from USB flash drive/pen drive, SD card, HDD, SSD, and Windows local hard drive. You can use it to recover data from various data loss situations.

Download and install MiniTool Power Data Recovery on your Windows 10 computer, and check how to use it to recover data from formatted USB below.

Free Download

Step 1. Plug in the USB to your Windows 10 computer. Launch MiniTool Power Data Recovery.

Step 2. Next you can find and select the USB drive under Logical Drives. Click Scan to start scanning. Or you can click Devices tab and click the USB device to scan.

Step 3. After the software finishes the scanning, you can see it displays all files incl. deleted and lost files on the USB. It recovers all data on the formatted USB drive. You can check the folders to find needed files and click Save button to select a new destination to store the recovered files.

recover data from USB

Conclusion

In this guide, you have learned how to format corrupt USB with CMD (Command Prompt) on Windows 10. An alternative free USB formatter software is also attached with an easy guide if Command Prompt is not working on your Windows 10 computer. To recover data from a formatted USB, this post also covers a free and easy guide.

Xem Thêm :  Hình nền hoa bỉ ngạn 3d đẹp và mới lạ nhất năm 2022

If you have any problems when using software from MiniTool, you can contact [email protected].

Format USB CMD FAQ

How can I format USB drive in CMD?

You can press Windows + R, type cmd, and press Ctrl + Shift + Enter to run Command Prompt as administrator. Then type the following commands and press Enter after each command.

  • diskpart
  • list disk
  • select disk * (replace * with the exact disk number of USB)
  • clean
  • format fs=fat32 quick (replace fat32 with ntfs if you want to format USB to ntfs format)
  • assign letter=* (replace * with preferred drive letter)
  • exit

How do I completely format my USB?

You can either use CMD or MiniTool Partition Wizard to completely format USB flash drive or pen drive for free.

How to format write protected USB using CMD?

Click Start menu, type cmd, right-click Command Prompt to run it as administrator. Then type the following commands to format write-protected USB using CMD. Press Enter after each command.

  • diskpart
  • list disk
  • select disk
  • attributes disk clear readonly
  • select disk
  • clean
  • format fs=fat32 quick (replace fat32 with ntfs if you want to format USB to ntfs format)
  • assign letter=
  • exit

How can I format my USB to FAT32?

You can use Command Prompt or MiniTool Partition Wizard to easily format your USB to FAT32. The detailed guide is included in this post.

  • Linkedin
  • Reddit


5 Cách phục hồi lại USB


01:07 Cách 1 Format USB trong win
02:46 Cách 2 Dùng Disk Management
05:15 Cách 3 Dùng Diskpart
08:53 Cách 4 Dùng bộ cứu hộ
13:27 Cách 5
★ Để trân trọng công sức và thời gian mình bỏ ra giúp đỡ các bạn, các bạn có thể Donate (Ủng hộ) mình qua các hình thức dưới đây:
? Momo: 0917224928 , Chu Đặng Phú
? VCB 0121001858265, Chu Đặng Phú
? paypal.me/phuchu
?Chụp hình thẻ CÀO điện thoại và gửi về Email: cdangphu@gmail.com
Các bạn nhớ SUBSCRIBE (ĐĂNG KÝ) kênh để ủng hộ tác giả và giúp kênh ngày càng phát triển hơn nhé.
Nhớ SHARE clip sau khi đã nhấn subscribe, nhấn chuông để không bỏ lỡ clip mới
Xin chân thành cám ơn tất cả mọi người đã ủng hộ và ĐA TẠ

Xem thêm bài viết thuộc chuyên mục: Thủ Thuật
Xem thêm bài viết thuộc chuyên mục: Thủ Thuật

Related Articles

Back to top button