mfs
Ceri Davies
setantae at submonkey.net
Wed Aug 13 11:38:15 PDT 2003
On Wed, Aug 13, 2003 at 11:32:53AM -0700, Joshua Oreman wrote:
> On Wed, Aug 13, 2003 at 05:58:29PM -0000 or thereabouts, mbaki at whywire.net wrote:
> > Hi all,
> >
> > I'm trying to setup /var on a mermory file system on Freebsd 5.1, any good documents that will
> > help me, it's my first time.
>
> Don't set up /var on MFS, it holds stuff that has to be preserved across reboots.
> To set up /tmp on a MFS (for this one boot), do like so:
> # mv /tmp /tmp.old
> # mkdir /tmp
Don't forget to add the sticky bit here:
# chmod 1777 /tmp
> # MD=`mdconfig -a -t swap -s XXXm` # replace XXXm with size
> # newfs /dev/$MD
> # mount /dev/$MD /tmp
> # unset MD
>
> It will disappear when the system goes down.
To have it reappear on boot, add the following to your /etc/fstab:
md /tmp mfs rw,nosuid,async,noatime,nosymfollow,nodev,-s=524288 0 0
You may want to change the options and size.
Ceri
--
User: DO YOU ACCEPT JESUS CHRIST AS YOUR PERSONAL LORD AND SAVIOR?
Iniaes: Sure, I can accept all forms of payment.
-- www.chatterboxchallenge.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030813/8f5e8eb8/attachment.bin
More information about the freebsd-questions
mailing list