My SD card is corrupted

I have a 32 GB SanDisk ultra micro sd card yesterday when i tried to save some photos on the sd card the camera shut off showing an error but it was working well when i changed the storage to i ternal memory i later tried checking the sd card i could copy all the files from the sd card but it wouldn’t format i have tried sd formater and format through cmd but nothing seems to work please help me what can i do

it sounds like the card is write protected. This can occur when the card has detected a fault and locked the card to prevent data loss. backup the data and contact sandisk support to check on the warranty status. 

My sd card is also corrupted but i cant format it how can i erase everything in it i just want my memory back i dont care about the data please help

if the card is in write protect mode it cannot be formatted. it would need to be replaced. 

Now, copy all files off your SD card immediately, before attempting any of the fixes. Sometimes a software flag locks the card. You can force-clear this attribute using Diskpart.

  • Connect the SD card to your computer.

  • Press Windows Key + R, type cmd, and press Enter.

  • Type diskpart and press Enter.

  • Type list disk to find your SD card number (look for the ~29 GB size).

  • Type select disk X (Replace X with your SD card number).

  • Type attributes disk clear readonly and press Enter.

  • Type exit

Then try formatting your SD card again. Read also: Remove Write Protection From SD Card [7 Ways I Verified]

It sounds like the SD card is starting to fail.

The fact that your camera showed an error while saving photos, but worked normally once you switched to internal storage, is a strong sign that the card is the problem. Since you can still copy files from it but can’t format it, the card may have gone into a read-only state to protect the data, which often happens when the memory starts wearing out.

The first thing I’d recommend is making sure you’ve copied everything important off the card. If you haven’t already, try formatting the card using a different card reader or on another computer.

Man, I hate to be the bearer of bad news, but your micro SD card has entered write-protection mode. SanDisk cards do this automatically when the memory flash chips wear out or fail—it locks the card into read-only mode so you can copy your files off (which is why copying worked!), but blocks any new writes or formatting completely.

Since it won’t take a format, the card hardware itself is done. First, grab EaseUS Data Recovery Wizard to pull off any hidden or corrupted photos just in case you missed anything during your manual copy. Once your data is safely backed up on your PC, hit up SanDisk for a warranty replacement—they’re super cool about swapping out failed cards.