From owner-freebsd-questions Thu Nov 21 8:23:51 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8670837B401; Thu, 21 Nov 2002 08:23:48 -0800 (PST) Received: from andromeda.68k.org (callisto.teisoft.com [12.109.66.145]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6739143E6E; Thu, 21 Nov 2002 08:23:47 -0800 (PST) (envelope-from ayn@AndrewNg.com) Received: from localhost (ayn@localhost [127.0.0.1]) by andromeda.68k.org (8.12.6/8.12.6/Debian-6Woody) with ESMTP id gALGNlID028240; Thu, 21 Nov 2002 11:23:47 -0500 Subject: Re: Boot stuck at F1 after swapping drives From: Andrew Y Ng To: Andy Sparrow Cc: mobile@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG In-Reply-To: <20021121051338.8D7FC27F@CRWdog.demon.co.uk> References: <20021121051338.8D7FC27F@CRWdog.demon.co.uk> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-8GmZe12fTQV09cpDze7v" Organization: AndrewNg.com Message-Id: <1037895820.9394.5.camel@natewks2.ad.newisys.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.0 Date: 21 Nov 2002 10:23:40 -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=-8GmZe12fTQV09cpDze7v Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2002-11-20 at 23:13, Andy Sparrow wrote: > > yeah, i have BIOS in AUTO, I was able to boot to the harddrive with a > > cdrom by using 0:da(0,a)/kernel, but the harddrive's boot0 booter > > couldn't boot it on its own. > >=20 > > Since I can boot to it, the BIOS should have correct setting for the > > drive right? >=20 > IME, it's entirely possible for FreeBSD to have a bogus idea of the=20 > geometry which prevents booting from the drive (the last 5-6 large=20 > drives I've set up on machines with old BIOS'es have done this if I=20 > don't create an M$DOS partition from M$ FDISK first - you can even=20 > delete it in 'sysinstall', it just forces the correct geometry when the=20 > disk is read in 'sysinstall', IIUC), but you can load the boot stuff=20 > just fine from (e.g.) CD-ROM and then boot the kernel off the drive... >=20 > I presume that this is because the BIOS can boot the CD, and the=20 > CD-loaded boot stuff has the same bogus idea of the geometry, and can=20 > then load the kernel That makes sense. >=20 > However, if you have /ever/ booted FreeBSD directly from this HDD, then=20 > this probably isn't what happened (the geometry shouldn't change, and it=20 > was valid once). and Yes, before I swapped drives, I was able to boot FreeBSD without any problems. > For some reason, some part of the boot stuff got lunched, and you=20 > probably just need to re-write it. My firewall box did this once after a=20 > power-cycle, I have no idea why. Right, I think the power management stuff might've screwed up the MBR. I tried rewriting it with boot0cfg per suggestions by Giorgos Keramidas, but no luck. > I don't recall what I did to get around this now, it was either > =20 > disklabel -B da0s1 auto >=20 > or > boot0cfg -d 0x80 >=20 > or something like that... 'man boot' would be a good place to start. :-) >=20 > Disclaimer: it's your disk, not mine. Take appropriate precautions,=20 > including treating the above advice with some caution (I think I was on=20 > 4.4-STABLE when I did the above, but it *was* some time ago)... >=20 > In particular, if I were in your position, I think I'd be inclined to=20 > wait and see if someone chimes in with a response of=20 > "NNNNNNOOOOOOOO!!!!!!!!!" to the above advice :-> Yeah, I booted it off with a CDROM, and I dont reboot my laptop very often, so it's not that bad (not like it's a server or anything). I hoping one of you guys would know what to do. I'm wondering if I can just get rid of the booter, I only have one OS on my FreeBSD drive, so it doesn't really make sense to have a booter with only one option, I don't know, but when I had NetBSD I didn't even have a booter. How do I get right of boot0? --=20 andrew y ng http://andrewng.com fingerprint : 46a1 29ff 893a 0381 dc81 1e1e bed8 e882 9bfc 594c --=-8GmZe12fTQV09cpDze7v Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEABECAAYFAj3dCIwACgkQvtjogpv8WUwMNgCeMR6JA4BcbknismOOhs+zWgd8 ijQAnRSg5wqoikkefz9aQZ7G6R+F0z0U =ZCv1 -----END PGP SIGNATURE----- --=-8GmZe12fTQV09cpDze7v-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message