Subject: Re: Can I use the linux swap partition?
To: Eric S. Hvozda <hvozda@ack.org>
From: Robert Alexander Baxter <alex@santa.asf.alaska.edu>
List: netbsd-help
Date: 10/15/1998 13:00:24
Eric S. Hvozda wrote:

> 
> On Thu, 15 Oct 1998 10:45:36 -0700 (PDT)  Phil Nelson wrote:
>
> >
> > I believe you should be able to just make the b partition of your
> > disklabel map to the Linux swap area even though it is out of the
> > NetBSD partition.  I access the DOS partition this way, why not the
> > Linux swap partition!
> >
> 
> netBSD won't care as long as it's in the disklabel for the device,
> but I though Linxu expected a certain bit pattern in its swap area
> (isn't that what mkswap does when you use it?).
> 
> Anyway, a bit ago (3 years) when I had tried that last, Linux
> demanded that mkswap be rerun on the partition after NetBSD had
> stomped on it.
> 

That's what I used---I had a line right before "swapon -a" (or something
like that) which had "mkswap /dev/sdb2" or the like, in my init script
that contained "swapon -a"

The "mkswap" command isn't slow like "mke2fs" so this doesn't slow
down system startup much.  If the time delay bothers you, you could
write a separate script which runs "mkswap" and then "swapon" in
sequence, and launch that script in the background from your init
script.

-Alex (:-)
 alex@santa.asf.alaska.edu