*BSD News Article 51183


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msunews!uwm.edu!vixen.cso.uiuc.edu!howland.reston.ans.net!Germany.EU.net!zib-berlin.de!irz401!uriah.heep!bonnie.heep!not-for-mail
From: j@bonnie.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Adding New harddisk
Date: 12 Sep 1995 10:18:50 +0200
Organization: Private U**x site, Dresden.
Lines: 34
Message-ID: <433fpa$494@bonnie.tcd-dresden.de>
References: <4312dq$or7@raffles.technet.sg>
Reply-To: joerg_wunsch@uriah.heep.sax.de
NNTP-Posting-Host: 192.109.108.139
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

James Seng <jseng@technet.sg> wrote:
>Does anyone has any idea how disklabel, newfs works in FreeBSD?
>I am totally lose here as to how to add new harddisk. 

Dedicated or shared disk?

>The normal procedure is to look at /etc/disktab, then disklabel
>and newfs. However, FreeBSD /etc/disktab is strangely lacking
>a lot of disktab info yet the installation procedure can happily

The installation procedure bypasses /etc/disktab and does the entire
job "manually".  The magic for this is in /usr/src/release/libdisk.

You are free to use disktab(5) and disklabel(8) yourself.  You shall
provide a `c' partition covering the entire FreeBSD slice, which
*must* start at offset 0.  (It's relative to the start of the slice).

>newfs the disk. In addition, it seem there is no way i can 'slice' (??)
>the disk manually?

fdisk(8), though it's user interface sort-of sucks.  The man page of
fdisk in 2.0.5 does not reflect the reality. :-(

For a dedicated disk, you can also bypass the fdisk step and work with
no fdisk partition (aka. slice) table at all.  In this case, use a
non-sliced device name (e.g. `sd1' as opposed to `sd1s1'), and your
`c' partition covers the entire *disk* then.  This means the bootstrap
goes to absolute block 0, not allowing to share the disk with anything
else.
-- 
cheers, J"org                      private:   joerg_wunsch@uriah.heep.sax.de
                                   http://www.sax.de/~joerg/

Never trust an operating system you don't have sources for. ;-)