*BSD News Article 89687


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!lucy.swin.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!cs.mu.OZ.AU!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!news.maxwell.syr.edu!news.mathworks.com!fu-berlin.de!fub46.fddi1.fu-berlin.DE!not-for-mail
From: gusw@zedat.fu-berlin.de (Gunther Schadow)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Can Linux and FreeBSD share a swap partition?
Date: 18 Feb 1997 13:54:55 GMT
Organization: Freie Universitaet Berlin
Lines: 20
Message-ID: <5eccbf$9dn@fu-berlin.de>
References: <Pine.LNX.3.91.970212062214.2362A-100000@hafnium.nkbj.dk>
NNTP-Posting-Host: fub46.fddi1.fu-berlin.de (160.45.1.46)
X-Access: 16 17 19
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:35802

Yes, of course. I even had a swap partition formatted for dos from
an AUTOEXEC.BAT file. How is it done? if you use slices, i.e. fdisk
partitions, then you configure three of them, wd0s1 for FreeBSD, wd0s2
for Linux and wd0s3 for the common swap. Just edit your /etc/fstab
file (don't know the Linux equivalent) like this:

wd0s1a /    ufs
wd0s1e /usr ufs
wd0s3  none swab
# wd0s2a /linux/ linuxfs (does it exist?)
# wd0s2e /linux/usr linuxfs (does it exist?)

and you are ready to go!
regards
-Gunther
--
Gunther Schadow------------------Windsteiner Weg 54a, Berlin 14165, FR. Germany
Dept. of Anaesthesia, Benjamin Franklin University Hospital, Berlin.
     gusw@fub46.zedat.fu-berlin.de | http://userpage.fu-berlin/~gusw
----------------------------------------#include <usual/disclaimer>------------