From owner-freebsd-stable@FreeBSD.ORG Tue Jan 13 02:13:10 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 38A6416A4CE for ; Tue, 13 Jan 2004 02:13:10 -0800 (PST) Received: from redix.it (host49-169.pool8172.interbusiness.it [81.72.169.49]) by mx1.FreeBSD.org (Postfix) with SMTP id A79D443D2D for ; Tue, 13 Jan 2004 02:13:05 -0800 (PST) (envelope-from roberto@redix.it) Received: (qmail 26109 invoked by uid 72); 13 Jan 2004 10:13:02 -0000 Received: from 192.168.0.77 (SquirrelMail authenticated user roberto) by mail.redix.it with HTTP; Tue, 13 Jan 2004 11:13:02 +0100 (CET) Message-ID: <1103.192.168.0.77.1073988782.squirrel@mail.redix.it> Date: Tue, 13 Jan 2004 11:13:02 +0100 (CET) From: roberto@redix.it To: freebsd-stable@freebsd.org User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal Subject: #2 - Swapped disks and now stuck in the mountroot> prompt X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jan 2004 10:13:10 -0000 Date: 12 jan 2004 I've installed FreeBSD 4.9 on a ide0:0 (primary IDE, master hd) then ported the hard disk on a second PC and installed as ide1:0 (secondary IDE, master hd) without update the "/etc/fstab" file. When booting the kernel start probing devices, I see the disk as "ad2" then the kernel halts when trying to mount the root file system with the following message: mount root from ufs:/dev/ad0s1a root mount failed: 6 At the prompt I've tried with "ufs:/dev/ad2s1a", now the right device, but it does not work. The solution is to instruct the kernel with the right device: but ad2s1a seems to be wrong... After several attempts I discover that the kernel must be started with the option "-a": with this flag the device "ufs:/dev/ad2s1a" is accepted by "mountroot> " and the boot proceed. Than I can change the fstab accordingly to make the change permanent. My question are: 1) I've made any mistake ? 2) Without the boot "-a" flag, why the kernel ask me a device and even it is the correct one vfs_conf.c:vfs_mountroot_ask() give me the error code 6? Thanks Roberto