From owner-freebsd-questions Fri Feb 3 09:37:16 1995 Return-Path: questions-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id JAA16719 for questions-outgoing; Fri, 3 Feb 1995 09:37:16 -0800 Received: from cs.weber.edu (cs.weber.edu [137.190.16.16]) by freefall.cdrom.com (8.6.9/8.6.6) with SMTP id JAA16713 for ; Fri, 3 Feb 1995 09:37:15 -0800 Received: by cs.weber.edu (4.1/SMI-4.1.1) id AA23166; Fri, 3 Feb 95 10:31:10 MST From: terry@cs.weber.edu (Terry Lambert) Message-Id: <9502031731.AA23166@cs.weber.edu> Subject: Re: Sharing Swap Partition Between Linux and FreeBSD2.0 To: wkk@eng.warwick.ac.uk Date: Fri, 3 Feb 95 10:31:09 MST Cc: FreeBSD-questions@freefall.cdrom.com In-Reply-To: <23097.9502030933@eng.warwick.ac.uk> from "wkk@eng.warwick.ac.uk" at Feb 3, 95 09:33:47 am X-Mailer: ELM [version 2.4dev PL52] Sender: questions-owner@FreeBSD.org Precedence: bulk > 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.