Cannot Write to tmp Directory


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?

Still need help?

Our friendly support team are ready to offer assistance with any issues you may be encountering.
Click the button below to open a ticket:
Open Ticket

 WordPress Hosting

Fast hosting for WordPress
Experience the best in Australian WordPress hosting with lightning fast servers, built-in caching, and performance tools.

 Build Your Website

Sitejet Hosting
Build your site fast with a drag and drop editor with no coding required. 140+ quality, templates to get you started.

 Register Domains

It all starts with your domain name
Find the perfect domain and register now with our competitive pricing on all extensions.

 Web Hosting

Fast, local, secure hosting
Full featured hosting on cPanel with multiple server locations around the country.
« Back