Delete Linux MBR


We run a build system using PXE and Puppet which lets us reliably and quickly set up production and development environments on our servers and maintain their consistency.

Every now and again we need to wipe the MBR of a Linux box in order to reboot it so it can PXE boot and reinstall itself. I like to use this command:

dd if=/dev/zero of=/dev/sda bs=446 count=1

which fills up the start of the disk with 0s, a simple reboot will then kick the box and start the PXE cycle!

Previous articleCanon EOS Utility On A Mac Without A CD
Next articleUnique Article Wizard needs strip slashes!
Hi, I'm Rus and after 10 years of Linux administration and software development, in September 2014 I quit my day job, sold all my stuff and moved to Thailand to live the good life. My new website, shows how I'm making money online as well as what life can be like when you're not sat behind a desk and are free to make your own decisions!