From owner-freebsd-questions Sat Nov 23 18:33:25 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id SAA23863 for questions-outgoing; Sat, 23 Nov 1996 18:33:25 -0800 (PST) Received: from eduserv.its.unimelb.EDU.AU (s_koyin@eduserv.its.unimelb.EDU.AU [128.250.6.4]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id SAA23858 for ; Sat, 23 Nov 1996 18:33:22 -0800 (PST) Received: (from s_koyin@localhost) by eduserv.its.unimelb.EDU.AU (8.8.3/8.8.3) id NAA14730; Sun, 24 Nov 1996 13:32:50 +1100 (EST) Date: Sun, 24 Nov 1996 13:32:49 +1100 (EST) From: Ivan Ngeow To: Clayton Carney <72271.3671@CompuServe.COM> cc: support Subject: Re: Can't mount root (3) In-Reply-To: <961123215210_72271.3671_CHU126-1@CompuServe.COM> 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 23 Nov 1996, Clayton Carney wrote: > hardware setup OK. > 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. > boot up freebsd with the "-s" option. at the Boot: prompt, type "-s" and press Enter. this will launch you into a shell (/bin/sh) and give you some ability to change a few things. press enter to accept the default shell. once the # prompt appears, mount the root drive: mount /dev/wd1 / then use "ed" to edit the file /etc/fstab. this file contains a list of all the filesystems (including swap) which is automatically mounted at startup. change the appropriate instances of wd2 to wd1. eg, swap should read /dev/wd1s1b instead of /dev/wd2s1b as before. reboot. done! ---- ivan ----