Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Dec 98 15:40:12 +0100
From:      Thierry.Herbelot@alcatel.fr
To:        ben@scientia.demon.co.uk
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re : kernel uses wrong root device
Message-ID:  <H000057c01a9646c@MHS>
In-Reply-To: <19981202134436.A301@scientia.demon.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello,

As you have two disks, do you have installed booteasy on both drives (or
do you use another boot method ?) ?
With booteasy, you've got a first chice :
F1 : whatever (usually DOS)
.. other partitions
F5 : second disk
then on the second disk another choice :
F1 : BSD 
F5 : first disk

	HTH
	TfH
> hi,
> 
> I've just built a new kernel, with the line:
> 
> config kernel root on wd2
> 
> Then I boot from that, typing "1:wd(2,a)/boot/loader" at the first boot
> prompt and then "boot kernel.wd2" at the boot loader prompt (kernel.wd2
> is the new kernel).  All works fine, until it says something along the
> lines of
> 
> changing root device to wd1a
> changing root device to wd1s1a
> panic: can't mount root
> 
> Sorry I can't remember the exact messages, but it was pretty similar to
> that. I tried `config kernel root on wd2s1a' (which made no difference)
> and then swapkernel.c in the compile directory contained:
> 
> #include <sys/param.h>
> #include <sys/conf.h>
> 
> dev_t	rootdev = makedev(0, 0x00020010);		/* wd2s1a */
> dev_t	dumpdev = NODEV;			/* unconfigured */
> 
> void
> setconf()
> {
> }
> 
> and checking those major/minors with the device node ...
> $ ls -l /dev/wd2s1a
> brw-r-----  1 root  operator    0, 0x00020010 Dec  2 12:53 /dev/wd2s1a
> 
> So that looks right. any idea why the kernel tries to use wd1 instead
> of wd2?  (I don't even have a wd1, just wd0 and wd2 as the primary and
> secondary masters, and wcd0 as the secondary slave, but I doubt that
> would affect this.) Is something going wrong with the device
major/minor
> numbers or something? This is from a last cvsup+buildworld at the
weekend.
> 
> -- 
> Ben Smithurst
> ben@scientia.demon.co.uk
> 
> send a blank message to ben+pgp@scientia.demon.co.uk for PGP key
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?H000057c01a9646c>