Re: Aenderung der Eintraege in boot0

From: Oliver Fromme <olli(at)secnetix.de>
Date: Wed, 13 Aug 2003 13:41:15 +0200 (CEST)

Markus Brueffer <brueffer(at)phoenix-systems.de> wrote:
> On Wednesday 13 August 2003 11:56, Sven Pfeifer wrote:
> > bin noch ziemlich neu in BSD und mit meinem Latein schon am Ende.
> > Habe hier eine DualBoot-Installation WinXP und FreeBSD 5.0. Wenn ich
> > den Rechner starte stehen im "Bootmenue" folgende Eintraege:
> >
> > ---8<---
> > F1 ??
> > F2 FreeBSD
> > --->8---
> >
> > Jetzt wuesste ich gerne, ob eine Moeglichkeit besteht, diese zwei
> > Fragezeichen durch den Eintrag Windoze zu ersetzen. Eine Suche im
> > Verzeichnis /boot brachte leider keinen Erfolg. Wuerde mich freuen,
> > wenn mir jemand helfen kann.
>
> Leider kurz und bündig: Nein

Folgenden Patch in /usr/src/sys/boot/i386/boot0 applien:

--- boot0.s.orig Tue Dec 19 01:32:19 2000
+++ boot0.s Wed Aug 13 13:32:05 2003
@@ -387,7 +387,7 @@
 # And here are the strings themselves. 0x80 or'd into a byte indicates
 # the end of the string. (not so great for Russians but...)
 #
-os_misc: .ascii "?"; .byte '?'|0x80
+os_misc: .ascii "X"; .byte 'P'|0x80
 os_dos: .ascii "DO"; .byte 'S'|0x80
 os_unix: .ascii "UNI"; .byte 'X'|0x80
 os_linux: .ascii "Linu"; .byte 'x'|0x80

Dann »make install« sagen, dann »boot0cfg -B ad0«. Fertig.

Das ersetzt die beiden Fragezeichen durch »XP«. Für den
String »Windoze« wäre sogar auch noch Platz (ein paar Bytes
sind noch frei), aber dafür schüttle ich den Patch lieber
nicht so aus dem hohlen Handgelenk, ohne die Möglichkeit,
ihn testen zu können.

Gruß
   Olli

-- 
Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.
"Microsoft is a cross between The Borg and the Ferengi.  Unfortunately
they use Borg to do their marketing and Ferengi to do their programming."
To Unsubscribe: send mail to majordomo.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Wed 13 Aug 2003 - 13:42:10 CEST

search this site