-1

I have a swap of 64 GB SSD. So is there a way to make /tmp mounted as tmpfs to use swap alone and not use RAM?

nitins
  • 2,579
  • 15
  • 44
  • 68

1 Answers1

10

I'm not quite clear what you're asking. tmpfs is an in-memory filesystem but you apparently don't want the contents of /tmp to actually reside in memory, is that right?

Then you simply don't use tmpfs and instead use an ordinary on-disk /tmp directory or dedicated partition with a normal file-system.

HBruijn
  • 77,029
  • 24
  • 135
  • 201