Main Menu

friends

Banner

Latest articles

How to automatically start Windows XP in VirtualBox when plugging in the iPhone on Linux
24/10/2009 | mad mad mod

How to automatically start Windows XP in VirtualBox when plugging in the iPhone on Linux  1.The shell script Create a script in /usr/local/bin/ to start your Windows XP machine in Virtu [ ... ]


Install mysql for Apache (Fedora 12)
01/04/2010 | mad mad mod

Prerequisites:Apache and php is already installed (see http://www.madmadmod.com/sysadmin/16-setting-up-a-very-simple-apache-webserver-on-linux-fedora.html and http://www.madmadmod.com/sysadmin/52-inst [ ... ]


Other Articles
Facebook MySpace Twitter Digg Delicious Stumbleupon Google Bookmarks 

Designed by:
SiteGround web hosting Joomla Templates
backup MBR (master boot record) with dd E-mail
sysadmin

The first 512 bytes of a partitioned storage device is called the MBR (master boot record). The main reason why I think you should backup the MBR is because it contains the disks primary partition table.

 

To backup the MBR of /dev/sda to /tmp/sda.mbr.dump type:

 

# dd if=/dev/sda of=/tmp/sda.mbr.dump bs=512 count=1

 

 

To restore the MBR type:

 

 

# dd if=/tmp/sda.mbr.dump of=/dev/sda

 

 

To exclude the partition table from being restored type:

 

# dd if=/tmp/sda.mbr.dump of=/dev/sda count=1 bs=446

 

 

To restore only the partition table:

 

 

# dd if=/tmp/sda.mbr.dump of=/dev/sda bs=1 count=64 skip=446 seek=446

 

 

Usually it is a good idea to re-install grub afterwards:

 

# grub-install /dev/sda

 

 

 

Comments (0)
Write comment
Your Contact Details:
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
:D:angry::angry-red::evil::idea::love::x:no-comments::ooo::pirate::?::(
:sleep::););)):0
Security
Please input the anti-spam code that you can read in the image.

!joomlacomment 4.0 Copyright (C) 2009 Compojoom.com . All rights reserved."

 
mad mad mod, Powered by Joomla! and designed by SiteGround web hosting