Re: sys/boot/boot0/boot0.S - r186598



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.

arguable, since it used to work.


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.

the problem is not as simple as it looks, and I don't have all the answers, but after spendig much time on this, it seems that not all BIOSes behave
in a 'standard way' :-)

danny


_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: sys/boot/boot0/boot0.S - r186598
    ... Hi Danny, ... The bug does not seem to be in boot0cfg as: ... never designed to change the active partition. ...
    (freebsd-hackers)
  • Re: John Resig has a new idea
    ... bugfixing minor versions of JQuery 1.3 shows that the testing that was ... "Danny" is right. ... The bug report boiled down to the observation that when a 'collection' ...
    (comp.lang.javascript)
  • Re: John Resig has a new idea
    ... The very short intervals between releases of bugfixing minor versions of JQuery 1.3 shows that the testing that was in place for its creation has not proved up to the task of facilitating the smooth release of a new version. ... | From: Danny ... The bug report boiled down to the observation that when a 'collection' object that was empty was processed through JQuery's - each - method an error was thrown. ...
    (comp.lang.javascript)
  • Re: Delphi Bugs
    ... Danny "stupid", but reading the article you discover there ... Is Linux community to blame for not adding that specific thing? ... They state that any bug found can be fixed and make into the ... They could add a CUSTOM LOADER, ...
    (borland.public.delphi.non-technical)
  • Re: Floating point run time error
    ... between immediate and run time in how the expressions are evaluated, ... the "bug" was elsewhere. ... Danny ... Remove NOSPAMFOR before emailing.) ...
    (microsoft.public.vb.syntax)