changing the boot0 menu

Dan Nelson dnelson at
Mon Feb 23 11:43:30 PST 2004

In the last episode (Feb 23), Alan Freed said:
> I have a specific ?  I use several OS's, and your bootloader finds
> them all; however, it prints a ?? on the screen because they are
> unknown to BSD.  I look at the /boot/boot0 file which contains this
> information, but I don't know how to edit it.  Do you have a way that
> I can edit the menu so that when I select a non-FreeBSD OS I know
> what I'm getting?

It's a very simple boot menu.  It has to fit inside the MBR, so it
can't know about all partition types.  If you want, you can cd to
/sys/boot/i386/boot0/, edit the tables in boot0.s, run "make obj &&
make depend && make && make install" then run "boot0cfg -B da0" to
reinstall the new bootblock into the disk.  If you get an "attempt to
.org backwards" message while compiling, that means you made the
bootblock larger than 512 bytes, and you'll have to remove some of the
other entries in the table.

Note that it just goes by partition type, so it can't tell the
difference between a w2k and a wxp partition, or different linux
partitions.  I suggest using grub from ports if you want a nice
customizeable menu.
> It is going to take me a good week to get everything configured 
> and running, but it seems that this will happen, it will just take 
> time.  
> You really need to get teTeX in your Ports distribution!!!

It's already there: ports/print/teTex

	Dan Nelson
	dnelson at

More information about the freebsd-questions mailing list