Author Topic: SD card suddenly became read only  (Read 2717 times)

suruaZ

  • Full Member
  • ***
  • Posts: 123
    • View Profile
SD card suddenly became read only
« on: July 21, 2004, 02:32:24 pm »
I nothing changed in the System or with SD card. It was inserted and I had read-write access. But now it became read only? I tried to re-mount it, but again and again it mounts as ro  

Any ideas what's going wrong?

Thanks,
suruaZ
SL-5500, Sharp ROM 3.13, Pretec GSM/GPRS CF, IBM Microdrive 340 MB

tz

  • Full Member
  • ***
  • Posts: 102
    • View Profile
    • http://
SD card suddenly became read only
« Reply #1 on: July 21, 2004, 04:43:20 pm »
You probably have a filesystem error - you need to run chkdsk on a PC, or fsck.vfat if it exists on the Z or your linux box, or copy the files off, reformat the card, and copy them back on.

Generally when a UNIX filesystem driver finds an error, it sets it to read-only.

The only other thing would be if you moved the switch on the side of the SD.

mike151

  • Newbie
  • *
  • Posts: 34
    • View Profile
SD card suddenly became read only
« Reply #2 on: July 21, 2004, 07:03:16 pm »
Hi,

I faced the same kind of problems last week.  After trying several things, I finally did this:

1) rebooted and logged in as root in command line mode
2) unmounted the SD
3) formated it using mkfs.vfat
4) mounted it back
5) rebooted

So far it is still working well. I think the file system in the SD was corrupted.

Hope it helps

Mike

suruaZ

  • Full Member
  • ***
  • Posts: 123
    • View Profile
SD card suddenly became read only
« Reply #3 on: July 22, 2004, 12:03:54 am »
Thanks tz and mike151,

Yes it looks like corrupted filesystem. I got a batch of rubbish in one folder on SD.

suruaZ
SL-5500, Sharp ROM 3.13, Pretec GSM/GPRS CF, IBM Microdrive 340 MB

rgrep

  • Full Member
  • ***
  • Posts: 149
    • View Profile
SD card suddenly became read only
« Reply #4 on: July 22, 2004, 01:55:29 am »
Filesystem corruption can be caused by bad blocks on your SD card.  I had a problem with a 256MB SanDisk SD which caused it to always corrupt when I stored a lot on it.  You can do a read-only bad block scan by going to a terminal window, and typing the following as root:

umount /mnt/card
badblocks -sv /dev/mmcda1

When I did this to my SanDisk card I found that only about the first 108 MB were free of bad blocks!  I repartitioned it to only use the first 108 MB and I didn't have any trouble with it after that.
[img]https://www.oesf.org/forums/style_emoticons/default/smile.gif\" border=\"0\" class=\"linked-sig-image\" /] Has: Dynamism C760 / Linksys WCF12 WiFi / Kingston 512MB SD
[img]https://www.oesf.org/forums/style_emoticons/default/biggrin.gif\" border=\"0\" class=\"linked-sig-image\" /] Loves: pdaXrom / Warwalking
[img]https://www.oesf.org/forums/style_emoticons/default/sad.gif\" border=\"0\" class=\"linked-sig-image\" /] Hates: NetGear MA701 WiFi / SanDisk 256MB SD / C760 Charging Faults

raychow

  • Newbie
  • *
  • Posts: 9
    • View Profile
SD card suddenly became read only
« Reply #5 on: August 02, 2004, 10:40:02 am »
I had that problem after copying MP3s to my 256MB SD.  I found that there was less then 2MB left then it became readonly.    Everything back to normal after cleaned up my SD.

Kudo