Date: Wed, 2 Dec 1998 13:44:36 +0000 From: Ben Smithurst <ben@scientia.demon.co.uk> To: freebsd-questions@FreeBSD.ORG Subject: kernel uses wrong root device Message-ID: <19981202134436.A301@scientia.demon.co.uk>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981202134436.A301>
