[BlueOnyx:09076] Re: Read-only /tmp

Michael Stauber mstauber at blueonyx.it
Thu Nov 17 21:04:33 -05 2011


Hi Robert,

> Not much different...

I'd check the output of "dmesg" and "/var/log/messages" for file system 
related errors.

Most likely the OS detected a problem with the /tmp partition filesystem and 
then remounted it as read-only.

Unfortunately the resolve here may need a reboot. Chances are that a reboot 
will fix the problem anyway, as the filesystem is now flagged for an automatic 
check during the next reboot, so fsck will run on /tmp anyway.

However, if that fails it may also drop you into a prompt and force you to 
enter the root password and do a manual check of the file system in single 
user mode. If that happens to a remotely hosted box, then you of course need 
onsite help or have to drive there to fix it yourself.

The only work around that will work without reboot would be this:

Unmount /tmp. Edit /etc/fstab and comment out the /tmp line. The /tmp 
directory then still exists on the root partition and will then be used by the 
OS. But that way the directory is no longer protected with the "noexec" and 
"nosuid" bits.

-- 
With best regards

Michael Stauber



More information about the Blueonyx mailing list