Restoring damaged FreeBSD boot loaders

Software

Beastie!

Fortunately I've been spared from having to do this lately, but adding this tip here in case Murphy's Law comes into effect. Previously when I dual booted FreeBSD with a NT flavour of Windows I'd always install the latter first, owing to it's tendency to shamelessly screw with boot orders and MBRs like the monopolistic Borg creature it is. Not that I'm bitter or anything.

If other operating systems have damaged your Master Boot Record, you can reinstall it either with /usr/sbin/sysinstall or with boot0cfg(8). See man boot0cfg for details.

Author bio and support

Me!

Ruben Schade is a technical writer and IaaS engineer in Sydney, Australia who refers to himself in the third person in bios. Wait, not BIOS… my brain should be EFI by now.

The site is powered by Hugo, FreeBSD, and OpenZFS on OrionVM, everyone’s favourite cloud infrastructure provider.

If you found this post helpful or entertaining, you can shout me a coffee or buy some silly merch. Thanks!