Backing up the bootsector

By | March 2, 2009

Afraid you might mess up your MBR? Back up the bootsector:

dd if=/dev/hda of=bootsector.img bs=512 count=1

If anything goes wrong, you can boot from a LiveCD and restore the bootsector with

dd if=bootsector.img of=/dev/hda

One thought on “Backing up the bootsector

  1. Pingback: Backup your bootsector « Linux & Stuff

Leave a Reply

Your email address will not be published. Required fields are marked *