*BSD News Article 50530


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msunews!uwm.edu!spool.mu.edu!howland.reston.ans.net!newsfeed.internetmci.com!news.mathworks.com!fu-berlin.de!zrz.TU-Berlin.DE!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: Creating FS on IDE DISKS !!!!!
Date: 6 Sep 1995 11:15:50 +0200
Organization: Private U**x site, Dresden.
Lines: 54
Message-ID: <42jos6$601@bonnie.tcd-dresden.de>
References: <42hakg$hci@bilbo.nask.org.pl>
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

Jaroslaw Bazydlo <jarekb@ire.pw.edu.pl> wrote:

>1) Does FreeBSD kernel supports EIDE drives ??? - i've been useing this
>system for two moth and hove problem with labeloing a new 1.2G HDD.

Only as plain IDE.  You have to restrict the number of heads to 16 and
the number of sectors per track to 63 (as you did), and the root
partition (where the /kernel is loaded from) must below the 1024-
cylinder watermark.  For the recommended root size of ~ 20 MB, this
usually ain't a problem.  (For a non-boot disk, you don't run into
special problems.)

>2) Is the easier way to fdisk/disklabel/newfs a new HD?? What kind od util
>does the install disk use ??? Is it avbailable in the system.
>/stand/sysinstall began to install binaries on my wd0 after i choosed wd1 in
>instalation options.

sysinstall uses its own libdisk.  Jordan's goal is it to have
sysinstall doing all this stuff also in a running system.  I'm always
using the following for a dedicated disk (i.e., one that will never
see anything else than FreeBSD):

o ignore fdisk
o create a disktab entry, starting at block 0.
o disklabel -B -r -w [sw]d[0-9]
o newfs everything

This will put the FreeBSD disklabel and bootstrap right at the
beginning of the disk, hence you don't have to muck with the geometry.

>The data for partition 1 is:
>sysid 165,(FreeBSD/NetBSD/386BSD)
>    start 0, size 2503872 (1222 Meg), flag 0
>        beg: cyl 0/ sector 0/ head 0;
>        end: cyl 435/ sector 63/ head 15

>Could anyone show what the /etc/disktab entry should look like to have one
>big BSD partition on the disk ??? I've tried to construct it by myself byt
>it did not work.

foodisk|The very Foo disk:\
	:ty=winchester:dt=IDE:su#2503872:\
	:nc#2484:nt#16:ns#63:\
	:oc#0:pc#2503872:\
	:oe#0:pe#2503872:te=4.2BSD:be#8192:fe#1024:

For an entry covering the entire disk and establishing a single
partition `e'.  The nc, nt, ns figures might even be optional, given
that su ist there.
-- 
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. ;-)