Cannot Write to tmp Directory Print

  • 0

Cannot write to tmp directory file corruption even if there is space available? Follow step by step to solve such issues.

Sometimes particularly if the /tmp directory gets full on your server, the underlying tmpDSK file can get corrupted. If this occurs you will not be able to write to the /tmp directory even if there is space available.

To fix this do the following:

Login to your server via SSH then type the following commands:

lsof /tmp   
umount -l /tmp 
umount -l /var/tmp   
# This command removes the corrupt partition file 
rm -fv /usr/tmpDSK   
# Create a nice new one 
/scripts/securetmp
If you wish to increase your tmp directory size, you can change the value inside the /scripts/securetmp file before running it - search for $tmpdsksize

Was this answer helpful?

« Back