*BSD News Article 94079


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.mel.connect.com.au!news.syd.connect.com.au!news.bri.connect.com.au!fjholden.OntheNet.com.au!not-for-mail
From: Tony Griffiths <tonyg@OntheNet.com.au>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: More partitions than default devices?
Date: Tue, 22 Apr 1997 10:44:46 +1000
Organization: On the Net (ISP on the Gold Coast, Australia)
Lines: 35
Message-ID: <335C09FE.10@OntheNet.com.au>
References: <5jap4r$32@news.ox.ac.uk>
Reply-To: tonyg@OntheNet.com.au
NNTP-Posting-Host: swanee.nt.com.au
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0 (WinNT; I)
To: neil.long@materials.oxford.ac.uk
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:39476

Neil J Long wrote:
> 
> Hi
> What is the 'correct' way to add more partitions on a scsi disk?
> The MAKEDEV in 2.2-stable limits it to 4 for sd, e.g.
> ll sd0s?e
> brw-r-----  1 root  operator    4, 0x00020004 Feb 24 13:04 sd0s1e
> brw-r-----  1 root  operator    4, 0x00030004 Feb 24 13:04 sd0s2e
> brw-r-----  1 root  operator    4, 0x00040004 Feb 24 13:04 sd0s3e
> brw-r-----  1 root  operator    4, 0x00050004 Feb 24 13:04 sd0s4e
> 
> How safe is it to modify MAKEDEV or should additional devices be
> made using mknod or should this be put in MAKEDEV.local?

DON'T UNDER ANY CIRCUMSTANCES HACK ABOUT WITH THIS!!!

What you are seeing here is disk 'slices' (partitions in DOS
terminology)!  Within EACH slice, assuming that it is marked as a
FreeBSD slice, you can have up to 8 BSD-type partitions, any or all of
which can be filesystems and/or swap partitions.

# man fdisk
# fdisk sd0

# man disklabel
# disklabel sd0

> 
> 4 seems a little small for big scsi disks as a default these days.

You're comparing apples and pears.  4 is the maximum number of DOS
partitions/slices (info stored in the Master Boot Record or MBR) with up
to 8 BSD partitions per slice.  That should be plenty for most people!

Tony