docs/155989: Fix offset in boot.config(5)

Garrett Cooper yanegomi at
Mon Mar 28 08:50:12 UTC 2011

>Number:         155989
>Category:       docs
>Synopsis:       Fix offset in boot.config(5)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 28 08:50:10 UTC 2011
>Originator:     Garrett Cooper
>Release:        CURRENT
The following is patch fixes the documentation for boot.config(5) as the indexes are incorrect per boot(8):

    bios_drive:interface(unit,[slice,]part)filename [-aCcDdghmnPprsv]
            Specify boot file and flags.

                    The drive number as recognized by the BIOS.  0 for the
                    first drive, 1 for the second drive, etc.

I submitted it directly to danger@, but he suggested I create a PR for it.


Patch attached with submission follows:

Index: share/man/man5/boot.config.5
--- share/man/man5/boot.config.5	(revision 220091)
+++ share/man/man5/boot.config.5	(working copy)
@@ -80,18 +80,19 @@
 The command:
 .Bd -literal -offset indent
-# echo "1:ad(1,a)/boot/loader" > /boot.config
+# echo "0:ad(1,a)/boot/loader" > /boot.config
 will instruct the second stage of
 .Xr boot 8
-on the first disk to boot with the third
-.Xr boot 8
-stage from the second disk.
+located on the second disk recognized by the BIOS, to boot via
+.Xr loader 8
+located on the first partition of the second non-floppy, non-SCSI disk
+recognized by the BIOS.
 The command:
 .Bd -literal -offset indent
-# echo "1:ad(1,a)/boot/loader -P" > /boot.config
+# echo "0:ad(1,a)/boot/loader -P" > /boot.config
 will do both of the above.


More information about the freebsd-doc mailing list