/boot/mbr miscompiled?

Warren Block wblock at wonkity.com
Wed Jun 6 18:18:50 UTC 2007


On Wed, 6 Jun 2007, Pav Lucistnik wrote:

>> Hmm.  The documentation bug was introduced recently in rev. 1.30
>> of boot0cfg.8 (and merged into RELENG_6).  I've just checked on
>> 4.x, 6.x, and 7.0 systems here, and /boot/mbr could never be
>> accepted by boot0cfg(8) because the second signature (the "Drive"
>> string) isn't there.  I've Cc:ed the committer of this change.
>
> And then, trust PRs. I wonder how is it possible that PR got submitted,
> if the example showed in it is totally bogus? Escapes me.
>
> So, should I back out that rev.?

Crap.  Incorrect notes on my part, apparently from switching between 
boot0cfg and fdisk.  Attached is a patch.  My apologies.

-Warren Block * Rapid City, South Dakota USA
-------------- next part --------------
--- boot0cfg.8.old	Wed Jun  6 11:35:48 2007
+++ boot0cfg.8	Wed Jun  6 11:39:42 2007
@@ -89,9 +89,6 @@
 can be used for output to the COM1 port.
 (Be aware that nothing will be output to the COM1 port unless the
 modem signals DSR and CTS are active.)
-Use
-.Pa /boot/mbr
-to revert to non-interactive boot manager.
 .It Fl d Ar drive
 Specify the drive number used by the PC BIOS in referencing the drive
 which contains the specified
@@ -155,8 +152,6 @@
 image
 .It Pa /boot/boot0sio
 Image for serial consoles (COM1,9600,8,N,1,MODEM)
-.It Pa /boot/mbr
-Non-interactive boot MBR image
 .El
 .Sh EXIT STATUS
 .Ex -std
@@ -169,9 +164,11 @@
 .Pp
 .Dl "boot0cfg -m 0x3 ad0"
 .Pp
-To go back to non-interactive booting:
+To go back to non-interactive booting, use
+.Xr fdisk 8
+to install the default MBR:
 .Pp
-.Dl "boot0cfg -B -b /boot/mbr ad0"
+.Dl "fdisk -B -b /boot/mbr ad0"
 .Pp
 .Sh SEE ALSO
 .Xr geom 4 ,


More information about the freebsd-current mailing list