How Increase Tmpf Size in Linux?
Contents

How do I change the size of a TMPF in Linux?

To increase the size, do the following:

  1. Modify /etc/fstab line to look something like this: tmpfs /dev/shm tmpfs size=24g 0 0.
  2. mount -o remount tmpfs.
  3. df -h (to see the changes)
  4. Note: Be careful not too increase it too much b/c the system will deadlock since the OOM (Out-Of-Memory) handler can not free up that space.

How do I increase my tmp space?

Open up /etc/mtab in your favorite text editor with root privledges (ie “sudo vim /etc/mtab”). And increase the memory allocated to your /tmp folder. After restart Ubuntu will increase the space to /tmp, and fix this problem.

Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest