*BSD News Article 65869


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!vic.news.telstra.net!act.news.telstra.net!psgrain!newsfeed.internetmci.com!iol!tank.news.pipex.net!pipex!news.mathworks.com!fu-berlin.de!zib-berlin.de!news.tu-chemnitz.de!irz401!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: How do I add a hard disk!?
Date: 13 Apr 1996 00:23:43 GMT
Organization: Private BSD site, Dresden
Lines: 41
Message-ID: <4kms6f$f8c@uriah.heep.sax.de>
References: <316AD77F.5C37@quickweb.com>
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.3

Mark Mayo <mark@quickweb.com> writes:

> The bood ESDI disk (wd0) works fine, but it doesn't have an entry in the 
> /etc/disktab file, so I'm assuming the kernel has it wired in somehow?? 
> How does the system mount the disk if it ain't in the disk tab?

The disktab is only to setup a disk, not to operate it.  It's being
read by disklabel(8).

Sysinstall has its own way to handle this, so it doesn't need disktab
at all.  Ideally, all but a few entries regarding floppies, fixed-
sized magneto-optical disks etc. should disappear from /etc/disktab
some day.

I think i've already answered your remaining questions in mail, you've
correctly figured that the most important thing is disklabel(8), and
newfs(8), while fdisk is mainly important for disks to be shared with
other systems.  Just one nit:

> 8 partitions:
> #        size   offset    fstype   [fsize bsize bps/cpg]
>   c:   666545        0    unused        0     0         # (Cyl.    0 - 
> 1009*)
>   e:   666545        0    4.2BSD        0     0     0   # (Cyl.    0 - 
                                       1024  8192

should be there.  You can do all this with `disklabel -e'.

After this (and after making the device nodes -- but you've done it):

	newfs -d0 /dev/rwd1s1e

p.s.: We know that we're lacking a diskadmin tool.  Alas, it's nothing
one would write between 0000 and 0300 in the morning...

-- 
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. ;-)