*BSD News Article 85751


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!blackbush.xlink.net!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: FreeBSD 2.2-ALPHA ext2fs support
Date: 27 Dec 1996 19:24:43 GMT
Organization: Private BSD site, Dresden
Lines: 56
Message-ID: <5a17pr$df1@uriah.heep.sax.de>
References: <59fgao$pq@nef.ens.fr>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:33194

espel@drakkar.ens.fr (Roger Espel Llima) wrote:

> My slice/partition setup is:
> 
>  . DOS slice (primary)
>  . FreeBSD slice, containing BSD-style partitions:
>    . /
>    . swap
>    . /usr
>  . extended slice, containing DOS-style logical partitions:
>    . Linux swap
>    . Linux /
> 
> 
> Under FreeBSD, I see the FreeBSD slice split into various partitions
> (with devices like wd0s1a to wd0s1h or so), but the Linux partitions
> apparently aren't there, there's just the device for the extended
> slice itself... so I can't even attempt to mount them.

That's since you've got the picture wrong IMHO.  See it as:

 . DOS slice (primary)
 . FreeBSD slice, containing BSD-style partitions:
   . /
   . swap
   . /usr
 . extended slice # 1: Linux swap
 . extended slice # 2: Linux /

Linux doesn't have partitions (in the BSD terminology), it always uses
the fdisk slices.  To support the above with /dev nodes:

/dev/wd0        (entire disk)
  /dev/wd0s1    DOS slice (primary)
  /dev/wd0s2    FreeBSD slice, containing BSD-style partitions:
    /dev/wd0s2c   (same as /dev/wd0s2)
    /dev/wd0s2a   /
    /dev/wd0s2b   swap
    /dev/wd0s2e   /usr
  /dev/wd0s3    (doesn't exist, empty fdisk slot)
  /dev/wd0s4    (doesn't exist, empty fdisk slot)
  /dev/wd0s5    extended slice # 1: Linux swap
  /dev/wd0s6    extended slice # 2: Linux /

You can clearly see the nested slice/partition scheme of BSD, as
opposed to the single-level fdisk partitions.

The wd0s5 etc. /dev nodes are likely to not yet exist.  You gotta run
MAKEDEV for them.

-- 
cheers, J"org

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