fstab.ramdisk revision 1.5
11.5Schristos# $NetBSD: fstab.ramdisk,v 1.5 2015/03/04 16:18:04 christos Exp $ 21.1Shubertf# 31.4Sjmmv# Sample fstab for multiple ramdisks (mfs and tmpfs). 41.4Sjmmv# 51.4Sjmmv 61.4Sjmmv# 71.4Sjmmv# mfs examples 81.4Sjmmv# 91.4Sjmmv 101.1Shubertf# /tmp is on a 5MB mfs partition; see mount_mfs(8) for details. 111.3Ssketch# Adjust the size according to the amount of free RAM. 121.4Sjmmvswap /tmp mfs rw,-s=5m,nodev,nosuid 131.4Sjmmv 141.4Sjmmv# 151.4Sjmmv# tmpfs examples 161.1Shubertf# 171.4Sjmmv 181.4Sjmmv# Standard tmpfs entry for /tmp. 191.4Sjmmvtmpfs /tmp tmpfs rw 201.4Sjmmv 211.4Sjmmv# Standard tmpfs entry for /var/run. 221.4Sjmmv#tmpfs /var/run tmpfs rw 231.4Sjmmv# Note that for this to work correctly you must add /var/run to the list 241.4Sjmmv# of critical local file systems in /etc/rc.conf. You can do so by adding 251.4Sjmmv# the following to that file: 261.4Sjmmv#critical_filesystems_local="${critical_filesystems_local} /var/run" 271.4Sjmmv 281.4Sjmmv# Mounts tmpfs over /tmp with a size limit. 291.4Sjmmv#tmpfs /tmp tmpfs rw,-s128M 301.4Sjmmv 311.4Sjmmv# Mounts a tmpfs instance to be used by a specific user. 321.4Sjmmv#tmpfs /home/foo/tmp tmpfs rw,-ufoo,-gusers,-s50M 331.5Schristos 341.5Schristos# Shared memory tempfs template allocating 25% of available memory 351.5Schristostmpfs /var/shm tmpfs rw,-m1777,-sram%25 36