Can't empty the /tmp directory Read-only file system warning
Does anyone know why files in my /tmp directory are not able to rm even using root login? not only that, I can't even chmod or do anything to files in /tmp directory... it always saying "read only file system" warning
|
It appears that for some reason it was mounted read only. Can you please post the output of:
Code:
mount |
Quote:
cd /tmp touch testfile If the file is not created, the partition is read-only. Please reboot the system/ run an fsck. That will fix it. |
Here is my mount output:
[huang@localhost ~]$ mount /dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) /dev/sda1 on /boot type ext3 (rw) tmpfs on /dev/shm type tmpfs (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) did I mount it as read only?? Quote:
|
yeah, I can't create anything on /tmp. I don't remember I did anything that make my /tmp to read only partition... how do you make /tmp partition read only normally?
Quote:
|
According to mount you don't have a separate /tmp partion, so it is probably just a directory in /. mount also reports that / is mounted read-write (not read-only). Can you write to files in /?
For example, as root: Code:
touch /foo Evo2. |
<Duplicate post deleted>
|
Quote:
More information needed! Please post the output of Code:
df -hT /tmp |
Evo, yes, I can write to /
I solve the problem by restarting my server and do fsck. But I still scratching my head and wondering what was happening. I only have two partitions, one is for /boot on sda1 and all others are mount on sda2. Since they are all write-able then what was wrong? Quote:
|
All times are GMT -5. The time now is 10:08 AM. |