Newsgroups: comp.sys.next
Path: utzoo!utgpu!watserv1!vlsi!ccng!tgoldtho
From: tgoldtho@ccng.waterloo.edu (Thomas A. Goldthorpe)
Subject: Re: A few minor prob left...
Message-ID: <1990Oct15.050058.27579@ccng.waterloo.edu>
Organization: University of Waterloo
References: <9102@milton.u.washington.edu>
Date: Mon, 15 Oct 90 05:00:58 GMT
Lines: 38

In article <9102@milton.u.washington.edu> cyliao@hardy.acs.washington.edu (Chun-Yao Liao) writes:
>
>	/usr/etc/mach-swapon: swapping on /Candy/vm/swapfile
>		(this line is all right)
>	mach_swapon : mach_swapon failed : error 0
>	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

You are not supposed to modify the rc scripts or the file
/etc/swaptab to mount a disk for the swapfile.  See below for
quick details and what to do: 

Explaination:  (a real quickie)

On start up, the rc script checks all disk labels.  When it finds one that
says 'swapdisk', it checks the fstab file for an entry with 'swapdisk' in it.
If it finds the entry, it knows which partition to mount from that entry
to /private.  The script itself mounts the partition and then creates the
file /private/swapdisk/vm/swapfile (I'm not on a NeXT at the moment, and
my memory is not the greatest for names, hence that path may be slightly
wrong).  Anyway, it also links /tmp into that mounted disk at the same
point then continues on.  The explicit mount in the rc script is OK, since
the fstab entry specifies the partition shouldn't be mounted via normal
standards.  In summary, all you need to do is specify the label on the
disk with the partition to mount is 'swapdisk', and that an entry which
won't mount the disk (but has the correct info for the partition and the
name swapdisk) appears in /etc/fstab.  (Note, /etc/fstab is really a link
with /private/etc/fstab, just like most other things :-)

That was a QUICK explaination, and it is 1:00 in the morning, and hence
not too coherent (I need real sleep soon).

Mail me if you have problems.

Tom




