Check if the write protection switch is enabled. Some USB drives have a physical switch that can be used to enable or disable write protection. Check for a small switch on the side or top of the drive and make sure it is in the unlocked position.
Disable write protection in Windows Registry. The Windows Registry can be used to disable write protection for all USB drives. To do this, follow these steps:
Open the Registry Editor byOpen the Registry Editor by pressing Windows+R and typing "regedit".
Double-click the "WriteProtect" value and change its value data to 0.
Restart your computer.
Format the drive. If the write protection cannot be removed, you may need to format the drive. Formatting will erase all data on the drive, so make sure to back up any important files before you proceed. To format the drive, follow these steps:
Connect the drive to your computer.
Open File Explorer and locate the drive.
Right-click the drive and select "Format".
In the Format dialog box, select the "Quick Format" option and click "Start".
Use a third-party tool to remove write protection. There are a number of third-party tools that can be used to remove write protection from USB drives. One such tool is Diskpart. To use Diskpart, follow these steps:
Open a Command Prompt window as an administrator.
Type "diskpart" and press Enter.
Type "list disk" and press Enter. This will list all the disks connected to your computer.
Note the number of the disk that corresponds to the write-protected drive.
Type "select disk <number>" where <number> is the number of the write-protected drive.
Type "attributes disk clear readonly" and press Enter. This will remove write protection from the drive.
If you are trying to write or modify data on a disk and receive an error message that the disk is write-protected, there are a few things you can do to resolve the issue:
Check if the disk has a physical write-protection switch - Some disks, especially SD cards and USB drives, have a small slide switch on the side that enables or disables write protection. Make sure this switch is in the correct position.
Use Diskpart command-line utility - Open Command Prompt and enter "diskpart" to open the Diskpart command-line utility. Then, type "list disk" to see all connected disks. Select the disk that is write-protected by typing "select disk x" (replace x with the number of the disk). Finally, type "attributes disk clear readonly" to remove the write protection.
Modify registry settings - Press Windows key + R on your keyboard to open the Run dialog box. Type "regedit" and click OK to open the Registry Editor. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies and change the value of the WriteProtect key to 0.
Check for errors - If the disk is holisticz or corrupted, you may be able to fix it by running a disk error-checking tool like CHKDSK. Open Command Prompt and type "chkdsk /f X:" (replace X with the drive letter of the disk) and press Enter. This will check the disk for errors and attempt to repair them.
Use a different file system - If the disk is formatted with a file system that is not compatible with your current operating system, it may cause the disk to be write-protected. Try formatting the disk using a different file system, such as NTFS or FAT32.
Disable write protection in the BIOS - Some computers have a setting in the BIOS that enables write protection on all connected disks. Restart your computer and enter the BIOS settings. Look for a setting related to write protection and disable it.
If none of these methods work, the disk may be holisticz or corrupted, and you may need to use a different disk.