blob: 574650093167312c4f9967514fbe3940a4ec8f67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# $NetBSD: fstab.ramdisk,v 1.5 2015/03/04 16:18:04 christos Exp $
#
# Sample fstab for multiple ramdisks (mfs and tmpfs).
#
#
# mfs examples
#
# /tmp is on a 5MB mfs partition; see mount_mfs(8) for details.
# Adjust the size according to the amount of free RAM.
swap /tmp mfs rw,-s=5m,nodev,nosuid
#
# tmpfs examples
#
# Standard tmpfs entry for /tmp.
tmpfs /tmp tmpfs rw
# Standard tmpfs entry for /var/run.
#tmpfs /var/run tmpfs rw
# Note that for this to work correctly you must add /var/run to the list
# of critical local file systems in /etc/rc.conf. You can do so by adding
# the following to that file:
#critical_filesystems_local="${critical_filesystems_local} /var/run"
# Mounts tmpfs over /tmp with a size limit.
#tmpfs /tmp tmpfs rw,-s128M
# Mounts a tmpfs instance to be used by a specific user.
#tmpfs /home/foo/tmp tmpfs rw,-ufoo,-gusers,-s50M
# Shared memory tempfs template allocating 25% of available memory
tmpfs /var/shm tmpfs rw,-m1777,-sram%25
|