-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,527
  • 15
  • 42
  • 65

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
  • 72,524
  • 21
  • 127
  • 192