*BSD News Article 51725


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!swidir.switch.ch!scsing.switch.ch!news.belwue.de!News.Uni-Marburg.DE!news.th-darmstadt.de!fauern!news.tu-chemnitz.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: 26 Sep 1995 22:03:50 +0100
Organization: Private FreeBSD site, Dresden.
Lines: 21
Message-ID: <449prm$h1r@uriah.heep.sax.de>
References: <441g1l$cs1@sand.cis.ufl.edu> <445hrd$9q9@reason.cdrom.com>
NNTP-Posting-Host: uriah.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Jordan K. Hubbard <jkh@FreeBSD.org> wrote:

>>    1) Can FreeBSD use Linux's swap partition as its swap ?
>
>If it's an MBR partition, yeah, sure.  Just use swapon and the correct slice
>name, e.g. for disk 0, MBR partition 3:  `swapon /dev/sd0s3'

Linux does exclusively swap on FDISK partitions (and i think that's
what you mean -- it could also be an extended partition, the slice
code should handle this).  Of course, as long as it's not swapping on
a file... but that's another point.

Naaah, Jordan, it's not that easy though.  You still need to convince
both systems that it's a valid swap area from their respective view.
For Linux, makeswapfile (sp?) does this, for FreeBSD, it's
disklabel(8).  See my other reply.
-- 
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. ;-)