From owner-freebsd-questions Fri Jun 27 00:04:50 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id AAA08008 for questions-outgoing; Fri, 27 Jun 1997 00:04:50 -0700 (PDT) Received: from gatekeeper.barcode.co.il (gatekeeper.barcode.co.il [192.116.93.17]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id AAA07989 for ; Fri, 27 Jun 1997 00:04:41 -0700 (PDT) Received: (from nadav@localhost) by gatekeeper.barcode.co.il (8.8.5/8.6.12) id KAA24123; Fri, 27 Jun 1997 10:04:01 +0300 (IDT) Date: Fri, 27 Jun 1997 10:04:01 +0300 (IDT) From: Nadav Eiron To: Matthew Hunt cc: freebsd-questions@FreeBSD.ORG Subject: Re: Root on secondary master IDE drive In-Reply-To: <199706270058.UAA20895@townhouse.dyn.ml.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Thu, 26 Jun 1997, Matthew Hunt wrote: > I helped to setup FreeBSD 2.2.2 on a friend's computer today. It has > Windows on wd0, no wd1, and FreeBSD on wd2. > > We can boot FreeBSD from the boot prompt using: > > 1:wd(2,a)/kernel > > Then everything's fine. In order to make the root device wd2a > permanently, I did the obvious: > > config kernel root on wd2 > > I have confirmed that config parsed it correctly, because in the > compile directory we have a swapkernel.c with: > > dev_t rootdev = makedev(0, 0x00000010); /* wd2a */ > > However, on booting the new kernel (yes, it is the new kernel) tries > to mount wd1a, which doesn't exist. Obviously, it panics. > > Anybody have any ideas? If it wants it to be wd1, make it wd1! Edit the kernel config file, comment out the original wd1 line, change the wd2 line to read wd1 and change all references to wd2 in /etc/fstab to refer to wd1. This will make the second drive known to the system as wd1 and all should be well. > > Thanks. > > -- > Matthew Hunt * Think locally, act globally. > Nadav