From owner-freebsd-newbies@FreeBSD.ORG Thu Jan 15 11:58:23 2004 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1CE5316A4CE for ; Thu, 15 Jan 2004 11:58:23 -0800 (PST) Received: from prioris.mini.pw.edu.pl (prioris.mini.pw.edu.pl [194.29.178.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3CEC043D6A for ; Thu, 15 Jan 2004 11:58:20 -0800 (PST) (envelope-from G.Czaplinski@prioris.mini.pw.edu.pl) Received: from localhost (localhost.mini.pw.edu.pl [127.0.0.1]) by prioris.mini.pw.edu.pl (Postfix) with ESMTP id 5EEB824398; Thu, 15 Jan 2004 20:58:18 +0100 (CET) Received: by prioris.mini.pw.edu.pl (Postfix, from userid 1368) id 8B24324396; Thu, 15 Jan 2004 20:58:05 +0100 (CET) Date: Thu, 15 Jan 2004 20:58:05 +0100 From: Grzegorz Czaplinski To: roberto@redix.it Message-ID: <20040115195805.GB99131@prioris.mini.pw.edu.pl> References: <1050.192.168.0.77.1074156197.squirrel@mail.redix.it> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0F1p//8PRICkK4MW" Content-Disposition: inline In-Reply-To: <1050.192.168.0.77.1074156197.squirrel@mail.redix.it> User-Agent: Mutt/1.4.1i X-PGP: http://prioris.mini.pw.edu.pl/~gregory/pgp.txt X-URL: http://prioris.mini.pw.edu.pl/~gregory/ X-Voice: +48 600 396 054 X-FreeBSD: Running FreeBSD? - Share the server config! - http://prioris.mini.pw.edu.pl/~gregory/FreeBSD/ X-Virus-Scanned: by AMaViS (prioris) cc: freebsd-newbies@freebsd.org Subject: Re: Swapped disks and now stuck in the mountroot> prompt X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jan 2004 19:58:23 -0000 --0F1p//8PRICkK4MW Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 15, 2004 at 09:43:17AM +0100, roberto@redix.it wrote: >=20 > Date: 15 jan 2004 >=20 > 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. >=20 > 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: >=20 > mount root from ufs:/dev/ad0s1a > root mount failed: 6 >=20 > At the prompt I've tried with "ufs:/dev/ad2s1a", now the right device, but > it does not work. >=20 > The solution is to instruct the kernel with the right device: but ad2s1a > seems to be wrong... >=20 > 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. >=20 Hi, I will try to answer your questions.... ;) > My question are: > 1) I've made any mistake ? No. > 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? I don't know this. Perhaps it's too late to change root to mount from. Cheers, greg -- Grzegorz Czaplinski "The Power to Serve, Right for the Power Users!" - http://www.FreeBSD.org/ Fingerprint: EB77 E19D CFA2 5736 810F 847C A70F A275 2489 469F --0F1p//8PRICkK4MW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQFABvDNpw+idSSJRp8RAt1iAJ4/62m/xtSPoT4LQ1w9f/Nb6lcGFQCgsRyO eapzpqsl1dJkYGHGt5nO480= =5Nfr -----END PGP SIGNATURE----- --0F1p//8PRICkK4MW--