zeldor.biz

Linux, programming and more

Copyright © 2023
Log in

Backup your MBR

September 5, 2011 by Igor Drobot Leave a Comment

Master Boot Record (MBR), a small program that is executed when a computer boots up.

You can save your MBR with a simple DD-command to a file:

1
dd if=/dev/sda count=1 bs=512 > /var/backup/MBR

dd if=/dev/sda count=1 bs=512 > /var/backup/MBR

From this file you can restore your MBR very easy:

1
dd if=/var/backup/MBR of=/dev/sdb

dd if=/var/backup/MBR of=/dev/sdb

Filed Under: Linux Tagged With: Master Boot Record, MBR, Save MBR

Categories

Archives

Tags

apache2 Apple arduino ARM Automation backup bash Cisco Cluster Corosync Database Debian Debian squeeze DIY DNS Fedora FTP Fun Icinga Ipv6 KVM Linux LVM MAC OS X Monitoring MySQL Nagios Nginx openSUSE OpenVPN PHP Proxy Python python3 qemu RAID rsync Samba security ssh Ubuntu virtualization Windows Windows 7 Wordpress

Leave a Reply

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