ramdisk help

Jim Carter jim at ic2020.UUCP
Tue Feb 13 02:08:44 AEST 1990


in article <16073 at well.sf.ca.us>, whofan at well.sf.ca.us (Brian Lawrence Dear) says:
>  
> Unfortunately, we're at a loss as to how to decipher the SCO documentation
> on RAM disks.  Does anyone have one in use?  What exactly did you do
> to create the ram disk?
>  
> -- brian
>    coconut computing, inc.
>    la jolla, ca
We had to upgrade our system from 2mb to 10mb with nothing in between.
As a result we have about 5mb more than we need.  So I created a 2mb 
ramdisk.  I have attatched the script files I use at bootup.

************* devices
brw-------   1 root     root      31,  0 Nov 13  1987 /dev/ram00
brw-rw-rw-   1 root     root      31,186 Feb  1 14:50 /dev/ram01
ram00 is already on your system(it was on ours)
ram01 is the one I made.  Notice the minor number.  It is the definition
of how big the ramdisk is.  Also one of the bits in the minor device specifies
if the device is to stay around or disapear after it is closed.  Pick the
permanent device.  Lookup RAMDISK(HW) my page is dated April 1,1987.  I would
suspect it has not changed.

************* ramdisk root directory.
drwxrwxrwx   5 root     root          80 Feb  1 14:50 ramdisk/
Make a normal directory entry in /root or whereever you wish to mount this
ramdisk.  I chose /ramdisk for the location.  Not realy important.  But just
make it a normal directory entry.

************* /etc/rc
# append line to /etc/rc which will create ramdisk.
/etc/rammount

************* /etc/rammount
:
/etc/mkfs -y /dev/ram01 2048
chmod +rw /dev/ram01
/etc/mount /dev/ram01 /ramdisk
mkdir /ramdisk/tmp
mkdir /ramdisk/bin
mkdir /ramdisk/lib
chmod +rwx /ramdisk/*
mkdir /ramdisk/lib/fp
chmod +rwx /ramdisk/lib/*
#
# ... copy files you want in ramdisk ...
cp /usr/bin/lens /ramdisk/bin
cp /u/local/bin/more /ramdisk/bin
cp /u/local/bin/w /ramdisk/bin
cp /bin/ls /ramdisk/bin
cp /u/local/bin/foxplus /ramdisk/bin
cp /usr/bin/foxplus.pr /ramdisk/bin
cp /usr/lib/foxplus/no87 /ramdisk/lib/fp
cp /usr/lib/foxplus/setkeys /ramdisk/lib/fp

************* Environment.
Make sure /ramdisk/bin is first in your search path, otherwise it
will find your ramdisk binaries elsewhere.

PATH=:/ramdisk/bin:./bin:/u/local/bin:/bin:/usr/bin:/u/jim/bin

- Hope this helps.
-- 
Jim Carter (Sequoia Contact Lens,1355 11th Street,Reedley,CA,93654)
{...!csufres!csuf3b!ic2020!jim} 209/638-3939, Fax 209/638-5433



More information about the Comp.unix.xenix mailing list