From owner-freebsd-questions@FreeBSD.ORG Tue May 15 11:48:00 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0849316A400 for ; Tue, 15 May 2007 11:48:00 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from smtp.utwente.nl (smtp1.utsp.utwente.nl [130.89.2.8]) by mx1.freebsd.org (Postfix) with ESMTP id 7EA0113C458 for ; Tue, 15 May 2007 11:47:58 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from nox.student.utwente.nl (nox.student.utwente.nl [130.89.165.91]) by smtp.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id l4FBllLr013661; Tue, 15 May 2007 13:47:51 +0200 From: Pieter de Goeje To: Sam Lawrance Date: Tue, 15 May 2007 13:47:46 +0200 User-Agent: KMail/1.9.6 References: <46458C63.8040600@landgren.net> <200705140241.43492.pieter@degoeje.nl> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705151347.47171.pieter@degoeje.nl> X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact helpdesk@ITBE.utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-From: pieter@degoeje.nl X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: Skipping "F1 FreeBSD" prompt on boot 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: Tue, 15 May 2007 11:48:00 -0000 On Tuesday 15 May 2007, Sam Lawrance wrote: > On 14/05/2007, at 10:41 AM, Pieter de Goeje wrote: > > On Sunday 13 May 2007, David Landgren wrote: > >> Sam Lawrance wrote: > >>> On 13/05/2007, at 6:15 PM, Matthew Seaman wrote: > >>>> -----BEGIN PGP SIGNED MESSAGE----- > >>>> Hash: SHA256 > >>>> > >>>> Sam Lawrance wrote: > >>>>> On 12/05/2007, at 8:59 PM, Matthew Seaman wrote: > >>>>>> -----BEGIN PGP SIGNED MESSAGE----- > >>>>>> Hash: SHA256 > >>>>>> > >>>>>> David Landgren wrote: > >>>>>>> I have a disk that has only FreeBSD on it, and so I would > >>>>>>> like to > >>>>>>> skip the initial F1/FreeBSD prompt. boot0cfg -v ad0 says: > >>>>>>> > >>>>>>> options=nopacket,update,nosetdrv > >>>>>>> default_selection=F1 (Slice 1) > >>>>>>> > >>>>>>> ... what do I have to do to say JFDI instead of prompting? > >>>>>>> This is > >>>>>>> not the sort of thing I want to fiddle around experimenting, > >>>>>>> so a > >>>>>>> little guidance would be most appreciated. > >>>>>> > >>>>>> fdisk -B -b /boot/mbr /dev/ad0 > >>>>>> > >>>>>> You installed the FreeBSD boot sector stuff, which gives you the > >>>>>> 'press F1' business. Replace that with the standard mbr, > >>>>>> which just > >>>>>> boots straight up. > >>>>> > >>>>> Rather than replacing it, you can use boot0cfg to set a really > >>>>> short > >>>>> timeout instead; in case you might want that functionality one > >>>>> day. > >>>> > >>>> Heh. It's not like you only get one chance to rewrite the boot > >>>> blocks > >>>> on any particular drive. If anyone needs to (re-)install the > >>>> FreeBSD > >>>> boot > >>>> blocks, then you can do very simply it by: > >>>> > >>>> boot0cfg -B -b /boot/boot0 /dev/ad0 > >>>> > >>>> or even > >>>> > >>>> fdisk -B -b /boot/boot0 /dev/ad0 > >>>> > >>>> Or if you need to boot from a serial console you can change / > >>>> boot/boot0 > >>>> to /boot/boot0sio > >>> > >>> Sure, but why get rid of it, when leaving it in with a short timeout > >>> costs you nothing. > >> > >> A fair point, but in this particular case, FreeBSD is the only > >> thing on > >> the drive, and likely to remain that way until the disk dies of > >> mechanical failure. I just don't need that prompt, especially the > >> annoying beep it makes. > > > > The beep was removed since May 2006 (6.2-RELEASE, 6-STABLE, HEAD). > > A simple > > #boot0cfg -B /dev/adX > > should get rid of it. > > I thought I remembered that! Wasn't it removed to reclaim a couple > extra bytes? :-) Quote from the commit log: "Restore the pre-5.x behavior of only beeping if the user makes a bad selection and not always beeping on startup. The two bytes for the extra 'jmp' instruction were obtained by removing recognition of BSD/OS partitions." Cheers, Pieter de Goeje