Questions? Feedback? powered by Olark live chat software
Knowledgebase
Author Avatar

Resizing/Expanding tmp Partition

Written by: on 27 May 2016 03:12 PM 27 May 2016 03:12 PM

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

(1 vote(s))
Helpful
Not helpful