How to increase /tmp partition size

On a Linux server /tmp partition was only 1 GB, it get full at times.

Server had following in its /etc/fstab file

Currenly file /var/.tempdisk is mounted as /tmp.

So i created a new file with 4 GB size

Format it as ext4 file system

Before i swith /tmp to newly created disk, i need to copy content of current /tmp to it. For this i mount the new disk as /tmp2

Now you have all files of /tmp in /tmp2, edit /etc/fstab

Find entry for current /tmp partition

Replace it with new file you created

Reboot the server. You will have 4 GB /tmp partition now.

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *