Subject: Re: MicroVax2000
To: Sean Clarke <sclarke@neptune.tzo.cc>
From: Andrew Gillham <gillham@vaultron.com>
List: port-vax
Date: 07/22/2000 18:54:13
> 
> Just wondering if someone can now help me setup a swap file for my
> MicroVax2000 netbooting off a Redhat 6,2 server...   I have followed the
> commands in the FAQ but have failed to get it to mount the swap file....
> 
> 
> i have done the following
> mkdir /export/vax2000/swap
> dd if=/dev/zero of=/export/vax2000/swap bs=4k count=4k 
> the last command fails saying swap is a directory....   

Skip the 'mkdir' step.  Assuming /export/vax2000 is the '/' of your VAX
you could do the following:
	# dd if=/dev/zero of=/export/vax2000/.swap bs=4k count=4k
	# chmod 700 /export/vax2000/.swap
	(or on the vax use 'of=/.swap' though that will be _slow_)

Then in /export/vax2000/etc/fstab (or /etc/fstab on the vax) add:
	/.swap none swap sw 0 0

You will now do 'swapon /.swap', or 'swapctl -A' or reboot to enable the
new swap space.
I prefer using '/.swap' rather than just "/swap" or a "swap" on some other
mount point.  Then it doesn't always show up in 'ls' and it is using the
same mount as the root filesystem.

-Andrew