[BlueOnyx:09071] Re: Read-only /tmp
Gerald Waugh
gwaugh at frontstreetnetworks.net
Thu Nov 17 15:32:23 -05 2011
Robert Fitzpatrick wrote:
> Found on a BO 5106 server that the /tmp filesystem is read-only, not
> sure why. I tried to remount and it say write-protected. I compared /tmp
> permissions to another working machine, both the same. I tried to fsck
> and it warns of severe damage if mounted, I try to unmount and it is busy...
>
>> [root at vnyxbo ticket]# touch /tmp/test
>> touch: cannot touch `/tmp/test': Read-only file system
>> [root at vnyxbo ticket]# mount /tmp -o remount,rw
>> mount: block device /dev/VolGroup00/tmp is write-protected, mounting
>> read-only
>> [root at vnyxbo ticket]# fsck /tmp
>> fsck 1.39 (29-May-2006)
>> e2fsck 1.39 (29-May-2006)
>> /dev/VolGroup00/tmp is mounted.
>>
>> WARNING!!! Running e2fsck on a mounted filesystem may cause
>> SEVERE filesystem damage.
>>
>> Do you really want to continue (y/n)? no
>>
>> check aborted.
>> [root at vnyxbo ticket]# ls -lah /tmp
>> total 4.9M
>> drwxrwxrwt 4 root root 36K Nov 17 00:03 .
>> drwxr-xr-x 24 root root 4.0K Oct 2 08:33 ..
>> -rw-r--r-- 1 root root 2.1M Nov 17 00:02 dfix-badip-1206.log
>> -rw-r--r-- 1 root root 0 Nov 17 00:02 dfix-badip-1206.txt
>> -rw-r--r-- 1 root root 14 Nov 17 00:02 dfix-errorip-1206.txt
>> -rw-r--r-- 1 root root 2.7M Nov 17 00:02 dfix-goodip-1206.log
>> -rw-r--r-- 1 root root 4.1K Nov 17 00:02 dfix-goodip-1206.txt
>> ?--------- ? ? ? ? ? dfix-mustblock-1206.txt
>> drwxrwxrwt 2 root root 4.0K Oct 2 08:34 .font-unix
>> lrwxrwxrwx 1 root root 22 Mar 14 2009 mysql.sock ->
>> /home/mysql/mysql.sock
>> -rw-r--r-- 1 root root 0 Nov 17 00:00 .swatch.lock
>> drwxr-xr-x 2 root root 4.0K Oct 15 04:25 .webmin
>> -r--r--r-- 1 root root 279 Nov 12 21:01 yum.update
>> [root at vnyxbo ticket]# df -h /tmp
>> Filesystem Size Used Avail Use% Mounted on
>> /dev/mapper/VolGroup00-tmp
>> 2.0G 72M 1.8G 4% /tmp
>
> Is the only option to reboot?
>
what does /etc/fstab read?
cat /etc/fstab | grep tmp
/dev/mapper/VolGroup00-tmp /tmp ext3 noexec,nosuid,rw 1 2
Gerald
More information about the Blueonyx
mailing list