Re: Sharing Swap files
On Sun, 28 Jan 1996 br00031@bingsuns.cc.binghamton.edu wrote:
> I have uudecoded and gunziped the msinfo file in the "Sharing Swap ..."
> mini how to. It does not do anything. Has anyone gotten this to work.
> Thank you.
>
I have the thing working, but as far as I remember there was a typo of
some sort in the howto. Anyway, here are the changes that I had to make:
in the /etc/init.d/boot insert the line marked with + between the lines
indicated:
# Activate the swap device(s) in /etc/fstab.
+ mkswap /dev/hdc9
swapon -a
ofcouse replace /dev/hdc9 with your partition
also in /etc/init.d/halt add following code
echo -n "Deactivating swap... "
swapoff -a
echo "done."
+ echo "Restoring DOS swap space..."
+ zcat /etc/dosswap/dos.hdc9.gz | dd of=/dev/hdc9 bs=1k
again replace files with apropriate ones. Ofcouse before you do any of
this, first you would need to format the drive for dos, and create the
dos image file by doing something like this:
dd if=/dev/hdc9 of=/etc/dosswap/dos.hdc9 bs=1k count=1000
gzip -9 /etc/dosswap/dos.hdc9
If the disk is freshly formated, the image will compress very nicely. My
/etc/dosswap/dos.hdc9.gz is 679 bytes.
Good luck.
--
Alexander Goldstein email: agoldste@uic.edu
Reply to: