Author Topic: SD /mnt/card has become read-only  (Read 1940 times)

jeffk

  • Newbie
  • *
  • Posts: 17
    • View Profile
SD /mnt/card has become read-only
« on: March 20, 2004, 12:08:30 pm »
At some point, possibly during either of the following:
a) firefox install to /mnt/card, which completed and runs.
 wget http...minimo.ipk hung because of prism2 card locking up. Pulled card, interruped wget.
my /mnt/card (128mb PNY SD) got mounted as read-only. It is now giving:
Code: [Select]
unable to open \'/mnt/card/minimo...ipk\': Read-only file system
errors when I try to mv or rm a file as root from the xterm console. fstab is the stock version:
Code: [Select]
/dev/root     /         jffs2    rw  1 1

/dev/mtdblock3     /home    jffs2   rw   0 0

/dev/hda1     /mnt/cf   auto  noauto,owner   0 0

/dev/mmcda1   /mnt/card     auto  noauto,owner   0 0

none          /dev/pts   devpts   gid=5,mode=620   0 0

proc     /proc     proc    defaults    0  0

Any ideas on how to correct this? Do I unmount, mount, and what would be the exact syntax for that.
Thanks.

LordDavon

  • Full Member
  • ***
  • Posts: 161
    • View Profile
    • http://
SD /mnt/card has become read-only
« Reply #1 on: March 20, 2004, 03:04:47 pm »
Unmounting and remounting may correct it, as well as a reboot of the system.  I would suggest rebooting the system fist (type reboot at the command line).

umount /mnt/card
mount /mnt/card

Should work the mounting/unmounting as long as the fstab is not at fault.

LD

doublec

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
    • http://radio.weblogs.com/0102385/categories/zaurus/index.html
SD /mnt/card has become read-only
« Reply #2 on: March 20, 2004, 06:15:57 pm »
If that doesn\'t work and your card is formatted with ext2  unmount and fsck the file system (basically checks for internal errors):

umount /mnt/card
e2fsck /dev/mmcda1
mount /mnt/card

Chris.