DiskPart Command Prompt Utility

If you're using Windows 10 or 11, you'll come across several command prompts like Command Prompt, PowerShell, or Windows Terminal. You can use the following commands in one of these tools, but today we'll talk about using Windows Terminal. It is also one of the ways to fix your USB stick.


Please follow these steps:


  1. Press Windows Key + X > select Windows Terminal (Admin) in the menu bar > enter diskpart > press Enter (number 1 in the image below).
  2. Next, type list disk > press Enter > a list of currently mounted disks appears, like so (number 2 in the image below).
  3. Make sure you can see your USB drive. Depending on how many disks your USB has, write down your disk number. Now enter the following command: select disk [your disk number]
  4. Once selected, enter the following command: attributes disk clear readonly

=> You have now removed any remaining read-only file attributes from the USB drive you wanted.

DiskPart Command Prompt Utility
DiskPart Command Prompt Utility
DiskPart Command Prompt Utility
DiskPart Command Prompt Utility

Toplist Joint Stock Company
Address: 3rd floor, Viet Tower Building, No. 01 Thai Ha Street, Trung Liet Ward, Dong Da District, Hanoi City, Vietnam
Phone: +84369132468 - Tax code: 0108747679
Social network license number 370/GP-BTTTT issued by the Ministry of Information and Communications on September 9, 2019
Privacy Policy