MBR sichern und wieder herstellen
Jump to navigation
Jump to search
backing up MBR stored on /dev/sdX or /dev/hdX:
dd if=/dev/sdX of=/tmp/sda-mbr.bin bs=512 count=1
Now to restore partition table to disk, all you need to do is use dd command:
dd if= sda-mbr.bin of=/dev/sdX bs=1 count=64 skip=446 seek=446
To restore partition table and boot loader:
dd if= sda-mbr.bin of=/dev/sdX bs=512 count=1
list of devices:
/dev/hda = IDE, primary master /dev/hdb = IDE, primary slave /dev/hdc = IDE, secondary master /dev/hdd = IDE, secondary slave
/dev/sda = erste SCSI Platte /dev/sdb = zweite SCSI Platte