From owner-freebsd-questions Wed Dec 2 07:13:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA02159 for freebsd-questions-outgoing; Wed, 2 Dec 1998 07:13:17 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from alcatel.fr (news.alcatel.fr [194.133.58.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA02146 for ; Wed, 2 Dec 1998 07:13:03 -0800 (PST) (envelope-from Thierry.Herbelot@alcatel.fr) From: Thierry.Herbelot@alcatel.fr Received: from alcatel.fr (gatekeeper-ssn.alcatel.fr [155.132.180.244]) by mailgate.alcatel.fr (ALCANET/SMTP) with ESMTP id RAA16415; Wed, 2 Dec 1998 17:11:45 +0100 Received: from lune.telspace.alcatel.fr (lune.telspace.alcatel.fr [155.132.144.65]) by aifhs2.alcatel.fr (ALCANET/SMTP2) with ESMTP id QAA12352; Wed, 2 Dec 1998 16:10:45 +0100 (MET) Received: from telss1 (telss1.telspace.alcatel.fr [155.132.51.4]) by lune.telspace.alcatel.fr (8.9.1a/8.9.1) with SMTP id PAA05493; Wed, 2 Dec 1998 15:51:52 +0100 (MET) Received: from telspace.alcatel.fr by telss1 (4.1/SMI-4.1) id AA28130; Wed, 2 Dec 98 15:56:03 +0100 Received: from localhost by telspace.alcatel.fr with SMTP (1.40.112.12/16.2) id AA275850113; Wed, 2 Dec 1998 15:48:33 +0100 X-Openmail-Hops: 1 Date: Wed, 2 Dec 98 15:40:12 +0100 Message-Id: In-Reply-To: <19981202134436.A301@scientia.demon.co.uk> Subject: Re : kernel uses wrong root device Mime-Version: 1.0 To: ben@scientia.demon.co.uk Cc: freebsd-questions@FreeBSD.ORG Content-Type: text/plain; charset=US-ASCII; name="Re" Content-Disposition: inline; filename="Re" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 > #include > > 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