Fauveboy
Posts: 82
Joined: Sun Jan 26, 2014 8:09 pm

Format SD card

Sun Nov 19, 2017 11:23 pm

Im trying to format my raspberry pi sd card but it it wont let because it says its write protected? How can I get rid of this? thanks

User avatar
bucker
Posts: 107
Joined: Thu May 23, 2013 4:33 pm
Location: Uberlandia, Brazil

Re: Format SD card

Sun Nov 19, 2017 11:26 pm

Look for a small switch in your SD card labeled "Lock" and you're good to go.
Winning is for losers.

Pi Zero W (inside a Pikachu case ;) ) with DietPi running Sonarr,Couchpotato,Pi-hole,Pi-VPN
Pi B running Home Assistant
Pi 2B & HiFiBerry DAC+ running Volumio OS
Pi 3B (inside a genesis case 8-) ) running RetroPie
--

pcmanbob
Posts: 7125
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: Format SD card

Mon Nov 20, 2017 12:03 am

Micro SD cards don't have a lock switch but the adaptors supplied with them some times do, if the switch is in the unlock position and your SD card is still read only then it has probably failed in some way and has go read only to protect the data contain on it.

If this is the case your only option is to replace it with a new one.
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 12347
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: Format SD card

Mon Nov 20, 2017 12:23 am

if the micro controller inside the SD-card senses that the flash memory inside the card is at the end of its life it switches itself to read only to protect the data that is in the flash cells.
The best thing to do is to back the card up, to a new SD-card and continue with new "fresh" flash cells.

User avatar
KatBates
Posts: 5
Joined: Wed Oct 18, 2017 1:09 pm

Re: Format SD card

Mon Nov 20, 2017 10:12 am

I've had this problem a couple of times with a Micro SD card and I thought it was broken and had to be replaced. I didn't know there was a switch on it??? Must be tiny

User avatar
RaTTuS
Posts: 10491
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: Format SD card

Mon Nov 20, 2017 10:17 am

KatBates wrote:
Mon Nov 20, 2017 10:12 am
I've had this problem a couple of times with a Micro SD card and I thought it was broken and had to be replaced. I didn't know there was a switch on it??? Must be tiny
viewtopic.php?f=63&t=198058#p1236791


however to the OP
you may be able to format it in a phone or car dvr,
but it's probably come the the end of life and you need a new one
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

User avatar
DidierAubin87
Posts: 6
Joined: Fri Nov 03, 2017 7:44 am
Location: France
Contact: Website

Re: Format SD card

Tue Nov 28, 2017 10:01 am


viewtopic.php?f=63&t=198058#p1236791


however to the OP
you may be able to format it in a phone or car dvr,
but it's probably come the the end of life and you need a new one
agree, you need a new one for this situation.

kaksi
Posts: 93
Joined: Tue Mar 10, 2015 6:19 am

Re: Format SD card

Tue Dec 12, 2017 5:52 pm

DidierAubin87 wrote:
Tue Nov 28, 2017 10:01 am

viewtopic.php?f=63&t=198058#p1236791


however to the OP
you may be able to format it in a phone or car dvr,
but it's probably come the the end of life and you need a new one
agree, you need a new one for this situation.

Not sure, I suspect the controller working this way:

Code: Select all

if there is data to write:
  mark the card as write-protected
  write the data
  release the write protection

In case of a power-off before the last step, the card remains write protected.

As it happens quite often to me, I try to avoid to bring it to my dealer and mostly I got it working in a camera, in a navigator... the last one in an Android phone. Unfortunately, no way to find a general rule.

Return to “General discussion”