From owner-freebsd-hackers Tue Jan 9 10:23:10 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA26243 for hackers-outgoing; Tue, 9 Jan 1996 10:23:10 -0800 (PST) Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id KAA26238 for ; Tue, 9 Jan 1996 10:23:07 -0800 (PST) Received: from gemini.sdsp.mc.xerox.com ([13.231.132.20]) by alpha.xerox.com with SMTP id <17727(12)>; Tue, 9 Jan 1996 10:19:59 PST Received: from gnu.mc.xerox.com (gnu.sdsp.mc.xerox.com) by gemini.sdsp.mc.xerox.com (4.1/SMI-4.1) id AA26525; Tue, 9 Jan 96 13:19:42 EST Received: by gnu.mc.xerox.com (4.1/SMI-4.1) id AA05928; Tue, 9 Jan 96 13:19:39 EST Message-Id: <9601091819.AA05928@gnu.mc.xerox.com> X-Mailer: exmh version 1.6.4 10/10/95 To: Bruce Evans Cc: msmith@atrad.adelaide.edu.au, hackers@freebsd.org, phk@critter.tfs.com Subject: swapping (was Re: Add new slice to running system, comments? ) In-Reply-To: Your message of "Tue, 09 Jan 1996 05:31:41 PST." <199601091331.AAA22987@godzilla.zeta.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 9 Jan 1996 10:19:34 PST From: "Marty Leisner" Sender: owner-hackers@freebsd.org Precedence: bulk I had a fairly good strategy for sharing swap between linux/win95/nt. (the Linux swap howto needs some more work). I make an extended partition of my swap size... then I do a dos format on this partition, and let win95 and nt swap to it... When Linux boots up, I do a mount -t msdos /dev/swap-space /mnt (/dev/swap-space is a sym-link to the device) rm -rf /mnt/. (better not have anything other than swap there) umount /mnt dd if=/dev/swap-space count= | gzip -c >/tmp/swap-space.gz mkswap /dev/swap-space swapon /dev/swap-space Then when I shut down in a controlled way, I do: zcat /tmp/swap-space.gz | dd of=/dev/swap-space rm /tmp/swap-space.gz restoring the dos partition... With freebsd, to swap on the same partition is a problem since we can't unmount swap partitions...and it the dos autoexec.bat, you can't rationally tell if a partition needs to be formatted... We should be able to install a system with no swap space (when I installed 2.1, it insisted on swap (I didn't try a 0 sized partition). I really think it would be a good idea for freebsd to be more flexible in how swap works... -- marty leisner@sdsp.mc.xerox.com Member of the League for Programming Freedom