MOUNT_MFS(8) | System Manager's Manual | MOUNT_MFS(8) |
mount_mfs
— mount
a memory based file system
mount_mfs |
[-N ] [-a
maxcontig] [-b
block-size] [-d
rotdelay] [-e
maxbpg] [-f
frag-size] [-g
groupname] [-i
bytes-per-inode] [-m
free-space] [-n
inodes] [-o
options] [-p
permissions] [-s
size] [-u
username] [-V
verbose] special node |
mount_mfs
is used to build a file system
in virtual memory and then mount it on a specified node.
mount_mfs
exits and the contents of the file system
are lost when the file system is unmounted. If
mount_mfs
is sent a signal while running, for
example during system shutdown, it will attempt to unmount its corresponding
file system. special is ignored.
Options with numeric arguments may contain an optional (case-insensitive) suffix:
The following options define the general layout policies:
-N
-a
maxcontig-d
option). The default value is 8. See
tunefs(8) for more details
on how to set this option.-b
block-size-d
rotdelay-e
maxbpg-f
frag-size-g
groupname-i
bytes-per-inode-m
free-space-n
inodes-i
and -n
are specified
then -n
takes precedence.-o
-o
flag followed by a
comma separated string of options. See the
mount(8) man page for
possible options and their meanings.-p
permissions-s
size-u
username-V
verbose-N
is specified
mount_mfs
stops before outputting the progress
bar.The owner and group ids of the root node of the new file system are set to the effective uid and gid of the user mounting the file system.
Mount a 32 MB mfs on /tmp:
mount_mfs -s 32m swap
/tmp
disktab(5), fs(5), disklabel(8), diskpart(8), dumpfs(8), fsck_ffs(8), fsirand(8), mount(8), newfs(8), tunefs(8)
M. McKusick, W. Joy, S. Leffler, and R. Fabry, A Fast File System for UNIX,, ACM Transactions on Computer Systems 2, 3, pp 181-197, August 1984, (reprinted in the BSD System Manager's Manual).
The mount_mfs
command appeared in
4.4BSD.
The async
mount(8) option is currently
disabled in this file system because it causes hangs when writing lots of
data. The problem is that MFS needs to allocate pages to clean pages, so if
it waits until the last minute to clean pages then there may not be any of
them available to do the cleaning.
September 12, 2016 | NetBSD 10.99 |