Read-only file system error.

DannyTip

Verified User
Joined
Apr 5, 2006
Messages
9
Location
Leeds, UK
My server crashed several hours ago and after a reboot is reporting...

'(30)Read-only file system: httpd: could not open error log file /var/log/httpd/error_log.'

FTP, POP etc is also down. Any ideas? :(
 
What OS?

Generally if linux finds a drive parition is broken, it will only mount it read-only.

If linux, you'll need to log in locally (from the console, monitor and keyboard) to linux single (see documentation for either lilo or grub, depending on what your server uses) and run fsck to see if it can fix the hard disk.

Jeff
 
jlasman said:
What OS?

Generally if linux finds a drive parition is broken, it will only mount it read-only.

If linux, you'll need to log in locally (from the console, monitor and keyboard) to linux single (see documentation for either lilo or grub, depending on what your server uses) and run fsck to see if it can fix the hard disk.

Jeff
So is fsck not available remotely?

I take it that fsck is like the DOS Fdisk command?
 
No, linux has an fdisk command as well. fsck is a file system integrity checker; it stands for "file system checker.

However considering that it can take hours to run and still not fix your file system, some of us just pronounce it as if the s was a different letter.

As in Oh, fsck it! ;)

It can be run remotely but it's very dangerous to run it on a mounted disk on a system that's not running single-user. And remotely you cannot run single-user. So if you're running it remotely it's only safe to run it on partitions that can be unmounted while the system is running.

Jeff
 
Back
Top