On Ubuntu Server 22.04, I have an SSD mounted on /scratch
. I replaced /tmp
with a symbolic link to /scratch/tmp
so that temporary files are stored on the SSD:
$ ls -l /tmp
lrwxrwxrwx 1 root root 12 Jan 13 16:22 /tmp -> /scratch/tmp
This seems to work fine with one snag: the contents of /tmp
are no longer deleted on a reboot, as I expect them to be. How can I make this happen?