From owner-freebsd-questions Thu Feb 6 23:01:13 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id XAA09653 for questions-outgoing; Thu, 6 Feb 1997 23:01:13 -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 XAA09643 for ; Thu, 6 Feb 1997 23:01:11 -0800 (PST) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.5/8.6.12) with SMTP id WAA01762; Thu, 6 Feb 1997 22:59:48 -0800 (PST) Date: Thu, 6 Feb 1997 22:59:47 -0800 (PST) From: Doug White X-Sender: dwhite@localhost Reply-To: Doug White To: Marty Leisner cc: Jonathan Sturges , questions@freebsd.org Subject: Re: Can Linux/FreeBSD share swap? In-Reply-To: <9702070015.AA02844@gnu.sdsp.mc.xerox.com> 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, Marty Leisner 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. > > 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. > > > Are you sure? Not really, I haven't ever tried it. :) If you have something similar working and know how to do it, and don't mind sacrificing your filesystems for the good of FreeBSD, go ahead :) > I'm sharing a swap partition on linux and win95...when I boot linux > I erase the dos files, dd it, and mkswap it (putting back the old image > on shutdown). Is linux running UMSDOS or mounting the DOS partition? > I was under the impression in freebsd you can swap on arbitrary partitions > (so I want to use the same strategy). Again, I don't know how rigorous the FS emulation code is. Swap would really test it. > I strongly encourage making small swap parititons (I'm putting it > in extended partitions) then swap files...then if something breaks, its > no big deal... > > What I would like is not to insist on swap when I install (on machines with > >16 Mbyte of ram, its reasonable not to have to make a swap parititon). As long as you don't run, say, Xwindows. If I ran anything above X and 3 xterms, I swapped on 16mb. I upgraded to 32mb; I can get it to swap *occaisionally*. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major