The temporal directory (/tmp ) in Red Hat based systems is not a real partition (LVM partition) [1]. The file system is tmpfs instead of LVM in order to prevent DoS attack [2].  But you might want to increase the size file-system if the default value is not enough. For instance, if you have Desktop distribution and you are using common dev tools such as Eclipse, Netbeans, and so on,  the default size is probably not enough.

The solution is very straightforward. We edit the file /etc/fstab and we directly increase the size as follows:

# FILE: /etc/fstab 
none /tmp tmpfs size=8G 0 0 

Then we need to re-mount the filesystem again.

# As root
$ mount -a

We check if we /tmp directory was finally resized:

$ df -h
Filesystem                             Size  Used Avail Use% Mounted on
/dev/mapper/fedora_dhcp--90--222-root   50G   14G   34G  29% /
devtmpfs                               3.9G     0  3.9G   0% /dev
tmpfs                                  3.9G   51M  3.8G   2% /dev/shm
tmpfs                                  3.9G  892K  3.9G   1% /run
tmpfs                                  3.9G     0  3.9G   0% /sys/fs/cgroup
tmpfs                                  8.0G     0  8.0G   0% /tmp
/dev/sda2                              477M  131M  318M  30% /boot
/dev/mapper/fedora_dhcp--90--222-home  172G   53G  111G  33% /home
/dev/sda1                              200M  9.3M  191M   5% /boot/efi

References

[1] http://superuser.com/questions/619324/my-tmp-folder-isnt-a-partition-but-has-fixed-size-why
[2] http://en.wikipedia.org/wiki/Denial-of-service_attack
2

View comments

Loading