*BSD News Article 51585


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!recepsen.aa.msen.com!zib-berlin.de!irz401!uriah.heep!not-for-mail
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: FreeBSD <-> Linux : newbie's question
Date: 24 Sep 1995 23:21:32 +0100
Organization: Private FreeBSD site, Dresden.
Lines: 37
Message-ID: <444llc$3vr@uriah.heep.sax.de>
References: <441g1l$cs1@sand.cis.ufl.edu>
NNTP-Posting-Host: uriah.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Hsiao-Yang Cheng <sycheng@cis.ufl.edu> wrote:

>    1) Can FreeBSD use Linux's swap partition as its swap ?

Yes, but not directly.

I've just killed a Linux/FreeBSD combo on my notebook that did it.
You need to tweak your rc files to perform the following:

when Linux comes up:
	o run fdisk and mark the partition in question as "Linux swap"
	o run makeswap on it

in FreeBSD:
	o prepare an entry in /etc/disktab that contains just that
	  swap slice (partition "c" covering the entire slice, starting
	  at [relative] offset 0, partition "b" identical to it, the
	  actual swap space)

when FreeBSD comes up:
	o run fdisk on it and mark it as FreeBSD slice
	  (this will only work correctly if the boot slice is prior
	  to the swap slice in the FDISK table)
	o disklabel -r -w wd<X>s<X> <disktab-name>
	o the you're ready for swapon


>    2) Could FreeBSD mount Linux partitions , and vice versa ?

Not yet, but John Dyson is working on ext2fs integration.

I don't think anybody is working on ufs support for Linux.
-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)