I have an SD card, that is broken, the slider for the "Lock" is gone. When I put it into my computer it turned out to be in read-only, How can I override this with software? I need to format the SD card. I am using Ubuntu and Windows 7
26 Answers
From sd card reader not working :
I found that unlocked, my Eye-Fi card should only be inserted 20-22mm into the card reader (not all the way). Locked, it seemed to work fine inserted all the way.
Another solution from Repair missing SD-card lock :
Get a piece of aluminum foil and stick it onto a piece of tape then put it on SD :
Cut a straw into pieces that can fit into the hole of the Lock and fill the hole with them and cover with the other end of a scotch-tape. Use 2-3 pieces of straw :
Insert into the card-reader :
The write protection tells the computer to reject all write requests, which normally prevents writing to the SD card. Unlike the floppy disk, this is done at the software level. Although the card reader can detect the position of the read-only switch, the switch itself doesn't physically hinder writing. This means that although it's theoretically possible to write onto a read-only card, it would have to be at a low level. Barring direct manipulation of the output bits, the only permanent solution would be to format your card at a low level, thus removing the card-side write protection.
This is not the same as a normal formatting. It wipes the card completely, including the protected areas, where the write-protection securities would be held. Theoretically, this would erase the card's write protection, but it may also come with unforeseen complications if done incorrectly. I would suggest that you only use a low-level format if you know exactly what you're doing. There is a free low-level format tool compatible with SD cards available at this link:
It should be noted that this needs to be done in conjunction with one of the hardware solutions posted here. Again, SD card readers are designed so that they can detect the position of the switch. If the hardware solution doesn't work (as is the case here), then the card must also have a built-in write protection.
0I'm fairly certain that the lock is a physical mechanism, and therefore all you need to do is put a piece of scotch tape over the SD card. Be very precise in placing the tape over the notch, but not over the brass connector on the opposite side.
The notch forces the read-only to work with camera's, PDA's, MP3 players, etc, however they are not guaranteed to work on all SD readers (apparently it works on your reader). It's simply a physical thing, therefore the tape will trick the SD card reader into thinking the SD card is unlocked.
4If I'm not mistaken - its the same kind of thing as the old floppy disk. The lock blocks a lightbeam if it is in the correct position. There's no electrical component to it - just that if the switch is in a certain spot, the lightbeam gets broken and you can read and write. Otherwise it is write only. I'd try and tape over the switch area with something like scotch tape and darkening it with a sharpie. Really, though, they're so cheap it would be better to just replace the card. I'd worry about the tape pealing off inside the SD card slot and then you might end up really screwed.
4there is no light beam in an sd card reader. the lock is a little switch which CLOSES when the plastic sliding lock is forwards (towards the contacts).
tape over the slot only with scotch tape and the switch may be weak enough to activate, thus closing the circuit and allowing the card to write.
i am finding a way of taping a little piece of wood to fill the slot ( a thin sliver of wood such as that off a matchstick ) as the switch in my camera requires a lot of pressure to activate it. its not working in my camera because the tape gives a little under pressure and doesnt push the switch closed. it needs something in the slot to be taped there.
method 2: i am now using some semi-hardened gorilla glue and building it up thus removing the indentation on the side of the card completely.
leave the glue for a while to become mostly hard, perhaps an hour or more, and then using a sharp hobby knife ensure its a flat surface by scraping the excess off with the knife.
i allowed the gorilla glue to become opaque and thick before trying to apply it to the card, that way it becomes thick enough to stay put and not run out of the groove. in 18C temperature that took about 10 minutes to go opaque and get thick enough to paste it into the groove.
note: test the glue is stuck firmly to the card when its cured. if the glue drops off into your electronic equipment, it may cause havoc !!! if you are unsure of this method or unsure of the bond between the glue and the card, DON'T DO IT this way as i won't be responsible for the loss of your equipment - do it at your own risk. (but gorilla glue is good stuff. if the card is not greasy it should stick well).
TRICK DOESN'T WORK ON APPLE MACBOOK or iMAC and technically, it shouldn't work on any SD slot, there's no such thing as a "light beam", it's a very simple metal pins mechanism. I had the same issue, tried the tape, tinfoil and mid-position tricks to no avail so I looked it up:
(source: engineersgarage.com)
I used a led light to see inside the slot and it was all in fact, pins. a pin is pushed when the card slider is in "lock" position preventing the OS from writing. I used tweezers to scrub inside the lock recess in the iMac slot, plugged the SD afterwards and it worked. might have been jammed with dirt and dust.