Changing the boot device from PXE to hard disk
erik at cederstrand.dk
Mon Nov 19 12:10:24 PST 2007
Javier Martín Rueda wrote:
> I have set up a simple unattended installation system for FreeBSD, so
> that I can manually configure a group of computers to boot with PXE,
> and when they boot they will automatically install FreeBSD.
> The final step would be to configure the BIOS to boot from the first
> hard drive. So far I can do that manually by pressing "Del" when the
> computer boots and entering the ROM BIOS setup program, but I would
> like to know if it is possible somehow to change the boot device
> priority in the BIOS from FreeBSD?
It's not possible to access the BIOS setting through FreeBSD. What I do
is to set the boot order in BIOS to:
1. hard drive
Before the unattended install, wipe out the MBR. If this is a blank hard
drive, then you're already OK. If the drive contains a previous FreeBSD
# sysctl kern.geom.debugflags=16
# dd if=/dev/zero of=/dev/ad0 bs=512 count=1k
as root. This makes the BIOS skip the hard drive on the next boot and
continue to boot via PXE. Make sure your install puts an MBR on the
disk, so the BIOS picks the hard drive after rebooting.
More information about the freebsd-questions