From owner-freebsd-stable@FreeBSD.ORG Mon Jan 8 22:37:26 2007 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 256D516A407 for ; Mon, 8 Jan 2007 22:37:26 +0000 (UTC) (envelope-from joe@tao.org.uk) Received: from mailhost.tao.org.uk (transwarp.tao.org.uk [87.74.4.34]) by mx1.freebsd.org (Postfix) with ESMTP id 784E813C442 for ; Mon, 8 Jan 2007 22:37:25 +0000 (UTC) (envelope-from joe@tao.org.uk) Received: from genius.tao.org.uk (unknown [202.128.116.208]) by mailhost.tao.org.uk (Postfix) with ESMTP id 1DAE96104 for ; Mon, 8 Jan 2007 22:18:43 +0000 (GMT) Received: by genius.tao.org.uk (Postfix, from userid 1000) id 6CAA240EE; Mon, 8 Jan 2007 22:18:37 +0000 (GMT) Resent-From: joe@genius.tao.org.uk Resent-Date: Mon, 8 Jan 2007 22:18:37 +0000 Resent-Message-ID: <20070108221837.GC1749@genius.tao.org.uk> Resent-To: stable@freebsd.org Date: Sun, 7 Jan 2007 23:20:55 +0000 From: Josef Karthauser To: freebsd-fs@freebsd.org Message-ID: <20070107232055.GA2450@genius.tao.org.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="y0ulUmNC+osPPQO6" Content-Disposition: inline User-Agent: Mutt/1.5.11 Cc: Subject: Trouble booting second ide drive (gmirror configuration). 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: Mon, 08 Jan 2007 22:37:26 -0000 --y0ulUmNC+osPPQO6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I'm scratching my head trying to work out why I can't boot onto my second ide drive at the boot: prompt. I have a perfectly valid partition on it, which I can mount successfully when the system is booted from the other disk, but the boot loader says that the disk label is corrupt. What am I doing wrong? So, here are the details. The machine is a: FreeBSD X 5.5-STABLE FreeBSD 5.5-STABLE #7: Mon Oct 2 15:55:35 BST 2006 joe@X:/usr/obj/usr/src/sys/KERNEL i386 There are two ide drives, ad0 and ad1. # disklabel ad0 # /dev/ad0s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 2097152 0 4.2BSD 2048 16384 28552=20 b: 6291456 2097152 swap =20 c: 240107427 0 unused 0 0 # "raw" part, = don't edit d: 41943040 8388608 4.2BSD 2048 16384 28552=20 e: 41943040 50331648 4.2BSD 2048 16384 28552=20 f: 41943040 92274688 4.2BSD 2048 16384 28552=20 g: 105880000 134217728 4.2BSD 2048 16384 28552=20 # disklabel ad1 # /dev/ad1s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 2097152 16 4.2BSD 2048 16384 28552=20 c: 240099488 0 unused 0 0 # "raw" part, = don't edit disklabel: partition c doesn't cover the whole unit! disklabel: An incorrect partition c may cause problems for standard sys= tem utilities The c partition is the wrong size because this is actually a gmirror partition once gmirror is loaded. However the device /dev/ad1s1a can be mounted without problems: # mount /dev/ad1s1a /mnt # ls /mnt .cshrc SYNC2 data jails root usr .profile bin dev lib sbin var .snap boot dist libexec stand webs COPYRIGHT boot.config entropy mnt sys NEW cdrom etc proc tmp SYNC compat home rescue users So when I boot the machine, and attempt to boot the second drive I get this: FreeBSD/i386 boot Default: 0:ad(0,a)/boot/loader boot: 1:ad(1,1,a)/boot/loaderConsoles: serial port =20 BIOS drive A: is disk0 BIOS drive C: is disk1 BIOS drive D: is disk2 BIOS 640kB/2095040kB available memory FreeBSD/i386 bootstrap loader, Revision 1.1 (joe@X, Fri Apr 29 09:46:27 BST 2005) can't load 'kernel' Type '?' for a list of commands, 'help' for more detailed help. OK show LINES=3D24 acpi_load=3DYES comconsole_speed=3D9600 console=3Dcomconsole currdev=3Ddisk2s1a: hint.acpi.0.oem=3DGBT =20 hint.acpi.0.revision=3D1 hint.acpi.0.rsdt=3D0x7fef3000 interpret=3DOK loaddev=3Ddisk2s1a: prompt=3D${interpret} OK So it manages to load the boot loader from the correct device, but somehow fails when it comes to loading the kernel. I'd really appreciate some suggestions. Thanks, Joe --y0ulUmNC+osPPQO6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iEYEARECAAYFAkWhgFcACgkQXVIcjOaxUBYcNQCdH/oQKeVRQY6KOlNtHH55ifGd Vb4AoMKZXmRxlmMoUFto0MgXwaI1sQzB =aR1E -----END PGP SIGNATURE----- --y0ulUmNC+osPPQO6--