tmpfs?

BTW how to use the "size" mount option in /etc/fstab, for example for tmpfs mounted as /tmp?
 
/var/tmp is supposed to be kept around through system reboots, see hier(7). It might be better to disable logging entirely rather than put /var/log in a tmpfs.
 
ccc said:
BTW howto use "size" mount option in /etc/fstab, for example for tmpfs mounted as /tmp?

The same as other options, see fstab(5):

Code:
# Device  Mountpoint  FStype  Options                     Dump    Pass#
tmpfs     /tmp        tmpfs   rw,mode=01777,size=1048576  0       0
 
  • Thanks
Reactions: ccc
wblock@ said:
It might be better to disable logging entirely rather than put /var/log in a tmpfs.

But disabling logging at all will make it more difficult to "debug" the running system. My opinion is to reduce the size and the amount of logs, not to remove or make them volatile.
 
Back
Top