How to Format Write-Protected SD Card Using CMD?


How to Format Write-Protected SD Card Using CMD?

Geeks

Introduction:
Write-protected SD cards can be a frustrating problem when you want to transfer or delete files from the card. The write protection feature is designed to prevent accidental or unauthorized changes to the card, but it can also prevent you from making necessary changes. If you're having trouble formatting a write-protected SD card, you may be able to use the Command Prompt (CMD) to remove the write protection and format the card.
Step 1: Check for Physical Write Protection
Before you try to use CMD to format the SD card, make sure that the write protection is not being caused by a physical switch on the card itself. Many SD cards have a switch on the side that can be moved to the "locked" or "unlocked" position. If the switch is in the locked position, the card will be write-protected. Simply move the switch to the unlocked position and try formatting the card again.
Step 2: Remove Write Protection Using CMD
If the write protection is not caused by a physical switch, you can try using CMD to remove the write protection. Here's how:
Insert the SD card into your computer.Open the Start menu and type "cmd" into the search bar.Right-click on "Command Prompt" and select "Run as administrator".Type the following command into the CMD window and press Enter:diskpartType the following command and press Enter:list diskIdentify the number of the disk corresponding to your SD card. It should be listed as a removable disk. For example, if the SD card is listed as Disk 1, make a note of the number.Type the following command and press Enter, replacing "X" with the number of your SD card:select disk XType the following command and press Enter:attributes disk clear readonlyThis should remove the write protection from the SD card.
Step 3: Format the SD Card
Once the write protection has been removed, you can format the SD card using CMD. Here's how:
In the CMD window, type the following command and press Enter:format fs=fat32 quickThis will format the SD card using the FAT32 file system. You can also use the NTFS file system by replacing "fat32" with "ntfs" in the command above.
Wait for the formatting process to complete. This may take a few minutes, depending on the size of the SD card.Conclusion:
Using CMD to remove the write protection and format an SD card can be a useful troubleshooting step if you're having trouble formatting the card in the usual way. Just be sure to follow the steps carefully and make a note of the number of your SD card to avoid formatting the wrong disk.



How to Format Write-Protected SD Card Using CMD?

Previous Post Next Post