Re: How to make the boot menu just like I want?

From: Svein Halvor Halvorsen (svein-freebsd-questions_at_theloosingend.net)
Date: 10/11/04

  • Next message: Eduard Martinescu: "Re: TIMEOUT - WRITE_DMA and smart questions"
    Date: Mon, 11 Oct 2004 12:56:00 +0200 (CEST)
    To: Frederick <frederickp@synology.com>
    
    

    [Frederick, 2004-10-11]
    > This is Frederick. Is there any table to list the partition number(subtype) or sysid?
    > I have two hard disks. The first one install windows, and the second one install freebsd.
    > I first install windows, then install freebsd. I use boot manager to manage my boot.
    :
    > So please help me to find the partition number(subtype), or tell me how to do that
    > to make the change.

    The FreeBSD boot manager is a very small program that lives entirely
    within the bootsector of the disk. It is therefore only one sector in
    size, or 512 bytes. To change the boot menu, you would have to reqrite
    this program. The source code is in:

    /usr/src/sys/boot/i386/boot0/boot0.S

    Note, however, that this program is allready exactly 512 bytes when
    compiled, so for every byte you put in, you need to take another one out.

    On my laptop I've recompiled the boot0 program to display "Diag" for the
    Dell diagnostic service partition, XP in place of DOS, and FreeBSD for my
    FreeBSD partition. To get room for the Diag selecttion, I had to remove
    Linux from the list. I think I've lost my patches, but the boot sector
    code has been living happily and undisturbed on the boot sector through
    alot of system updates.

    Please be careful when replacing the boot sector. Your system may become
    unbootable, and you would have to resort to boot disks to get it back.

       Cheers,
       Svein Halvor
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Eduard Martinescu: "Re: TIMEOUT - WRITE_DMA and smart questions"

    Relevant Pages

    • boot0 screen output with dual-boot of FreeBSD / WinXP
      ... I used FreeBSD to partition the 120Gb drive into roughly "half". ... Of course XP clobbered the boot manager, ... it appears that partition type "7" just isn't a "known" type. ...
      (freebsd-hackers)
    • Re: "disklabel: Class not found" when editing USB disk
      ... Canonical way to boot FreeBSD by hand, ... This should boot -- however is pretty pointless without anything else. ... newfs will set the proper fstype in the bsdlabel if it's partition is 'a' ...
      (freebsd-questions)
    • RE: Changing boot partition ACCOMPLISHED, now INIT problem
      ... I installed a minimum FreeBSD and created a second slice to restore the ... mounted it and restored the backup to that partition. ... key on boot manager It started to boot the FreeBSD of the wrecked machine:) ...
      (freebsd-questions)
    • RE: Changing boot partition - ACCOMPLISHED, now INIT problem :(
      ... I accomplished the restore of a wrecked machine only with a .tar backup from ... I installed a minimum FreeBSD on a new ... the new partition as / ad1s2a). ... I have access to the contents of it if I boot through the minimum SO ...
      (freebsd-questions)
    • Dual Booting -- Help Please!
      ... FreeBSD getting 25 gig of my single 40 gig drive. ... Install FreeBSD 5.3-RELEASE ... I choose to install the FreeBSD Boot Manager ... Format first partition as NTFS ...
      (comp.unix.bsd.freebsd.misc)