Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Dec 1995 09:53:16 PST
From:      "Marty Leisner" <leisner@sdsp.mc.xerox.com>
To:        freebsd-install@freebsd.org
Subject:   freebsd and swap space
Message-ID:  <9512311753.AA07390@gemini.sdsp.mc.xerox.com>

next in thread | raw e-mail | index | archive | help

I'm working on a strategy to share swap space between
win95/linux/freebsd and NT using an extended partition...

>From what I've seen of the freebsd swap space strategy:
	1) we have to select a swap partition within the disk slice
	2) we cannot make a swapfile (we have to swap on a swap partition).

What I did is I have a dos formatted extended partition (about 30Mbyte).

When I boot linux multiuser, I:
	mount as dos
	erase all dos files (they should only be swap files) 
	umount as dos
	do dd if=/dev/swap-space count=<small number> | gzip -c >/tmp/swap.copy.gz
	mkswap /dev/swap-space
	swapon /dev/swap-space

and when I bring down the system I do:
	swapoff /dev/swap-space
	zcat /tmp/swap.copy.gz >/dev/swap-space

It seems to be working well, I want to implement the same in freebsd...
There doesn't seem to be a mkswap or a swapoff command implemented...



marty		leisner@sdsp.mc.xerox.com   
Member of the League for Programming Freedom (http://www.lpf.org)
Any sufficiently advanced technology is indistinguishable from magic
        Arthur C. Clarke, The Lost Worlds of 2001



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