Dd (Unix) - Uses - Master Boot Record Backup and Restore

Master Boot Record Backup and Restore

It is possible to repair a master boot record. It can be transferred to and from a repair file. To duplicate the first two sectors of a floppy drive:

dd if=/dev/fd0 of=MBRboot.img bs=512 count=2

To create an image of the entire master boot record (including the partition table):

dd if=/dev/sda of=MBR.img bs=512 count=1

To create an image of only the boot code of the master boot record (without the partition table):

dd if=/dev/sda of=MBR_boot.img bs=446 count=1

Read more about this topic:  Dd (Unix), Uses

Famous quotes containing the words master, boot, record and/or restore:

    It is, all in all, a historic error to believe that the master makes the school; the students make it!
    Robert Musil (1880–1942)

    The best quality tea must have creases like the leathern boot of Tartar horsemen, curl like the dewlap of a mighty bullock, unfold like a mist rising out of a ravine, gleam like a lake touched by a zephyr, and be wet and soft like a fine earth newly swept by rain.
    Lu Yu (d. 804)

    All photographs are there to remind us of what we forget. In this—as in other ways—they are the opposite of paintings. Paintings record what the painter remembers. Because each one of us forgets different things, a photo more than a painting may change its meaning according to who is looking at it.
    John Berger (b. 1926)

    To look backward for a while is to refresh the eye, to restore it, and to render it the more fit for its prime function of looking forward.
    Margaret Fairless Barber (1869–1901)