From owner-freebsd-questions@FreeBSD.ORG Wed Jun 8 20:24:57 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 2FD7C16A41C for ; Wed, 8 Jun 2005 20:24:57 +0000 (GMT) (envelope-from pauls@utdallas.edu) Received: from smtp1.utdallas.edu (smtp1.utdallas.edu [129.110.10.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED77043D58 for ; Wed, 8 Jun 2005 20:24:56 +0000 (GMT) (envelope-from pauls@utdallas.edu) Received: from utd59514.utdallas.edu (utd59514.utdallas.edu [129.110.3.28]) by smtp1.utdallas.edu (Postfix) with ESMTP id 7337538905B for ; Wed, 8 Jun 2005 15:24:56 -0500 (CDT) Date: Wed, 08 Jun 2005 15:24:39 -0500 From: Paul Schmehl To: freebsd-questions@freebsd.org Message-ID: In-Reply-To: <5ef8c2f00506081229384d1be8@mail.gmail.com> References: <0DF7FF668F71A2B85D47F59B@utd59514.utdallas.edu> <5ef8c2f00506081229384d1be8@mail.gmail.com> X-Mailer: Mulberry/3.1.6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Re: Editing the boot menu X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jun 2005 20:24:57 -0000 --On Wednesday, June 08, 2005 16:29:22 -0300 Jos=E9 de Paula Rodrigues=20 wrote: > On 6/8/05, Paul Schmehl wrote: >> When you use FreeBSD's boot manager, you get a menu like this at bootup: >> >> F1 DOS >> F2 FreeBSD >> F3 Linux >> F4 ?? >> F5 Drive 1 >> >> Default: F2 >> >> Is there a way to edit the list? Or is that fixed when boot manager is >> installed and not configurable? >> >> By edit, I mean, for example, change F4 ?? to F4 MyOS. >> > > man boot0cfg > I *thought* it would go without saying that I had already read man = boot0cfg. Obviously, I missed the part where you edit the menu. Wanna give me a = hint? uname -imr 5.4-RELEASE i386 GENERIC boot0cfg -v /dev/ad4 # flag start chs type end chs offset size 1 0x00 0: 1: 1 0x07 1023:254:63 63 204796557 2 0x80 1023:255:63 0xa5 1023:254:63 204796620 283482990 version=3D1.0 drive=3D0x80 mask=3D0xf ticks=3D182 options=3Dpacket,update,nosetdrv default_selection=3DF2 (Slice 2) The options for boot0cfg are: -B Install the `boot0' boot manager. This option causes MBR code = to be replaced, without affecting the embedded slice table. I don't need to install it. -b boot0 Specify which `boot0' image to use. The default is = /boot/boot0 which will use the video card as output, alternatively /boot/boot0sio can be used for output to the COM1 port. (Be aware that nothing will be output to the COM1 port unless the modem signals DSR and CTS are active.) I don't need to specify the boot image. -d drive Specify the drive number used by the PC BIOS in referencing = the drive which contains the specified disk. Typically this will=20 be 0x80 for the first hard drive, 0x81 for the second hard drive, and so on; however any integer between 0 and 0xff is = acceptable here. I don't need to specify the drive. -f file Specify that a backup copy of the preexisting MBR should be=20 writ- ten to file. This file is created if it does not exist, and replaced if it does. I don't need to make a backup copy. -m mask Specify slices to be enabled/disabled, where mask is an = integer between 0 (no slices enabled) and 0xf (all four slices=20 enabled). The correct slices are already enabled. The system boots fine to either = OS. -o options A comma-separated string of any of the following options may = be specified (with ``no'' prepended as necessary): The default options are being used, and I see no reason to change them. packet Use the disk packet (BIOS INT 0x13 extensions)=20 interface, as opposed to the legacy (CHS) interface, when doing=20 disk I/O. This allows booting above cylinder 1023, but requires specific BIOS support. The default is `nopacket'. setdrv Forces the drive containing the disk to be referenced using drive number definable by means of the -d = option. The default is `nosetdrv'. update Allow the MBR to be updated by the boot manager. (The update Allow the MBR to be updated by the boot manager. (The MBR may be updated to flag slices as `active', and to save slice selection information.) This is the=20 default; a `noupdate' option causes the MBR to be treated as=20 read- only. -s slice Set the default boot selection to slice. Values between 1 and = 4 refer to slices; a value of 5 refers to the option of booting from a second disk. The default slice is determined by the last boot. I see no reason to=20 change that. -t ticks Set the timeout value to ticks. (There are approximately 18.2 ticks per second.) The timeout is set to 10, and I see no reason to change that. -v Verbose: display information about the slices defined, etc. Self-explanatory. So where is the switch that I use to edit the menu? Paul Schmehl (pauls@utdallas.edu) Adjunct Information Security Officer University of Texas at Dallas AVIEN Founding Member http://www.utdallas.edu/ir/security/