From owner-freebsd-current Sun Jan 12 15:37:53 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A89437B405; Sun, 12 Jan 2003 15:37:51 -0800 (PST) Received: from area51.slashnet.org (area51.slashnet.org [209.150.98.86]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F58443F85; Sun, 12 Jan 2003 15:37:43 -0800 (PST) (envelope-from smkelly@zombie.org) Received: from edgemaster.zombie.org (ip68-13-64-165.om.om.cox.net [68.13.64.165]) by area51.slashnet.org (Postfix) with ESMTP id 85E3149F1F; Sun, 12 Jan 2003 18:37:37 -0500 (EST) Received: by edgemaster.zombie.org (Postfix, from userid 1001) id 8C5CA4160C; Sun, 12 Jan 2003 17:37:36 -0600 (CST) Date: Sun, 12 Jan 2003 17:37:36 -0600 From: Sean Kelly To: phk@freebsd.org Cc: "Andrey A. Chernov" , current@freebsd.org Subject: Re: GEOM prevents bootblocks writing Message-ID: <20030112233736.GA63033@edgemaster.zombie.org> References: <20030112113303.GA1056@edgemaster.zombie.org> <5336.1042372186@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UlVJffcvxoiEqYs2" Content-Disposition: inline In-Reply-To: <5336.1042372186@critter.freebsd.dk> User-Agent: Mutt/1.5.3i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --UlVJffcvxoiEqYs2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jan 12, 2003 at 12:49:46PM +0100, phk@freebsd.org wrote: > In message <20030112113303.GA1056@edgemaster.zombie.org>, Sean Kelly writ= es: >=20 > >Since I haven't seen any response to this, I'll "me too" it in hopes that > >it will get some attention drawn to it. >=20 > boot0cfg and fdisk should work as advertised. edgemaster# boot0cfg -B ad1 boot0cfg: /dev/ad1: ioctl DIOCSMBR: Operation not permitted edgemaster# fdisk -B ad1 =2E.. fdisk: can't write fdisk partition table: Operation not permitted edgemaster# disklabel -B ad1s1 partition c: partition extends past end of unit Warning, partition c doesn't start at 0! Warning, An incorrect partition c may cause problems for standard system ut= ilities partition f: partition extends past end of unit I've tried doing fdisk and boot0cfg even in singleuser with / mounted readonly. Is this really the way it is supposed to work? I do not remember it behaving like this pre-GEOM. > There is an erratum on "disklabel -B" for 5.0-RELEASE. So how the hell do I make it so I can boot my system again? I don't know what I/it did to make it no longer boot, but I can't. Boot0 shows me a list "F1 FreeBSD, F5 Disk 1". If i choose F1, it just beeps at me. I don't even know why it is beeping at me, because that same FreeBSD partition/slice mounts and works if booted via other methods. --=20 Sean Kelly | PGP KeyID: D2E5E296 smkelly@zombie.org | http://www.zombie.org --UlVJffcvxoiEqYs2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+Ifw/Pm7A9NLl4pYRAlZbAKDB1ivZQ/h6A29meKsflWwhjyI39QCfXVPR 7Ss8R6tJf5v0tihMQrSpKxQ= =Z9nK -----END PGP SIGNATURE----- --UlVJffcvxoiEqYs2-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message