0

My /tmp directory is now at capacity and I want to increase the available memory:

df -h /tmp
Filesystem      Size  Used Avail Use% Mounted on
/dev/nvme0n1p3   59G   54G  2.1G  97% /

To try and do this, I plan to move my /tmp folder to /mnt/raid1/tmp (a mounted directory with a lot more available memory) and following this answer I tried adding the following to etc/fstab:

#update /tmp directory to get increased memory for running processes
/tmp    /mnt/raid1/tmp    defaults,noatime,mode=1777   0  0

However this caused an issue after rebooting that was only resloved when I removed these lines. Anybody know how to move /tmp to /mnt/raid1/tmp correctly?

A_Murphy
  • 103

1 Answers1

0

Mount-bind /tmp to the alternative directory as in:

/mnt/raid1/tmp /tmp none bind
vanadium
  • 97,564