In my exploration of /usr/src/sys, I've been looking at boot and messing around with the boot loader. I overwrote my boot0 by booting the 11 dvd and doing:
fdisk -B -b /boot/boot0 ada0
Now, I get a simple boot prompt:
F1 FreeBSD
and I realize that I've changed the boot process (this is a good thing). However, I also realize that 1) I overwrote whatever the installer put there and 2) it ain't what I messed with in /usr/src/sys/boot...
I figured that I could copy /boot/boot0 from the installed system to another media, and then use fdisk to put that boot0 back, would work, but it didn't seem to do anything. But, what I really want to do anyway is learn how to restore the full boot loader when things go wrong, and also how to install the bootloader from /usr/src/sys. I have read portions of the FreeBSD Architecture Handbook related to the boot process, but it's not clear to me exactly what files are needed to put the boot process back together again. Is there a "restore your bootloader and configuration" guide out there or do y'all have a 5 easy steps approach to this?
This is FreeBSD 11 on a VM
Thanks,
Will
fdisk -B -b /boot/boot0 ada0
Now, I get a simple boot prompt:
F1 FreeBSD
and I realize that I've changed the boot process (this is a good thing). However, I also realize that 1) I overwrote whatever the installer put there and 2) it ain't what I messed with in /usr/src/sys/boot...
I figured that I could copy /boot/boot0 from the installed system to another media, and then use fdisk to put that boot0 back, would work, but it didn't seem to do anything. But, what I really want to do anyway is learn how to restore the full boot loader when things go wrong, and also how to install the bootloader from /usr/src/sys. I have read portions of the FreeBSD Architecture Handbook related to the boot process, but it's not clear to me exactly what files are needed to put the boot process back together again. Is there a "restore your bootloader and configuration" guide out there or do y'all have a 5 easy steps approach to this?
This is FreeBSD 11 on a VM
Thanks,
Will