Contact: Web / Voice / Email / Tips
Simple Thoughts Blog - Java and Web Technologies

Simple solutions for complex problems.

 

How To Copy Master Boot Record (MBR) Between Hard Disks

March 18th, 2008 by Angsuman Chakraborty

In Linux you can use the dd command to copy MBR from one hard disk to another. You can also use dd to backup your master boot record to a different (or same) media. One of the common use of MBR copying is to ensure transparent fail-over in RAID-1 hard-disk array, should one hard-disks fail. Read more for examples.

How to copy master boot record from hda to hdb
dd if=/dev/hda of=/dev/hdb bs=512 count=1

BTW: Today I used this command to create identical MBR on my RAID-1 array. So when I removed the first hard-disk from the RAID-1 array, the second hard-disk continued to function without any issue. It is as if nothing has happened at all. Only when you look at /proc/mdstat you can see that only one hard-disk of the array is available.

How to backup master boot record of hda
dd if=/dev/hda bs=512 count=1 > hda_backup

hda_backup now contains the backup of MBR of hda.

How to restore master boot record of hda from hda_backup backup file
dd if=hda_backup of=/dev/hda bs=512 count=1

Note: Replace hda and hdb with the respective identifier for your drives. Hard disks have identifiers like hda, hdb… or sda, sdb… etc. on Linux machines.


Tags: Fedora 7, Fedora Core 6, Hard Disk Crash Recovery, Hardware, Headline News, How To, Linux, Linux Migration | | RSS 2.0 | Trackback this Article | Email this Article

You may also like to read

»Unix Utilities for Windows NT / 2000 / XP
»MySQL Master-Master Replication...
»Solution: MySQL Master-Master Replication Fails With ERROR 1200 (HY000) on Master
»6 MySQL Database Replication Tips
»Comparison of Software RAID on Windows versus Linux
»How To Test Master-Master / Master-Slave / Standard / Circular Replication on MySQL
»Xubuntu versus Fedora Core / Cent OS as Desktop OS
»Hard Disk Crash Recovery Using Bootable SystemRescueCd (Free)
»Windows Vista: How to Install Second OS / Manage Boot Configuration Easily
»5 Tips To Be A Master Wand Fighter Wizard / Witch (in Harry Potter's World)
»How To Search Non-Copy Protected Music CD's Only Or Even Tabulate Copy Protected Ones
»FAT32 versus NTFS: What Should You Choose
»Sunita Williams Sets New Female Spacewalking World Record
»How To Protect Yourself From Harddisk Crash & Failures
»How To Remove Windows Genuine Advantage Notification Tool

Looking forward to hear your thoughts.



Please enter the code shown below ( to verify that you are human ) before you click Submit Comment.

No. 1 method to ethically increase your blog traffic and reach.

Translate

Translate to EnglishÜbersetzen Sie zum Deutsch/GermanPřeložit do Čech/CzechOversætte hen til Dansk/DanishKääntää jotta Finnish/FinnishLefordít -hoz Magyar/HungarianÞýða til Íslenska/IcelandicTraducir a Latinoamericano Español/Latin American Spanishtagapagsalin sa Filipino/FilipinoTłumaczyć wobec Polski/PolishA traduce la spre Român/RomanianPrevesti za Srpski/Serbiantolmačiti v slovenski/SlovenianÖversätta till Svensk/SwedishChyfieitha at Cymraeg/Welshtercüme etmek -e doğru Türk/TurkishPrevesti to Hrvatski/CroatianПревеждам към Българин/BulgarianTraduzca al Español/SpanishTraduisez au Français/FrenchTraduca ad Italiano/ItalianTraduza ao Português/Portuguese日本語に翻訳しなさい /Japanese한국어에게 번역하십시오/Korean中文翻译/Chinese Simplifiedترجمة الى العربية/ArabicVertaal aan het Nederlands/DutchΜεταφράστε στα ελληνικά/GreekПереведите к русскому/RussianOversetter til Norsk/Norwegian中文翻译/Chinese TraditionalTraduzir a Língua portuguesa brasileira/Brazilian PortugueseReddo ut Latin/Latin

Taragana Network

»Ctrl-S
»Enterprise Blog
»Free Book on Eye Care by Natural Therapy
»Health Care Blog
»Hot Computer Jobs Blog
»Pet Care & Grooming News and Tips
»Phil Law Blog
»Taragana - Software Outsourcing
»The Angsuman Chakraborty Blog
»The Diabetes Cure Blog
»The Eye Treatment Blog
»The Stem Cell Blog
»Weblog Hosting Blog
"You see, wire telegraph is a kind of a very, very long cat. You pull his tail in New York and his head is meowing in Los Angeles. Do you understand this? And radio operates exactly the same way: you send signals here, they receive them there. The only difference is that there is no cat." - Albert Einstein