Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I try to save something or rename a file/folder it say this error " Read-only file system" or run something as root in the terminal it say this error

sudo: unable to open /var/lib/sudo/"My User Name"/0: Read-only file system 
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: Unable to write to /var/cache/apt/  
E: The package lists or status file could not be parsed or opened.

When I make a Folder the error dialog in the details with Nautilus is this:

Error creating directory: Read-only file system

I would show you I picture of it but it isn't even letting my save onto my flash drive. Please help me.

share|improve this question
    
It works for me and solve my problem, thanks a lot. –  Alaa Mar 12 at 9:41
add comment

1 Answer

when the system enters a read-only state it does so to prevent damage to the system, make sure your HDD is working properly/backup your data before doing anything
I suggest booting a live usb/dvd and opening gparted and use the check/repair featureThis is the command to enable writing sudo mount -o rw,remount /

share|improve this answer
    
I can't because I need sudo access and I can't get it. "sudo: unable to open /var/lib/sudo/mathcubes/1: Read-only file system mount: cannot remount block device /dev/sda6 read-write, is write-protected " –  Andrew Apr 28 '13 at 2:44
    
as i said boot up a live disk and use gparted to check/repair the partition, if you don't have a disk you can use partedmagic it is under 500MB in size –  GM-Script-Writer-62850 Apr 28 '13 at 3:20
    
How? Do I repair the partition in gparted? –  Andrew Apr 28 '13 at 19:00
    
    
But What do I do in gpared, reformat it NO! –  Andrew Apr 28 '13 at 20:14
show 5 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.