local memory-based UNIX filesystem
MAX MFS SIZE => 512MB
http://www.mimedefang.com/kwiki/index.cgi?action=diff&page_name=RamB
asedSpoolDirectory&revision_id=-1
`man mfs'
mount_mfs -s 131072 -o nosuid,nodev,nosymfollow /dev/da0s1b /tmp
size * 512 Bytes = MB
1MB -> 2048
64MB -> 131072
-s size
The size of the file system in sectors. This value defaults to
the size of the raw partition specified in special (in other
words, newfs will use the entire partition for the file system).
ex) 스왑파티션에 사용하는 예제
# Device Mountpoint FStype Options Dump Pass#
/dev/wd0s1b none swap sw 0 0
/dev/wd0s1b /mnt/mfs mfs rw,-s131072 0 0
FreeBSD 5.x moconfig(8)
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks-virt
ual.html#AEN25412
This will create a 512 MB memory filesystem (the -s size is in 512 byte blocks).
Incidentally, 512 MB is the maximum allowed on a stock !FreeBSD system (compile a
new kernel to change this). For some reason, !FreeBSD mounts this with asynchronous
updates. To force synchronous, ammend the command to This will create a 512 MB
memory filesystem (the -s size is in 512 byte blocks). Incidentally, 512 MB is the
maximum allowed on a stock !FreeBSD system (compile a new kernel to change this).
For some reason, !FreeBSD mounts this with asynchronous updates. To force
synchronous, ammend the command to
mount -t mfs -o -s1048576,noasync /dev/sd0s1b /var/spool/MIMEDefang mount -t mfs
-o -s1048576,noasync /dev/sd0s1b /var/spool/MIMEDefang
The line to add to [=/etc/fstab] is this: The line to add to [=/etc/fstab] is
this:
/dev/sd0s1b /var/spool/MIMEDefang mfs rw,-s1048576,noasync 0 0
|