It is possible to declare a chunk of memory as a ramdisk which is then
treated like a normal disk by SunOS. You can make a tmpfs filesystem
by typing (assuming you are root)
mkdir /ramdisk
and then
mount -t tmp swap /ramdisk
This will only work if your kernel has TMPFS support in it. man tmpfs
gives information how to make a permanent tmpfs file system.
The name of your kernel is given at the top of /etc/motd.
cd /usr/kvm/sys/sun4c/conf (or wherever your kernel is located)
If your kernel file contains the line
#options TMPFS # tmp (anonymous memory) file system
then you will have to delete the comment character # and rebuild
your kernel by typing
/usr/etc/config <KERNEL FILE NAME>
and then
cd ../<KERNEL FILE NAME>
make
cp /vmunix /vmunix.old
cp vmunix /vmunix
shutdown -r now
Your kernel can now support tmpfs filesystems.
My thanks to everyone who sent me solutions and suggestions.
Ken Mighell
Associate Research Scientist
Department of Astronomy
Columbia University INTERNET: mighell@figaro.phys.columbia.edu
538 West 120th Street PHONE: (212) 854-6899
New York, NY 10027 FAX: (212) 316-9504
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:08:02 CDT