My temporary files never get written to the disk. They get written to a RAM disk. I did put
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0in /etc/fstab.
My question is:
Can I set a maximum value for RAM Usage of
/tmp? And in that case, what would happen if the maximum amount got exceeded, would it write into the hard-disk drive?
I have read this solution:
mkdir -p /tmp/ram sudo mount -t tmpfs -o size=512M tmpfs /tmp/ram/
But in my understanding, this won't be a permanent solution, and if I need it be permanent, it has to be added to the
/etc/fstab configuration file.
If this is the correct solution, how can I transform that mount command into a line in