Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Feb 95 10:31:09 MST
From:      terry@cs.weber.edu (Terry Lambert)
To:        wkk@eng.warwick.ac.uk
Cc:        FreeBSD-questions@freefall.cdrom.com
Subject:   Re: Sharing Swap Partition Between Linux and FreeBSD2.0
Message-ID:  <9502031731.AA23166@cs.weber.edu>
In-Reply-To: <23097.9502030933@eng.warwick.ac.uk> from "wkk@eng.warwick.ac.uk" at Feb 3, 95 09:33:47 am

next in thread | previous in thread | raw e-mail | index | archive | help
> Hello,
>         Is it possible to share a swap partition between Linux and FreeBSd2.0?
> I have 100 Megs of SWAP sapce for Linux on my second hard drive (IDE) and I
> have installed FreeBSD2.0 on my first hard drive. I want the swap partition to
> be used by FreeBSD2.0 and Linux. Linux is installed on my second drive.
> Does anybody know if it is possible to share swap partition between these two
> operating systems?

Yes.

Put a disklabel on that drive in a BSD partition (even a very small one.

Define a slice that spans the swap partition.

Make sure your kernel config for BSD support swapping on the device.  This
is documented in the config documentation.  If not, you will have to
rebuild a kernel to do it.

Swap on the slice spanning the partition.

On a related topic:

I'm not sure if the default vnode pager works like it is supposed to
in the current code.  When I did this, I neither had the current code,
nor was using the vnode pager that came with the code at the time.

*IF* it works, then you can, after you have enabled mounting of your
DOS partition, use your Windows swap file as a swap area.

To prevent Windows bitching after you are done running BSD and want to
reload Windows (for some unholy reason), you must delete a tag file of
some kind.  I forget which one.  This should be done when/before you
start using the Windows swap area.  The Linux documentation covers
this in detail, so since you have Linux, you can look it up there.


					Terry Lambert
					terry@cs.weber.edu
---
Any opinions in this posting are my own and not those of my present
or previous employers.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9502031731.AA23166>