file systems becomes read-only
Hi guys,
just got back from a long break, and realise i wasn't to make changes (copy, write, change permission etc) on a particular server. It always says it is a "Read-only file system" only... Did some search, some people were saying if a system change to a read-only file system, it could be signs that the harddisk is failing? Is it so? For this server, it affects /home, I tried writing to /tmp it was ok. I reboot the machine and now all is fine... read somewhere abt checking /etc/fstab, but I am not sure what to look out for. So thought I could do with some advice here... many thanks :) |
I doubt if you would find the answer looking in /etc/fstab. I don't see why that would have been changed. There is a "ro" mount option. You can check exactly what options are currently being used on the partition by looking at the output of the "mount" command or reading the /etc/mtab file.
You may want to start by reading the boot logs. When the system first boots up, the root drive is in memory. I thing that the drives are at first mounted ro until they check out OK. Here is a fragment from my Laptops /var/log/boot.msg Code:
Checking file systems... There are many things that go on in parallel when the system is starting. So don't count on the order of things in this example. Also check /var/log/warn. For example, look at this line from mine: Code:
Jan 20 18:37:13 hpamd64 kernel: NTFS-fs warning (device hda1): load_system_files(): Volume is dirty. Will not be able to remount read-write. Run chkdsk and mount in Windows. One very remote cause, is that someone somehow remounted the /home partition with the read-only option. If you verify on this machine that the /home partition is mounted read-only, then log in as root, ( the root users home directory is on the root partition ), switch to single user mode, and try to umount and then mount the partition. Watch what the response is in the console. If there is a problem, you will be told. It also wouldn't hurt to scan the drive for errors. If there are some, and they are repaired, make a point to check the drive again in the near future. It is possible that the drive is going out. |
hi there, some questions:
1) /var/log/warn - what kind of log is it? 2) What do you mean by Single user mode? 3) So I can actually mount/umount a partition anytime? The partition became read only suddenly. anyway, today.. the server in question crashed. Could not finish booting up. It has filesystem error.. alot of EXT3 errors while booting (especially when I did file integrity check). While checking journal (what's that?) it will start showing these error... took the harddisk out and replaced it with another one. Though I feel its just an OS problem... but I'm not comfortable with the harddisk anymore. Guys can give me some pointers on the errors? Guess I'm still a noob after the past year on it... only learn when things happen... |
Quote:
Quote:
Quote:
Quote:
Quote:
|
the server have been in action for 8 months or so, brand new. From Dell though.
I have a couple of other machine running the same specs at the same time... so perhaps its just one of those days...? one thing abt umount a partition, reason being i tried to do fsck but it says if i do it on a mounted partition i risk "severe" damage to it.. so thought i better check the procedure of umount an active partition... |
Sheesh. Im also having the same problem. But my fs is fat though.
http://www.linuxquestions.org/questi...d.php?t=413499 |
Quote:
|
With computers, if there is a defect, it will usually show up in the first year. Sounds like there was a problem with the drive from the start, it just reached the critical stage. I assume it's still under warrantee.
And yes, as root, running "mount -a" will try to mount everything in your /etc/fstab file, provided that the 'noauto' option isn't used. The noauto keyword would be used for a cdrom device for example, because a cdrom disc may not be present in the drive. You can also change some option with a mount command that uses the 'remount' option. |
All times are GMT -5. The time now is 05:00 AM. |