From owner-freebsd-questions@FreeBSD.ORG Mon Oct 11 12:12:31 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D436A16A4CE for ; Mon, 11 Oct 2004 12:12:31 +0000 (GMT) Received: from merke.itea.ntnu.no (merke.itea.ntnu.no [129.241.7.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FE2F43D1D for ; Mon, 11 Oct 2004 12:12:31 +0000 (GMT) (envelope-from svein-freebsd-questions@theloosingend.net) Received: from localhost (localhost [127.0.0.1]) by merke.itea.ntnu.no (Postfix) with ESMTP id 6BDB013CA41 for ; Mon, 11 Oct 2004 14:12:30 +0200 (CEST) Received: from mirrorball.thelosingend.net (m190d.studby.ntnu.no [129.241.131.190]) by merke.itea.ntnu.no (Postfix) with SMTP for ; Mon, 11 Oct 2004 14:12:30 +0200 (CEST) Received: (qmail 15098 invoked by uid 1001); 11 Oct 2004 10:56:00 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 11 Oct 2004 10:56:00 -0000 Date: Mon, 11 Oct 2004 12:56:00 +0200 (CEST) From: Svein Halvor Halvorsen X-X-Sender: sveinhal@maren.thelosingend.net To: Frederick In-Reply-To: <200410111025.i9BAPHEt068565@mail.synology.com> Message-ID: <20041011124804.U15077@maren.thelosingend.net> References: <200410111025.i9BAPHEt068565@mail.synology.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Content-Scanned: with sophos and spamassassin at mailgw.ntnu.no. cc: FreeBSD-questions cc: frederickpon@hotmail.com Subject: Re: How to make the boot menu just like I want? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Oct 2004 12:12:31 -0000 [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