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