WiseCleaner Think Tank

Encounter difficult computer problems?
All about maintenance and optimization of your Windows System.

Home > Think Tank > How to Remove the Read‐Only State from a USB Drive

How to Remove the Read‐Only State from a USB Drive

Jun 17, 2024

USB flash drive is a common and essential tool for storing and transferring data. However, it can be frustrating when you try to open a USB but only encounter a read-only state.The read-only state means that you cannot neither add, delete, nor modify any of the files in the USB. This WiseCleaner guide will walk you through the simple steps to fix the "This disk is write-protected" problem and easily restore the full functionality of your USB flash drive.

Use the DiskPart command to clear the read-only status of the disk

You can use the DiskPart tool built in Windows which is a powerful command-line utility helps manage your disks and partitions. Here is how to use it to clear the read-only attribute of a USB drive.

Step 1. Connect the USB with the computer

Connect the USB flash drive to your computer by plugging the USB into the USB port of the computer.

Step 2. Run CMD as Administrator

You can either search for “cmd” in the Start menu, right-click on Command Prompt from the results and click Run as administrator, or press Windows key + R on the keyboard and enter “cmd” in the text box to open CMD as an Administrator.

Step 3. Enter the following commands

  • 1) Type diskpart and press Enter, this command will open the DiskPart tool in another window.
  • 2) Type list disk and press Enter to display all of your disks connected to your computer. Identify and note the disk number of your USB flash drive.
  • 3) Type select disk X and press Enter to select the targeted disk. Replace X with the disk number of your USB flash drive.
  • 4) Type attributes disk and press Enter. This will check and display the current attributes of your USB.
  • 5) Type attributes disk clear readonly and press Enter to remove its read-only attribute.

Step 4. Close CMD and DiskPart

When you have entered all the commands above, close the windows of both DiskPart and CMD.

Sum up

Removing the read-only state from a USB flash drive is crucial to keep it available and ensure that you can manage the data effectively. By following the method in this WiseCleaner guide, you can restore the full functionality of your USB drive, allowing you to add, delete, and modify the files in it.

40