From owner-freebsd-questions Thu Feb 6 10:29:47 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id KAA20598 for questions-outgoing; Thu, 6 Feb 1997 10:29:47 -0800 (PST) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id KAA20592 for ; Thu, 6 Feb 1997 10:29:43 -0800 (PST) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.4/8.6.12) with SMTP id KAA01251; Thu, 6 Feb 1997 10:29:41 -0800 (PST) Date: Thu, 6 Feb 1997 10:29:40 -0800 (PST) From: Doug White X-Sender: dwhite@localhost Reply-To: Doug White To: Jonathan Sturges cc: questions@FreeBSD.ORG Subject: Re: Can Linux/FreeBSD share swap? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Thu, 6 Feb 1997, Jonathan Sturges wrote: > I was wondering if Linux (RedHat 4.0, kernel 2.0.25) and FreeBSD (2.1.6 > or 2.2) could share a swap partition. I want to run both OSes, but I'm > not swimming in disk space, and it seems silly to allocate 2 separate > swap partitions, one for each OS. This is trickier than it sounds. FreeBSD's swap space is located within it's own slice, likewise for Linux. The problem is that one system can't read the other's disklabel, so it can't figure out just where the swap is. This question has been asked before, take a look through the mail archives. > >From what I've seen so far, this doesn't look easy. FreeBSD understands > ext2fs, so I was thinking maybe a swap file on an ext2fs partition, > rather than a dedicated swap partition, might be the "common ground" > that both can access. I haven't tried this yet, however. A vn swapspace on ext2fs? That might be pushing it since ext2fs support isn't exactly foolproof, and I don't know if vn swap is even supported on non-FFS filesystems. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major