From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 9 17:15:10 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7413B1065673; Sun, 9 Jan 2011 17:15:10 +0000 (UTC) (envelope-from tom@tomjudge.com) Received: from tomjudge.vm.bytemark.co.uk (tomjudge.vm.bytemark.co.uk [80.68.91.100]) by mx1.freebsd.org (Postfix) with ESMTP id 2D2A38FC15; Sun, 9 Jan 2011 17:15:09 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by tomjudge.vm.bytemark.co.uk (Postfix) with ESMTP id 1DAD511C03B; Sun, 9 Jan 2011 17:15:09 +0000 (GMT) X-Virus-Scanned: Debian amavisd-new at tomjudge.vm.bytemark.co.uk Received: from tomjudge.vm.bytemark.co.uk ([127.0.0.1]) by localhost (tomjudge.vm.bytemark.co.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id A-d4I75s0JMw; Sun, 9 Jan 2011 17:15:06 +0000 (GMT) Received: from 192-168-200-57.lan.tj.home.tomjudge.com (unknown [192.168.200.57]) by tomjudge.vm.bytemark.co.uk (Postfix) with ESMTP id D2E9611C03A; Sun, 9 Jan 2011 17:15:05 +0000 (GMT) Message-ID: <4D29ED16.7030401@tomjudge.com> Date: Sun, 09 Jan 2011 11:15:02 -0600 From: Tom Judge User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: Daniel Braniss References: <4D295820.20807@tomjudge.com> In-Reply-To: X-Enigmail-Version: 1.1.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig0AE178BF2380C8CAA3249E0C" Cc: freebsd-hackers@freebsd.org, luigi@freebsd.org Subject: Re: sys/boot/boot0/boot0.S - r186598 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Jan 2011 17:15:10 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig0AE178BF2380C8CAA3249E0C Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 09/01/2011 04:38, Daniel Braniss wrote: >> There was a post on the embedded list that suggested this work around:= >> echo 'a 2' | fdisk -f /dev/stdin ad0 >> boot0cfg -s 2 ad0 >> >> There are 2 issues with this: >> 1) It can't be done without setting kern.geom.debugflags to 0x10. >> 2) It resulted in most/all commands resulting in the error message >> "Device not configured" including the second command and 'shutdown -r = now=3D >> '. >> >> Both of which leave this really work around fairly broken. > the problem is that boot0cfg -s does NOT update the boot block, it fail= s! > the work around is: > boot0cfg -s -t n dev > then > gpart set -a active -i n dev > > danny > Hi Danny, The bug does not seem to be in boot0cfg as: 1) It succeeds to write the new configuration to the boot block every time i have tried. 2) It does not touch the partition table at all only the mbr, so it was never designed to change the active partition. If this is not a bug in boot0 then its a bug in the man pages for boot0cfg as it does make reference to having to change the active slice to make this work. Tom --------------enig0AE178BF2380C8CAA3249E0C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJNKe0ZAAoJEMSwVS7lr0OdtV0H/jYzpqLDbtz6GtNahPHZZURL XqE/JQDRJHbDpcVW407N1Y00Z9M6tnOZAh/F6pVVeSdmHTNE6Jd3bM8F699hIhby ib63Zg0MXHGYY4VuMJiVIEbFWr2C9OFHsldDdMQQ3/PXzjK0CIVXKnRy4KIxxtDi gPK0PBLSpe6jzJ6HAg8Wk6sXxYMnqUtTXGKugcxeh1Q9IhwvO9acrU241yK9NIoq kFPfuxQ5xU8T/FwcG+xaMj7DvBo2ymayiDgPXrSxU9TCbr5YIU/GO6KfwhEt/OGh inGxUWgy5WxVgvHSIqOF/v9OoiGwqTzXPAHRIQB+vkdZd93675VbCRHReL8YueY= =dsWc -----END PGP SIGNATURE----- --------------enig0AE178BF2380C8CAA3249E0C--