*BSD News Article 92280


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: Problems mounting root
Date: Sun, 30 Mar 1997 12:26:49 +1000
Organization: On the Net (ISP on the Gold Coast, Australia)
Lines: 92
Message-ID: <333DCF69.1E74@OntheNet.com.au>
References: <01bc3abe$5e2aed00$f629e5c2@compaq.webguide.nl>
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: Andre Sjouerman <face@clevercasting.com>
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:38021

Andre Sjouerman wrote:
> 
> Simple question, possibly simple answer...
> 
> I am trying to compile a new kernel. As I boot from a SCSI drive (the
> only one in the machine) I have to change
> 
> config          kernel  root on wd0
> to
> config          kernel  root on sd0

I've done that on a P90 system (2940 SCSI ctlr) and have no problems!

> 
> .. I thought ... but with this setting, it can't mount root, and the
> machine stops. I've got two partitions, one small dos, the other
> freebsd. The bsd one is split into 3 parts, / usr and swap:
> 
>   a:    65536        0    4.2BSD        0     0     0   # (Cyl.    0 -
> 4*)
>   b:   287680    65536      swap                        # (Cyl.    4*-
> 21*)
>   c:  4176900        0    unused        0     0         # (Cyl.    0 -
> 259)
>   e:  3823684   353216    4.2BSD        0     0     0   # (Cyl.   21*-
> 259*)
> 

The above looks ok...

> config          kernel  root on sd0a
> 
> doesn't work either.
> 
> config          kernel  root on sd0s2

Is your FreeBSD disk slice #2 (they are numbered 0..3) ???

What is the contents of your "/etc/fstab" file?  Mine is-

# Device                Mountpoint      FStype  Options         Dump   
Pass#
/dev/sd0s1b             none            swap    sw              0      
0
/dev/sd0a               /               ufs     rw              1      
1
/dev/sd0s1e             /usr            ufs     rw              1      
1
proc                    /proc           procfs  rw              0      
0

Also, fdisk reports-

gunsynd# fdisk sd0
******* Working on device /dev/rsd0 *******
parameters extracted from in-core disklabel are:
cylinders=1001 heads=64 sectors/track=32 (2048 blks/cyl)

parameters to be used for BIOS calculations are:
cylinders=1001 heads=64 sectors/track=32 (2048 blks/cyl)

Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 0 is:
sysid 165,(FreeBSD/NetBSD/386BSD)
    start 32, size 2050016 (1000 Meg), flag 80
        beg: cyl 0/ sector 1/ head 1;
        end: cyl 1000/ sector 32/ head 63
The data for partition 1 is:
<UNUSED>
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>

> 
> doesn't work either.
> 
> As the machine is at a remote location, I cannot 'just test it'.
> 
> Who can tell me how to 'just do it' ?

Probably no one...  you need to work this out yourself with a few
suggestion
from others!!!

> 
> Thanks,
> 
> Taco Scargo
> 
Tony