I symlinked /tmp to a second hard drive (the root partition is on an SSD and I want to avoid wear).
Ever since then, it doesn't get emptied on a reboot. Any idea why? I use Ubuntu 14.10.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
/tmp is typically mounted as a RAM-disk, so it resets whenever you reboot the machine. When you symlinked it to a location on a harddrive, the RAM-disk can no longer be mounted at
/tmp (because the symlink already exists at that path), so everything written to
/tmp is stored on your hard drive. You really should just remove the symlink and let the RAM-disk mount.
Using a bind mount works.
/path/to/tmp /tmp none bind 0 0