Re-create corrupt /tmp directory on cPanel server

Wed, Jun 8, 2011

General

This is another one of those things that I can never remember off the top of my head, so I’m sticking it here for reference. I believe it was originally posted somewhere on the cPanel forums by the almighty chirpy.

lsof /tmp
 
# Umount /tmp and /var/tmp:
umount -l /tmp
umount -l /var/tmp
 
# Remove the corrupt partition file
rm -fv /usr/tmpDSK
 
# Create a nice new one
/scripts/securetmp

Leave a Reply

View in: Mobile | Standard