From owner-freebsd-questions Sun Nov 24 00:30:11 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA03914 for questions-outgoing; Sun, 24 Nov 1996 00:30:11 -0800 (PST) Received: from gatekeeper.barcode.co.il (gatekeeper.barcode.co.il [192.116.93.17]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id AAA03909 for ; Sun, 24 Nov 1996 00:30:05 -0800 (PST) Received: (from smap@localhost) by gatekeeper.barcode.co.il (8.7.5/8.6.12) id KAA05981; Sun, 24 Nov 1996 10:29:40 +0200 (IST) X-Authentication-Warning: gatekeeper.barcode.co.il: smap set sender to using -f Received: from localhost.barcode.co.il(127.0.0.1) by gatekeeper.barcode.co.il via smap (V1.3) id sma005979; Sun Nov 24 10:29:22 1996 Message-ID: <32980735.387F@barcode.co.il> Date: Sun, 24 Nov 1996 10:28:37 +0200 From: Nadav Eiron X-Mailer: Mozilla 2.02 (X11; I; SunOS 5.5 sun4m) MIME-Version: 1.0 To: Clayton Carney <72271.3671@CompuServe.COM> CC: support Subject: Re: Can't mount root (3) References: <961123215210_72271.3671_CHU126-1@CompuServe.COM> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Clayton Carney wrote: > > Hi, > > Well, I've made some progress but still have a serious problem. Following one > of the suggestions given, I rebuild the kernel to address the problem of booting > from wd2 (second drive, second controller). The pertinent lines in kernel file > are as follows: > > config kernel root on wd1 > > options ATAPI > > controller wdc0 ... > disk wd0... > device wcd0... > > controller wdc1... > disk wd1... > > This accurately reflects my hardware setup (hard drive and CD on IDE controller > 0/hard drive on IDE controller 1). In fact, as the system boots and probes, it > speeds thru the hardware. Previously, there were considerable pauses occurring > as the drives were being probed. Now however, the following appears after > probing: > > swapon: /dev/wd2s1b: Device not configured > Automatic reboot in progress... > Can't open /dev/rwd2a: Device not configured > /dev/rwd2a: CAN'T CHECK FILE SYSTEM. > /dev/rwd2a: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. > Automatic file system check failed... help! > > Let me echo that request: Help!!! I kinda understand what's happening here; wd2 > has now become wd1 (due to a problem in the way BIOS numbers drive, or so I > gather) and for some reason the system is looking for its goodies on wd2, right? > Question is: how do I get the system to start looking at wd1 instead?! Let me > perhaps complicate the problem by stating that the shell is the only thing that > seems to work; I can't get into a text editor. The thing you need to do is edit the file /etc/fstab. I take it you did get your old kernel to boot (using the 1:wd(2,a) trick), so I'd suggest you'd boot that to edit the file. This way you'll have your system back (assuming you didn't delete the old kernel this would mean typing: 1:wd(2,a)/kernel.old at the boot: prompt). In /etc/fstab replace all references to wd2 with wd1. If you can't get you system to boot normnally, type -s at the boot: prompt, which will get you to single user mode. >From there, mount /usr manually, and use whatever utiulity you fancy to replace all occurances of wd2 in /etc/fstab with wd1. > > I could use a DETAILED description (please remember, I know DOS and Windows > forward and backwards; but UNIX is completely new to me) of how to go about > correcting this problem. > > Many thanks in advance, especially to the many who have already help me so far. > I realize this is all volunteer support and I would have given up long ago > without the help... > > Thanks :) > > Clayton Carney Nadav