Resizing/Expanding tmp Partition


Excellent guidelines on how to resize or expand a tmp partition. Learn step by step to do it yourself.


The default tmp folder size for lunix operating systems is often 512mb (including cPanel installations).

To check the size of the tmp partition use
df -h 

For some VPS's this is inadequate and a full tmp directory can cause all sorts of problems.

Resizing the tmp partition is easy.

Log in via console or SSH and do the following -

Edit the file
/scripts/securetmp

Find the line 
my $tmpdsksize     = 512000;

To change this to 2GB, modify this to:
my $tmpdsksize     = 2097152;

Save the file, then run the following commands:

umount -l /tmp
umount -l /var/tmp
rm -fv /usr/tmpDSK
/scripts/securetmp

Type "y" to the yes/no questions asked.

To check the new size of the tmp partition use
df -h


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