On Thu, Oct 15, 2015 at 06:19:12PM +0200, Paolo Aglialoro wrote: > 2. What is the correct filesystem type to put in fstab for all the entries > of point 1. in order to store them in ramdisk?
I'm using a line such as: swap /var/log mfs rw,nodev,nosuid,-s40M,-P/var/log.tmpl 0 0 to put /var/log into RAM. See man mount_mfs for mount options. The /var/log.tmpl directory is a template which I simply renamed from the original /var/log directory. This keeps permissions intact and ensures that required files are present. As an alternative, there's also tmpfs (see man mount_tmpfs). The fstab line looks almost the same: swap /ramdisk tmpfs rw,nodev,nosuid,-s128M 0 0