Subject: Re: Creating a mountable FS on the memory disk (md)
To: Bill Studenmund <wrstuden@nas.nasa.gov>
From: Sanjay Lal <sanjayl@siara.com>
List: port-macppc
Date: 02/15/2000 14:39:42
Bill, thank you very much for the info.  I needed this
because I am trying to bring up NetBSD on a powerpc
based platform.  The stuff worked beautifully.

Thanks again
Sanjay

On Tue, 15 Feb 2000, Bill Studenmund wrote:

> On Fri, 11 Feb 2000, Sanjay Lal wrote: 
> 
> > I am trying to figure out how I'd go about using
> > a ramdisk (device md) as my root file system.
> > I have looked at the GENERIC_MD config file.  This
> > does allow you to setup device md (memory disk) as
> > the root fs.  There is an array in md_root.c that
> > needs to be "patched" so that it contains the image
> > of an fs.  My question(s) are:
> > 
> > (1) Where do u get or how do u create an image suitable
> > for patching into the array. I am assuming here
> > that we could create an fs of the same size, and then
> > dd it off to a file????
> 
> Close. You use the vnd device to make a device which is backed by a file.
> You then newfs it and build the fs you want.
> 
> > (2) How do you patch the array.
> 
> mdsetimage.
> 
> Check out the distrib section of the source tree. It's where ramdisk'd
> floppies are built.
> 
> Take care,
> 
> Bill
> 
>