Subject: Re: Ramdisk?
To: None <port-arm32@netbsd.org>
From: Mike Pumford <mpumford@mpc-data.co.uk>
List: port-arm32
Date: 11/18/1999 13:28:37
> I have a efw questions, somewhat related.....
> 
> We need to run diskless, but for now I just wanted to create and mount a
> ramdisk.
> 
> I built a kernel with an "md" configured in, the MFS defined,
> MEMORY_DISK_HOOKS defined
> and MEMORY_DISK_SIZE=8192.
> 
> On boot I get a message "md0: allocated 4096K (8192 blocks)"
> (I guess from the code in md_hooks.c)
> but, I can't seem to mount "md0".
> 
The md device is for using a ramdisk image embedded into the kernel. 
This image can be set with mdsetimage. The idea is that you build a 
mini UFS file system in an image file and embed it into the kernel. 
For more info on building ramdisk images see the vnconfig and 
mdsetimage manual pages.

Mike