How to Use USB Attrib Clearing Tool to Fix Write-Protected Drives
Overview
A USB Attrib Clearing Tool removes the read-only/write-protection attribute from a USB flash drive so you can write, delete, or format files normally.
Preparation
- Back up any recoverable data from the USB drive.
- Plug the USB drive into your computer and note its drive letter.
- Close apps accessing the drive.
Steps (Windows command-line approach most tools automate these)
- Open Command Prompt as Administrator.
- Enter:
diskpart - List disks:
list disk - Select the USB disk (replace N with the disk number):
select disk N - List partitions (optional):
list partition - Select the partition (replace M if needed):
select partition M - Clear readonly attribute:
attributes disk clear readonlyor if using partition-level:
attributes volume clear readonly - Exit diskpart:
exit - Try formatting or copying files to the drive.
If the tool provides a GUI
- Launch the tool, choose the USB drive from the list, click “Clear Read-Only” or “Clear Attributes,” then follow prompts to apply changes and reformat if required.
Troubleshooting
- Still read-only after clearing:
- Check for a physical write-protect switch on the USB.
- Try a different USB port or PC.
- Run chkdsk:
chkdsk X: /f(replace X with drive letter). - Use diskpart’s
cleanthen create partition and format (data will be lost).
- Drive not recognized or errors: the flash memory may be failing; consider replacement.
Safety notes
- Clearing attributes or using diskpart can cause data loss—ensure backups before destructive commands.
- If a tool modifies firmware-level protection, use only trusted software from reputable sources.
Leave a Reply