Date: Sun, 13 May 2007 09:15:30 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Sam Lawrance <boris@brooknet.com.au> Cc: freebsd-questions@freebsd.org Subject: Re: Skipping "F1 FreeBSD" prompt on boot Message-ID: <4646C922.7040902@infracaninophile.co.uk> In-Reply-To: <86C5378E-69FE-4A9F-9C77-C7970E42481F@brooknet.com.au> References: <46458C63.8040600@landgren.net> <46459E20.5060108@infracaninophile.co.uk> <86C5378E-69FE-4A9F-9C77-C7970E42481F@brooknet.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
-----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 Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGRski8Mjk52CukIwRCICuAJ49OYiAaExQsrrAgS0SWaAmZlm2tACfXyiW dXOmWmM4spJs0G7s1nV/At0= =6Lvi -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4646C922.7040902>