PDA

View Full Version : [SOLVED] changing file system ro to rw



bencouve
June 27th, 2012, 10:15 PM
Sorry if this has been answered somewhere before, did have look for it.
I have a files system that is read only and I want to set it to rw. How do I do that?

Here is what I see with the mount command - or is there something I am missing here ...

/dev/sda3 on /u01 type ext3 (rw,errors=remount-ro)


Thanks in advance for your help.

mcduck
June 27th, 2012, 10:34 PM
Based on the mount options you already have, the drive should already be mounted as rw. If it isn't, that would be because there is some filesystem (or other) problem with the drive, and it's mounted as read-only to prevent any further damage to the filesystem.

...and in that case the way to solve the problem is to first make sure you have a recent backup of all the important files on the drive (which everybody should always have anyway ;)), and then try running fsck on the drive to fix any filesystem issues.

If fsck isn't able to solve the problems, check the drive's SMART status to see if the drive itself is fine.

edit: and of course since it's an Ext3 drive and thus supports ownerships and permissions, make sure it's not just a case of you not having the ownership or write permission instead of the filesystem actually being read-only. :)

bencouve
June 27th, 2012, 10:46 PM
mcduck, thanks for your response. This particular partition has oracle installed on it. If I try to write and save a file as root it is ok, but I cannot with the oracle user.

I did the oracle install as root. Should be able to write as oracle user too.

steeldriver
June 27th, 2012, 11:32 PM
if root can write then it sounds like a permission / groups / users issue - not a ro filesystem

bencouve
June 27th, 2012, 11:38 PM
Ye, fair point. Looks like a re-install ...