Subject: Re: Creating real Ram Disk
To: Jeff Arenberg <jeffa9999@yahoo.com>
From: Andrew Cagney <cagney@mac.com>
List: port-macppc
Date: 01/03/2002 03:09:33
> I've read all the posts on the web and have found nothing that actually
> describes the exact steps to creating a ram disk with ffs.  I am creating a
> pure RAM based system and I have configured a ram disk with the miniroot
> that gets inserted in the kernel, but now I want a second large (256MB) ram
> disk for file storage.  I believe the order is something like:
> 
> 1. Mdconfig /dev/md0x size &
> 2. Something about creating disklabel
> 3. Something about newfs
> 4. Something about mount_mfs
> 
> But I have no clue what the actual commands are for steps 2, 3 and 4.
> Everything I've tried yields an error.  So for the record, can someone
> please list the steps with the correct commands.


I've got:

$ grep tmp /etc/fstab
/dev/wd0b       /tmp    mfs     rw


giving:

$ df -k /tmp
Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
mfs:124        989776        4   940283     0%    /tmp


however, something like:


# mount_mfs swap /mnt


also just works.  Need ``file-system MFS'' in your kernel mind.  I don't 
know about all the other steps.

Andrew