From owner-freebsd-stable@FreeBSD.ORG Sat Oct 11 10:19:40 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E64B41065688 for ; Sat, 11 Oct 2008 10:19:40 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA07.emeryville.ca.mail.comcast.net (qmta07.emeryville.ca.mail.comcast.net [76.96.30.64]) by mx1.freebsd.org (Postfix) with ESMTP id CC0268FC23 for ; Sat, 11 Oct 2008 10:19:40 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA11.emeryville.ca.mail.comcast.net ([76.96.30.36]) by QMTA07.emeryville.ca.mail.comcast.net with comcast id RN5F1a00B0mlR8UA7NKgj3; Sat, 11 Oct 2008 10:19:40 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA11.emeryville.ca.mail.comcast.net with comcast id RNKf1a0062P6wsM8XNKgUV; Sat, 11 Oct 2008 10:19:40 +0000 X-Authority-Analysis: v=1.0 c=1 a=aF8itEjFXtYA:10 a=WajsUGvjCVMA:10 a=QycZ5dHgAAAA:8 a=a2y2hm7STSjB3qYWT3YA:9 a=xcnXZJRyaJY3fJd0xUMA:7 a=8-1vyGuMUgngCekqeLBIuDxRD7kA:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id A366CC9419; Sat, 11 Oct 2008 03:19:39 -0700 (PDT) Date: Sat, 11 Oct 2008 03:19:39 -0700 From: Jeremy Chadwick To: Brian Message-ID: <20081011101939.GB58119@icarus.home.lan> References: <48F02B9D.8030300@brianwhalen.net> <48F03872.7050309@brianwhalen.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48F03872.7050309@brianwhalen.net> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-stable@freebsd.org Subject: Re: details on sata issues and mountroot prompt X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Oct 2008 10:19:41 -0000 On Fri, Oct 10, 2008 at 10:24:02PM -0700, Brian wrote: > Brian wrote: >> I have previously written about a mountroot prompt, here are some details. >> I have a system with an asus m3a78-emh hdmi board, a 74 gig raptor >> drive, and a dual core amd am2 cpu. I have had this result with both >> the amd64 and i386 systems. My steps were all conducted today as >> follows. >> >> install 7.0 release >> run freebsd-update >> get src tree >> build world >> build and install kernel >> reboot and be greeted by a mountroot prompt. >> >> It appears the drive numbering changed. /etc/fstab has the drive >> partitions with the number 5, the subsequent reboot got me a number 8. >> >> This is a test system not doing anything, so I can kick it any which >> way to test stuff. >> >> Brian Whalen > > I see that I could probably address it with something like this. > > ed /etc/fstab > 1,$s/ad5/ad8/ > w > q I see. So the problem really isn't that your machine locks up or crashes at the mountroot prompt, it's that the SATA drive IDs changed between 7.0-RELEASE and 7.1-PRERELEASE. This is probably because support for some piece of your system was added to FreeBSD, and now the SATA interface refers to the drives in a different order. Possibly your board has support for AHCI which did not work with older FreeBSD 7.0 but now does with 7.1. I see it when doing things like enabling "Compatible" mode in the BIOS for SATA chips, or when toggling between AHCI and SATA Enhanced mode. I've also seen it when adding an ATA/SATA controller to the system (I just dealt with this on my home FreeBSD box not more than 2 weeks ago). You just type in the new root slice **once**, mount all the filesystems by hand (/usr, /var, etc.) so that you can get vi working (or use ed(1) as you stated), make the changes to /etc/fstab, and reboot. I forget how exactly FreeBSD determines what the root disk/slice is, so whenever I deal with this, I run "bsdlabel -B" on the disk slice, e.g. "bsdlabel -B ad8s1". Do NOT run it on the disk ("ad8") unless you are using dangerously dedicated mode (please don't). -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |