*BSD News Article 36164


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!europa.eng.gtefsd.com!MathWorks.Com!news.kei.com!travelers.mail.cornell.edu!newstand.syr.edu!rodan.syr.edu!smcarey
From: smcarey@rodan.syr.edu (Shawn M Carey)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Creating mfs under FreeBSD
Date: 26 Sep 1994 06:13:04 GMT
Organization: Syracuse University, Syracuse, NY
Lines: 35
Message-ID: <365opg$r9e@newstand.syr.edu>
References: <CwpuyJ.2oA@usenews.nrlssc.navy.mil>
NNTP-Posting-Host: rodan.syr.edu

In article <CwpuyJ.2oA@usenews.nrlssc.navy.mil> beck@nrlssc.navy.mil (Jeff Becklehimer) writes:
>Hi all,
>
>I running FreeBSD 1.1.5.1 and have decided that I would like to create a
>mfs so that I can place some frequently accessed files there. After looking
>at the mount man page I am a bit confused, one of the examples is
>
>mount -t mfs -o nosuid,-N,-s=4000 /dev/wd0b /tmp
>
>This looks like what I want to do but isn't /dev/wd0b the swap area on disk
>and not in memory?

Yep, the swap area is where the ramdisk gets backed up when memory
gets too low.

>Anyway, I said what the heck and tried it with a directory
>named /ram rather than /tmp but got back an error message about operation not
>supported by device.
>
>So, how do I create a file system in memory?

You need to have a line like the following in your kernel config file:

options		MFS			#Memory based File System

Then you need to reconfig the kernel, rebuild and install it.

>
>Thanks.
>

Welcome.

-Shawn Carey