[H-GEN] Cleaning up the MBR on a /dev/hda

Jason Parker-Burlingham jasonp at panix.com
Thu Nov 17 19:26:59 EST 2005


On Thu, Nov 17, 2005 at 08:58:10PM +1000, Robert Webb wrote:

> ############BACKING UP MBR (to /root/recovery)############
> 
> dd if=/dev/hda of=/root/recovery/mbr.bin count=1
> 
> ##to restore, reverse the command
> 
> dd of=/dev/hda if=/root/recovery/mbr.bin count=1 bs=512

This is my last message on this topic, but I have to say that if you're
backing up your mbr and partition table[1] to the device that hosts it,
then you're more courageous than me.

[1] : I assume there's a "bs=512" argument to your first dd command
      which was accidentally left off, since the command as it stands
			will simply fill your disk.
-- 
Jason Parker-Burlingham
<jasonp at panix.com>
(Watch this space)




More information about the General mailing list