Date: Sun, 09 Jan 2011 11:15:02 -0600 From: Tom Judge <tom@tomjudge.com> To: Daniel Braniss <danny@cs.huji.ac.il> Cc: freebsd-hackers@freebsd.org, luigi@freebsd.org Subject: Re: sys/boot/boot0/boot0.S - r186598 Message-ID: <4D29ED16.7030401@tomjudge.com> In-Reply-To: <E1PbsfL-0009ky-QP@kabab.cs.huji.ac.il> References: <4D295820.20807@tomjudge.com> <E1PbsfL-0009ky-QP@kabab.cs.huji.ac.il>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D29ED16.7030401>