Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Oct 2002 22:32:46 +0300
From:      Giorgos Keramidas <keramida@freebsd.org>
To:        Hillery <rhillery@hawksi.org>
Cc:        questions@freebsd.org
Subject:   Re: booteasy & mbr
Message-ID:  <20021013193246.GF10829@hades.hell.gr>
In-Reply-To: <200210112339.36974.hawk@redtail.bakerst>
References:  <200210112339.36974.hawk@redtail.bakerst>

next in thread | previous in thread | raw e-mail | index | archive | help

--2oS5YaxWCcQjTEyO
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2002-10-11 23:41, Hillery <rhillery@hawksi.org> wrote:
> Somewhere on the site or in those books I found a blurb on how to
> modify the text that spits out "F1 DOS & F2 BSD " lines in pre-boot
> (before BTX takes over -- so boot) or boot1?)

That's boot0.  You can modify the labels that are printed by editing
the source code of /boot/boot0 in /usr/src/sys/boot/i386/boot0/boot0.s
and adding your own labels.  This is not a trivial thing to do though,
and you should definitely get acquainted with booting from another
medium (like, an installation CDROM) and save backup copies of your
partition tables, before messing around with boot0.

Look near lines 359-400 in /usr/src/sys/boot/i386/boot0/boot0.s for
the place where the valid partition types and their labels are
defined:

   359  tables:
   360  #
   361  # These entries identify invalid or NON BOOT types and partitions.
   362  #
   ...
   386  #
   387  # And here are the strings themselves. 0x80 or'd into a byte indica=
tes
   388  # the end of the string. (not so great for Russians but...)
   389  #
   390  os_misc:        .ascii "?";    .byte '?'|0x80
   391  os_dos:         .ascii "DO";   .byte 'S'|0x80
   392  os_unix:        .ascii "UNI";  .byte 'X'|0x80
   393  os_linux:       .ascii "Linu"; .byte 'x'|0x80
   394  os_freebsd:     .ascii "Free"
   395  os_bsd:         .ascii "BS";   .byte 'D'|0x80

--=20
keramida@FreeBSD.org       FreeBSD: The Power to Serve
FreeBSD 5.0-CURRENT #12: Thu Oct 10 21:08:38 EEST 2002

--2oS5YaxWCcQjTEyO
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE9qcpd1g+UGjGGA7YRAk0yAJ9u1csh/egkjIm/uqLtyxHuPrAQ+gCfatMm
cJub5OR7tcw4nP5LYtGAsCs=
=+q1m
-----END PGP SIGNATURE-----

--2oS5YaxWCcQjTEyO--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021013193246.GF10829>