The md(4) driver uses the mfs (or memory filesystem) to create a memory disk. The created MD just has a fixed location (/tmp). It also has a size option (set by tmpsize) and extra options (set by tmpmfs_flags) that you can override.
But you could create the MD anywhere you want (not just on /tmp) and with any additional option. See mdmfs(8) and the examples in it:
Code:
Create and mount a 32 megabyte swap-backed file system on /tmp:
mdmfs -s 32m md /tmp
The same file system created as an entry in /etc/fstab:
md /tmp mfs rw,-s32m 2 0
(simply change /tmp)
And alternatively you could use the tmpfs(5) driver to do the same on /tmp or anywhere else.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.