Jim's Site

A mix of Christianity, Ubuntu Linux, PHP and Chess

 
  • Increase font size
  • Default font size
  • Decrease font size
~ / Computer Tips / SD card suddenly mounted as read-only

SD card suddenly mounted as read-only

Print PDF

I have an SD card and sone day I discovered that it was read only. I checked the lock on the side of the card and it was off (if it is on, then the card will be read only, no matter what you do with our OS). This problem also applies to thumb drives, etc (though probably not the lock thing) - any FAT formatted drives.

Using Ubuntu 8.04, though it would probably apply to all versions of Linux

The problem could lie with removing the SD card before it is ready.This corrupts the drive and Linux does not want to corrupt it further, so it mounts it as read only.

Fix

Insert the SD card (or other drive). Then run

mount

The last line should be the last device connected. it should start with

/dev/<something>

That is the device name.

Now unmount the drive.

Then run

 sudo fsck /dev/sde1 -y

Explanation of command:
-- "sudo" - to run the command as super user
-- "fsck /dev/sde1" - check and fix the media (replace /dev/sde1 with the device name - /dev/<something> - you found out earlier)
-- "-y" make sure it fixes the drive.

Once it finishes, the device should now mount as read-write.

Last Updated ( Sunday, 07 December 2008 09:25 )  

Welcome

If the article was helpful/useful please leave a comment.

Vinaora Visitors Counter

mod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_counter
mod_vvisit_counterToday32
mod_vvisit_counterYesterday67
mod_vvisit_counterThis week325
mod_vvisit_counterThis month709

Stack Overflow

JoomlaWatch

JoomlaWatch Stats 1.2.6 by Matej Koval

BibleGateway.com Verse of the Day

A daily word of exultation.
  • Isaiah 46:4
    “Even to your old age and gray hairs I am he, I am he who will sustain you. I have made you and I will carry you; I will sustain you and I will rescue you.”