PDF download Download Article
Remove and reformat write-protection from your USB drive
PDF download Download Article

If your pen drive is write-protected, you may not have the ability to modify files or format the drive. There are a few things you can do to remove write protection from a USB drive. However, it's also possible the drive may be failing or locked with security software making it impossible to write to. This wikiHow teaches you how to remove write protection from your USB pen drive on a Windows or macOS computer.

Removing Write Protection on a USB Drive

  • Insert and switch the USB drive into your Windows or Mac device.
  • For Windows users, open “Run,” type “Diskpart,” and press enter. Type “select disk #” “attributes disk clear readonly” “clean” “create partition primary” “format fs=fat32” and “exit."
  • For Mac users, double-click the Disk Utility icon in the Utilities folder. Select your pen drive and preferred file system type, and click “Erase.”
Method 1
Method 1 of 6:

Using Diskpart (Windows)

PDF download Download Article
  1. If your USB drive has a physical write-protection switch on its exterior, it might be in the wrong (locked) position. Try toggling the switch before you continue with this method.
    • In some instances, a pen drive can be locked using security software that prevents permission changes on a flash drive. If this is the case, you may not be able to remove write protection from the USB drive. You will need to use the program that was used to apply the write-protection to remove it. [1]
  2. You can use any available USB slot on your PC.
    Advertisement
  3. It's usually at the bottom-left corner of the screen. This displays a menu.
  4. It's at the bottom of the menu that appears when you right-click the Windows Start menu. This opens Run in a new window.
  5. This opens Diskpart in the Command Prompt.
  6. A list of all drives, including your pen drive, will appear. Each drive is labeled "Disk (number)", and each number is unique to that drive.
    • You should be able to identify your USB drive by how much space it has listed under "Size". For example, if your USB drive is a 32 GB drive, it should say "32 GB" or close to that below "Size" in the Command Prompt.
  7. Replace # with the number of your pen drive (i.e. "select disk 3"). This selects the USB drive in Diskpart.
  8. This should remove write-protected status from the drive.
  9. This should remove the data from the drive. Once it's removed, you'll be able to set it up for use.
  10. This creates a partition on the USB drive.
  11. .\This selects the file system you want the USB drive to use. [2]
    • Type "format fs=ntfs" if you want the drive to be readable only by a Windows computer.
    • Type "format fs=fat32". If the drive is less than 32GB, and you want it to be compatible with the largest number of devices.
    • Type "format fs=exFAT" if the drive is greater than 32GB, and you want it to be compatible with the largest number of devices.
  12. This returns you to the standard command prompt. The drive should now be available for data storage and other uses. [3]
  13. Advertisement
Method 2
Method 2 of 6:

Removing Write-Protection Using Third-Party Software (Windows)

PDF download Download Article
  1. CleanGenius is a free program you can download for Windows. It has lots of tools to help optimize your system, but it also has a feature that can remove write-protection on a USB drive. Click the following link to download CleanGenius:
  2. Clicking the link downloads an executable file. By default, you can find the downloaded file in your Downloads folder or in your web browser. Click the "win_cleangenius_trial.exe" file to open it. Follow the instructions to complete the installation.
  3. Insert the USB drive with write protection into a free USB port on your computer.
    • If the USB drive has a write-protection switch on it, ensure the switch is disabled.
  4. It has a blue icon with a "C" that has a star in the middle of it. Click the icon in the Windows Start menu to open CleanGenius.
  5. It's the third option in the menu bar to the left. It has an icon that resembles three slider bars.
  6. It's the third option in the top row. It has an icon that resembles a shield with a green checkmark in the box.
  7. Use the drop-down menu below "Choose drive" to select the correct USB drive and drive letter.
  8. It's the blue button in the upper-right corner. This disables write-protection on your USB drive.
    • If the write-protection was applied using a different program, you may need to use that program to disable write-protection. It may not be possible to disable is using another program.
  9. Advertisement
Method 3
Method 3 of 6:

Using the Registry Editor to Remove Write-Protection (Windows)

PDF download Download Article
  1. If your USB drive has a physical write-protection switch on its exterior, it might be in the wrong (locked) position. Try toggling the switch before you continue with this method.
  2. Warning: Making incorrect changes to the system registry can cause damages to your operating system. This is only recommended for advanced users. Do not make any changes unless you know what you are doing. Use the following steps to open the Registry Editor:
    • Press Win + S to open the search bar.
    • Type regedit into the search field.
    • Click Registry Editor in the search results.
    • Click Yes to run the app.
  3. Use the following steps to navigate to the Control folder in the system registry. You should see several more folders inside the Control folder.
    • Click the HKEY_LOCAL_MACHINE folder.
    • Click the SYSTEM folder.
    • Click the CurrentControlSet folder.
    • Click the Control folder.
  4. If you see this folder in the left panel (under the "Control" folder), double-click it to display its contents in the right panel. If you don't see this folder, perform the following steps to create it: [4]
    • Right-click a blank area of the right panel to open the context menu.
    • Select New and then Key on the menu.
    • Type StorageDevicePolicies and then click the blank area to save the new key.
    • Click StorageDevicePolicies in the left panel to open it.
    • Right-click a blank area in the right panel and select New > DWORD .
    • Type WriteProtect and then click anywhere to save the DWORD.
  5. A dialog window will appear.
  6. Enter the numerical zero without the quotes.
  7. Changes you make in the Registry Editor usually require a restart to take effect.
  8. Advertisement
Method 4
Method 4 of 6:

Formatting a USB Drive with Third-Party Software (Windows)

PDF download Download Article
  1. AOMEI Partition Manager Standard Edition is a freeware program for Windows that you can use to format a USB drive. In some cases, it may be able to format a write-protected USB drive. Use the following steps to download and install AOMEI Partition Manager:
    • Go to https://www.diskpart.com/download-home.html in a web browser.
    • Click the green button that says Download Freeware .
    • Click the PAssist_Std.exe file in your Downloads folder or web browser.
    • Follow the instruction to install the program.
  2. Insert the USB drive with write-protection into a free USB slot on your computer.
    • If the USB drive has a write-protection switch on it, make sure it is disabled.
  3. It has an icon that resembles a blue, red, and green pie chart with a green checkmark in the middle.
  4. It should be the bar listed at the bottom of the list of drives on your computer. It contains the drive name and the amount of storage space the drive holds. Right-click it to display a drop-down menu.
    • Be careful not to click one of the other drives on your computer. Check the drive name and the amount of space to make sure you are selecting the right drive.
    • Ensure you have backed up any data on the drive you want to keep.
  5. This displays a dialogue box you can use to format your USB drive.
  6. Enter the new name for the drive next to "Partition Label." This is the name that will be given to the drive after it is formatted.
  7. Use the drop-down menu next to "File system" to select how you want to format the drive. You should select one of the following options:
    • NTFS is a file system that is only compatible with Windows. NTFS drives are not compatible with other devices.
    • FAT32 is a universal file system that works with most devices. Select this if your drive is less than 32 GB.
    • exFAT is a newer version of "FAT32" that works with a wide variety of devices, but may not work on some older devices. Select this option if your USB drive is greater than 32 GB.
  8. It's the blue button in the dialogue box. This saves your changes.
  9. It's the icon with the checkmark in the upper-left corner. This displays a preview dialogue box that lists the changes that will be made to your USB drive.
  10. It's the blue button in the lower-left corner of the dialogue box. Then click Yes in the confirmation box. This formats your USB drive with the settings you selected.
    • In some cases, AOMEI will format the drive without removing write-protection. If still get an error message that the USB drive is write-protected when you try to use it, you will need to use one of the other methods to remove write-protection. If the write-protection was applied using specific software, you may need to use that program to remove the write-protection.
  11. Advertisement
Method 5
Method 5 of 6:

Formatting a USB Drive (Windows)

PDF download Download Article
  1. Insert the USB drive with write-protection into a free USB slot on your computer.
    • If the USB drive has a write-protection switch on it, make sure it is disabled.
  2. It's the icon with the Windows Start menu in the lower-left corner. Right-clicking it displays an alternate system menu that is different from the usual Start menu.
  3. This opens the Disk Management wizard. It should display a list of all your connected drives.
  4. It should be listed below "Volume:" in the list at the top. Check the drive letter and the amount of storage size the drive has to make sure you select the right drive.
  5. It's in the menu that appears when you right-click a drive. Then click Yes in the pop-up window to acknowledge that this will erase all data on the drive.
    • Ensure you have backed up any data on the drive you want to keep.
  6. This is the name that the drive will be given after it is formatted. Enter it in the space next to "Volume Label:"
  7. Use the drop-down menu next to "File System" to select the file system you want the drive to use. You can select "exFAT", "FAT32", or "NTFS".
    • NTFS is a file system that is only compatible with Windows. NTFS drives are not compatible with other devices.
    • FAT32 is a universal file system that works with most devices. Select this if your drive is less than 32 GB.
    • exFAT is a newer version of "FAT32" that works with a wide variety of devices, but may not work on some older devices. Select this option if your USB drive is greater than 32 GB.
  8. Clicking "OK" in the dialogue box displays a warning that this will erase all data on the drive. Clicking "OK" again will proceed to format the drive.
  9. Advertisement


Method 6
Method 6 of 6:

Using Disk Utility (Mac OS X)

PDF download Download Article
  1. If your USB drive has a physical write-protection switch on its exterior, it might be in the wrong (locked) position. Try toggling the switch before you continue with this method.
  2. It's the first icon on the Dock, which is usually at the bottom of the screen.
  3. It should be in the left panel. Some icons will appear in the right panel.
  4. It's in the right panel.
  5. It's the hard drive icon with a stethoscope in the right panel. This opens a tool you can use to format drives.
  6. Some info about the drive will appear in the right panel.
  7. It's near the top of the panel. [5]
  8. You can keep the default name if you wish.
  9. If you want your pen drive to be compatible with both PCs and Mac, select MS-DOS (FAT) (pen drives under 32GB) or ExFAT (drives over 32GB). Otherwise, choose your desired Mac filesystem type.
  10. It's at the bottom-right corner of the active window. Your Mac will reformat the write-protected pen drive and change the sharing and permissions status to “read and write". [6]
    • If this process does not make your drive usable, the issue is likely mechanical and you should replace the pen drive.
  11. Advertisement

Expert Q&A

Ask a Question
      Advertisement

      Video

      Tips

      • If you’re trying to access or use a write-protected pen drive using a Mac, consider trying the pen drive in a Windows computer prior to formatting the drive. In some cases, your pen drive could show up as “read-only” on a Mac due to issues with file-type compatibility between Apple and Windows.
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Name
      Please provide your name and last initial
      Thanks for submitting a tip for review!
      Advertisement

      Warnings

      • If your pen drive is corrupt or physically damaged, the steps in this article may not be effective at formatting a write-protected pen drive. If you are still unable to format your pen drive after following these steps, consider purchasing a new pen drive.
      Advertisement

      About This Article

      Article Summary X

      1. Toggle the write-protection switch on the USB drive to off and insert it into a Windows computer.
      2. Right-click on the Windows Start button.
      3. Click Run .
      4. Type "diskpart" in Run and press Enter .
      5. Type "list disk" and press Enter to see a list of drives.
      6. Type "select disk #" and press Enter .
      7. Type "attributes disk clear readonly" and press Enter .
      8. Type "clean" and press Enter .
      9. Type "create partition primary" and press Enter .
      10. Type "format fs=fat32" (if less than 32 GB) or "format fs=ntfs" (if greater than 32 GB) and press Enter .
      11. Type "exit" and press Enter .

      Did this summary help you?
      Thanks to all authors for creating a page that has been read 526,880 times.

      Is this article up to date?

      Advertisement