From owner-freebsd-current Wed Feb 17 20:39: 3 1999 Delivered-To: freebsd-current@freebsd.org Received: from dingo.cdrom.com (castles71.castles.com [208.214.165.71]) by hub.freebsd.org (Postfix) with ESMTP id BC26B11297 for ; Wed, 17 Feb 1999 20:38:58 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (LOCALHOST [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id UAA03009; Wed, 17 Feb 1999 20:34:21 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Message-Id: <199902180434.UAA03009@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Matthew Dillon Cc: Gianmarco Giovannelli , current@FreeBSD.ORG Subject: Re: panic mount root failed In-reply-to: Your message of "Wed, 17 Feb 1999 17:49:41 PST." <199902180149.RAA13438@apollo.backplane.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 17 Feb 1999 20:34:21 -0800 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > :Env: > : > :Yesterday I went to a friends house for installing a box from the freebsd > :3.0-release cdrom (I have also the src and obj very current on another cd > :to do a quick make installword :-). > : > :He has : > :1 hd master (A) + 1 cdrom slave on primary ch. > :1 hd master (B) + 1 zip atapi slave on secundary ch. > : > :on (A) there is a primary win98 partition. on (B) there is a fat partition > :on wd2s1 and a freebsd installation on wd2s2a. > : > :The installation procedure was fine, but at the next reboot it can't mount > :the root fs because it tries to mount / on wd1s2a even if in /etc/fstab > :there is wd2s2a ! I think it is a problem related to the fact that the > :cdrom make confusion on the routine that have to find the hd & slice number... > : > :everything was fine after adding a boot config with 1:wd(2,a)kernel > : > :Is it a known problem or I miss something ? > : > Look at the disklabel for wd2s2. If the 'disk:' field in the label > says wd1 that may be your problem. It's amazing how many folk remedies people come up with for this one, regardless of the number of times it's solved correctly. So, for everyone bothering to read this, here it is again: You have two IDE disks, wd0 and wd2. You have two BIOS disk devices, 0x80 and 0x81. FreeBSD can't tell that the disk you're booting from (0x81) is actually wd2 without some help. For 3.0 and earlier systems, you would use 1:wd(2,a)kernel at the boot: prompt. For 3.1 and later systems, use: set root_disk_unit=2 at the loader prompt. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message