Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Feb 97 14:11:24 GMT
From:      David Alan Gilbert <gilbertd@cs.man.ac.uk>
To:        jonathan@cc.odu.edu, questions@freefall.freebsd.org
Subject:   Re: Can Linux/FreeBSD share swap?
Message-ID:  <9702111411.AA13548@amu7.cs.man.ac.uk>

next in thread | raw e-mail | index | archive | help
Linux can share swap with FreeBSD with a simple hack.
There are two things stopping you.  The first is that Linux doesn't by default
know about FreeBSDs slice/partition scheme - if you wan't that you'll
have to compile it in.

Next problem is that Linux looks for a swap header (to stop you accidentally
swapping onto a file system besides any other use). You have to defeat this
on each Linux boot by adding:

/sbin/mkswap devicename

in your /etc/rc....whatever.... before the swapon

The ext2fs works well on both OS's; however be aware that I don't think
2.1.6 FreeBSD knows about it, and you have to recompile a kernel to get it
into 2.2. Also the FreeBSD ext2fs code is missing 'cookie' code to enable
an ext2fs to be exported.

Dave



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