Restoring damaged FreeBSD boot loaders



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


Ruben Schade is a technical writer and infrastructure architect in Sydney, Australia who refers to himself in the third person. Hi!

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

If you found this post helpful or entertaining, you can shout me a coffee or send a comment. Thanks ☺️.