Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Nov 2004 05:11:27 +0100
From:      Oliver Fuchs <oliverfuchs@onlinehome.de>
To:        freebsd-questions@freebsd.org
Subject:   Re: controlling the default boot drive
Message-ID:  <20041130041127.GC2938@oliverfuchs.onlinehome.de>
In-Reply-To: <6.2.0.14.0.20041129155640.06ebca38@64.7.153.2>
References:  <6.2.0.14.0.20041129155640.06ebca38@64.7.153.2>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 29 Nov 2004, Mike Tancsa wrote:

> 
> I have been experimenting with booting from a USB key vs the HD.  If I sit 
> on the console, and hit F1, the next time the machine boots, F1 will be the 
> default.  If I hit F5, the next time it will be F5 (the USB key drive in 
> this case).   How can I do this from the shell on a RELENG_5 box. e.g. I 
> boot from HD (F1) I want to then without having to sit on the console, make 
> it boot from USB drive, as if I hit F5. Is this boot0cfg ? If so, I cant 
> seem to get it to work.
> 

To set the F1 or F5 as default I have added this file 
/usr/local/etc/rc.d/boot0cfg.sh:

#!/bin/sh
/usr/sbin/boot0cfg -vs 1 ad0

where "ad0" is the drive you want to boot as default the next time.

> Thanks,
> 
>         ---Mike
> 
> 
> 
> --------------------------------------------------------------------
> Mike Tancsa,                                      tel +1 519 651 3400
> Sentex Communications,                            mike@sentex.net
> Providing Internet since 1994                    www.sentex.net
> Cambridge, Ontario Canada                         www.sentex.net/mike
> 
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"

-- 
... don't touch the bang bang fruit



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041130041127.GC2938>