From owner-freebsd-stable Thu Aug 8 11:25: 7 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03F8537B400 for ; Thu, 8 Aug 2002 11:25:03 -0700 (PDT) Received: from postal1.es.net (postal1.es.net [198.128.3.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B17E43E65 for ; Thu, 8 Aug 2002 11:25:02 -0700 (PDT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal1.es.net (Postal Node 1) with ESMTP id GQF37091; Thu, 08 Aug 2002 11:25:01 -0700 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Postfix) with ESMTP id EAEE45D06; Thu, 8 Aug 2002 11:25:00 -0700 (PDT) To: Randy Bush Cc: FreeBSD Stable Subject: Re: mbr selection list In-reply-to: Your message of "Thu, 08 Aug 2002 11:04:51 PDT." Date: Thu, 08 Aug 2002 11:25:00 -0700 From: "Kevin Oberman" Message-Id: <20020808182500.EAEE45D06@ptavv.es.net> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > From: Randy Bush > Date: Thu, 08 Aug 2002 11:04:51 -0700 > Sender: owner-freebsd-stable@FreeBSD.ORG > > i currently see an mbr selection list like > F1 - DOS > F2 - Unknown > F3 - FreeBSD > F4 - FreeBSD > > i want F2 and F4 removed because > o the unknown partition is the suspend to disk partition > o F4 is a non-bootable part of the F3 system > > so, how do i > o remove two > o and maybe rename the remaining for cosmetic reasons Just modify the source for boot0 (/sys/boot/i386/boot0/boot0.s). The problem is that boot0 MUST not grow. It needs to fit into a single disk block and must not exceed 512 bytes. A great deal of effort has been expended in keeping it to 512 bytes and it is one reason that it does not have the smarts to recognize NTFS partitions. Renaming is easy, as long as the new name is not longer than the old name. The relevant code starts on about line 360 of boot0.s. (Hope you are comfortable with i386 assembly language, but I suspect that you are.) Obviously you need to be careful so that you don't have an un-bootable system. I suggest that you have a "fixit" CD or floppy handy to re-write the boot block if you mess it up. R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message