<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: UNIX / Linux: Copy Master Boot Record (MBR)</title> <atom:link href="http://www.cyberciti.biz/faq/howto-copy-mbr/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/howto-copy-mbr/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 11:20:49 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Ndoum</title><link>http://www.cyberciti.biz/faq/howto-copy-mbr/#comment-67864</link> <dc:creator>Ndoum</dc:creator> <pubDate>Wed, 08 Feb 2012 22:31:51 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-copy-mbr/#comment-67864</guid> <description>I found myself with the MBR on one drive (sda) (which seems to have packed up), Ubuntu 11.04 install (sdb) on another drive and all I have access to is the the 8.04 live disc. I was unable to therefore use things like grub-install since I couldn&#039;t mount my drives (kep getting unrecoginzed file extensions or some such....)
So this seemed the most practical way of doing things since all I wanted to do was create a new MBR where my 11.04 install is with the info from the packed up drive. But a quick check using Boot Info Script:
http://sourceforge.net/projects/bootinfoscript/
shows that core.img is missing from after using dd to replace the MBR on sdb. Mind you I did use 446 since sda is 80Gb and sdb is 160Gb. I assumed I&#039;m dealing with two different sized partitions.
I&#039;d appreciate any insigths...</description> <content:encoded><![CDATA[<p>I found myself with the MBR on one drive (sda) (which seems to have packed up), Ubuntu 11.04 install (sdb) on another drive and all I have access to is the the 8.04 live disc. I was unable to therefore use things like grub-install since I couldn&#8217;t mount my drives (kep getting unrecoginzed file extensions or some such&#8230;.)</p><p>So this seemed the most practical way of doing things since all I wanted to do was create a new MBR where my 11.04 install is with the info from the packed up drive. But a quick check using Boot Info Script:</p><p><a
href="http://sourceforge.net/projects/bootinfoscript/" rel="nofollow">http://sourceforge.net/projects/bootinfoscript/</a></p><p>shows that core.img is missing from after using dd to replace the MBR on sdb. Mind you I did use 446 since sda is 80Gb and sdb is 160Gb. I assumed I&#8217;m dealing with two different sized partitions.</p><p>I&#8217;d appreciate any insigths&#8230;</p> ]]></content:encoded> </item> <item><title>By: Mike</title><link>http://www.cyberciti.biz/faq/howto-copy-mbr/#comment-59492</link> <dc:creator>Mike</dc:creator> <pubDate>Wed, 18 May 2011 15:16:45 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-copy-mbr/#comment-59492</guid> <description>IHi.
I tried this twice to virtualize a physical machine to ESX but each time, on boot, I only have
GRUB _
displayed and no more. I used the 446 bytes size. The partitionning is right and all data have been copied from old to new disk.
I finally startup from a rescue disk, chrooted and used grub-install.
But could grub store data somewhere else ?
(I tried on grub 1 and grub 2 ...)</description> <content:encoded><![CDATA[<p>IHi.</p><p>I tried this twice to virtualize a physical machine to ESX but each time, on boot, I only have<br
/> GRUB _<br
/> displayed and no more. I used the 446 bytes size. The partitionning is right and all data have been copied from old to new disk.<br
/> I finally startup from a rescue disk, chrooted and used grub-install.</p><p>But could grub store data somewhere else ?<br
/> (I tried on grub 1 and grub 2 &#8230;)</p> ]]></content:encoded> </item> <item><title>By: Vivek Gite</title><link>http://www.cyberciti.biz/faq/howto-copy-mbr/#comment-56357</link> <dc:creator>Vivek Gite</dc:creator> <pubDate>Thu, 17 Mar 2011 17:31:36 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-copy-mbr/#comment-56357</guid> <description>It can be done on both mounted and unmouted file system.</description> <content:encoded><![CDATA[<p>It can be done on both mounted and unmouted file system.</p> ]]></content:encoded> </item> <item><title>By: Nick</title><link>http://www.cyberciti.biz/faq/howto-copy-mbr/#comment-56356</link> <dc:creator>Nick</dc:creator> <pubDate>Thu, 17 Mar 2011 15:58:52 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-copy-mbr/#comment-56356</guid> <description>Hi .. there are numerous info about this nowadays on all sites...
but one thing i never sure of is ....
SHOULD THIS BE DONE ON MOUNTED OR UNMOUNTED FILESYSTEM ????
No sites explain this really.....</description> <content:encoded><![CDATA[<p>Hi .. there are numerous info about this nowadays on all sites&#8230;<br
/> but one thing i never sure of is &#8230;.<br
/> SHOULD THIS BE DONE ON MOUNTED OR UNMOUNTED FILESYSTEM ????<br
/> No sites explain this really&#8230;..</p> ]]></content:encoded> </item> <item><title>By: Vivek Gite</title><link>http://www.cyberciti.biz/faq/howto-copy-mbr/#comment-54286</link> <dc:creator>Vivek Gite</dc:creator> <pubDate>Fri, 31 Dec 2010 15:13:54 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-copy-mbr/#comment-54286</guid> <description>Thanks for the heads up!</description> <content:encoded><![CDATA[<p>Thanks for the heads up!</p> ]]></content:encoded> </item> <item><title>By: clfapujc</title><link>http://www.cyberciti.biz/faq/howto-copy-mbr/#comment-54262</link> <dc:creator>clfapujc</dc:creator> <pubDate>Fri, 31 Dec 2010 10:31:56 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-copy-mbr/#comment-54262</guid> <description># sfdisk -d /dev/sda &gt; /tmp/sda.bak
# sfdisk /dev/sda &lt; /tmp/sda.&lt;strong&gt;out&lt;/strong&gt;
it should be &lt;strong&gt;bak&lt;/strong&gt; also</description> <content:encoded><![CDATA[<p># sfdisk -d /dev/sda &gt; /tmp/sda.bak<br
/> # sfdisk /dev/sda &lt; /tmp/sda.<strong>out</strong><br
/> it should be <strong>bak</strong> also</p> ]]></content:encoded> </item> <item><title>By: Niko</title><link>http://www.cyberciti.biz/faq/howto-copy-mbr/#comment-51255</link> <dc:creator>Niko</dc:creator> <pubDate>Thu, 02 Dec 2010 15:26:00 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-copy-mbr/#comment-51255</guid> <description>Since this is the first Google result for &quot;linux copy mbr&quot;, please edit original post adding a BIG FAT WARNING about the 512/446 size values.
Thanks</description> <content:encoded><![CDATA[<p>Since this is the first Google result for &#8220;linux copy mbr&#8221;, please edit original post adding a BIG FAT WARNING about the 512/446 size values.<br
/> Thanks</p> ]]></content:encoded> </item> <item><title>By: Fionn</title><link>http://www.cyberciti.biz/faq/howto-copy-mbr/#comment-51009</link> <dc:creator>Fionn</dc:creator> <pubDate>Sun, 21 Nov 2010 00:50:40 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-copy-mbr/#comment-51009</guid> <description>Ash;
If you can use &#039;cp&#039;, then you can use &#039;dd&#039;; they&#039;re both required for Posix-compliant systems (such as is Debian).
Also, you cannot make a &#039;backup&#039; after the system has crashed.  Backups are made before crashes happen so that Recovery may be performed.  What you are attempting to do is called &#039;salvage&#039;.</description> <content:encoded><![CDATA[<p>Ash;</p><p>If you can use &#8216;cp&#8217;, then you can use &#8216;dd&#8217;; they&#8217;re both required for Posix-compliant systems (such as is Debian).</p><p>Also, you cannot make a &#8216;backup&#8217; after the system has crashed.  Backups are made before crashes happen so that Recovery may be performed.  What you are attempting to do is called &#8216;salvage&#8217;.</p> ]]></content:encoded> </item> <item><title>By: Ashrock</title><link>http://www.cyberciti.biz/faq/howto-copy-mbr/#comment-50798</link> <dc:creator>Ashrock</dc:creator> <pubDate>Mon, 15 Nov 2010 18:52:13 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-copy-mbr/#comment-50798</guid> <description>I am not sure what MBR is until i found this post.
But this is not exactly what i want to do.
I want to copy all the files and directories of a root hard disk with a disk size of 70GB into a external hard drive with a disk capacity of 250GB mounted on /mnt/sda2 .
I can use only cp command as my Debian OS crashed and i want to take immediate backup of all the files.
Is this command useful in any way to do that.
Thanks,
Ash</description> <content:encoded><![CDATA[<p>I am not sure what MBR is until i found this post.<br
/> But this is not exactly what i want to do.<br
/> I want to copy all the files and directories of a root hard disk with a disk size of 70GB into a external hard drive with a disk capacity of 250GB mounted on /mnt/sda2 .<br
/> I can use only cp command as my Debian OS crashed and i want to take immediate backup of all the files.<br
/> Is this command useful in any way to do that.<br
/> Thanks,</p><p>Ash</p> ]]></content:encoded> </item> <item><title>By: Pavel</title><link>http://www.cyberciti.biz/faq/howto-copy-mbr/#comment-46944</link> <dc:creator>Pavel</dc:creator> <pubDate>Mon, 19 Apr 2010 12:31:18 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-copy-mbr/#comment-46944</guid> <description>Very useful comments about 446 bytes. Thanks!</description> <content:encoded><![CDATA[<p>Very useful comments about 446 bytes. Thanks!</p> ]]></content:encoded> </item> <item><title>By: Bolo</title><link>http://www.cyberciti.biz/faq/howto-copy-mbr/#comment-45257</link> <dc:creator>Bolo</dc:creator> <pubDate>Mon, 21 Dec 2009 20:57:15 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-copy-mbr/#comment-45257</guid> <description>MBR is divided into 3 sections
1. Bootstrap . 446 bytes
2. Partition table. 64 bytes
3. Signature. 2 bytes</description> <content:encoded><![CDATA[<p>MBR is divided into 3 sections<br
/> 1. Bootstrap . 446 bytes<br
/> 2. Partition table. 64 bytes<br
/> 3. Signature. 2 bytes</p> ]]></content:encoded> </item> <item><title>By: Brandon</title><link>http://www.cyberciti.biz/faq/howto-copy-mbr/#comment-44917</link> <dc:creator>Brandon</dc:creator> <pubDate>Fri, 27 Nov 2009 00:33:29 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-copy-mbr/#comment-44917</guid> <description>MBR is 512 or 446 bytes?</description> <content:encoded><![CDATA[<p>MBR is 512 or 446 bytes?</p> ]]></content:encoded> </item> <item><title>By: Sicarius</title><link>http://www.cyberciti.biz/faq/howto-copy-mbr/#comment-44603</link> <dc:creator>Sicarius</dc:creator> <pubDate>Wed, 11 Nov 2009 21:15:04 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-copy-mbr/#comment-44603</guid> <description>Thanks a lot, this was just the kind of short note I was looking for ,)</description> <content:encoded><![CDATA[<p>Thanks a lot, this was just the kind of short note I was looking for ,)</p> ]]></content:encoded> </item> <item><title>By: graysky</title><link>http://www.cyberciti.biz/faq/howto-copy-mbr/#comment-44399</link> <dc:creator>graysky</dc:creator> <pubDate>Sat, 31 Oct 2009 14:14:36 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-copy-mbr/#comment-44399</guid> <description>Caiken is right!  BEWARE of using the above dd line on two discs that don&#039;t have IDENTICALLY sized partitions!  You will lose data!
Here&#039;s what I do to copy just the MBR from a hdd:
dd if=/dev/sda of=mbrbackup bs=512 count=1
Now to restore the image to any hdd:
dd if=mbrbackup of=/dev/sdb bs=446 count=1</description> <content:encoded><![CDATA[<p>Caiken is right!  BEWARE of using the above dd line on two discs that don&#8217;t have IDENTICALLY sized partitions!  You will lose data!</p><p>Here&#8217;s what I do to copy just the MBR from a hdd:</p><p> dd if=/dev/sda of=mbrbackup bs=512 count=1</p><p>Now to restore the image to any hdd:</p><p> dd if=mbrbackup of=/dev/sdb bs=446 count=1</p> ]]></content:encoded> </item> <item><title>By: graysky</title><link>http://www.cyberciti.biz/faq/howto-copy-mbr/#comment-44398</link> <dc:creator>graysky</dc:creator> <pubDate>Sat, 31 Oct 2009 14:11:51 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-copy-mbr/#comment-44398</guid> <description>Right... be VERY careful with doing this w/ two discs with different size partitions!  In fact, the safest way to backup/restore JUST THE MBR:
dd if=/dev/sda of=mbrbackup bs=512 count=1
To restore the MBR (on to the same drive or any drive):
dd if=mbrbackup of=/dev/sdb bs=446 count=1</description> <content:encoded><![CDATA[<p>Right&#8230; be VERY careful with doing this w/ two discs with different size partitions!  In fact, the safest way to backup/restore JUST THE MBR:</p><p> dd if=/dev/sda of=mbrbackup bs=512 count=1</p><p>To restore the MBR (on to the same drive or any drive):</p><p> dd if=mbrbackup of=/dev/sdb bs=446 count=1</p> ]]></content:encoded> </item> <item><title>By: caiken</title><link>http://www.cyberciti.biz/faq/howto-copy-mbr/#comment-37198</link> <dc:creator>caiken</dc:creator> <pubDate>Fri, 21 Dec 2007 22:02:16 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/howto-copy-mbr/#comment-37198</guid> <description>This is correct for EXACTLY the same partition sizes. In the case you want the MBR only on a drive that has a root partition of a different size then issue the same command with a smaller block size.
dd if=/dev/sda of=/dev/sdb bs=446 count=1
Thus preserving the partitioning schema.</description> <content:encoded><![CDATA[<p>This is correct for EXACTLY the same partition sizes. In the case you want the MBR only on a drive that has a root partition of a different size then issue the same command with a smaller block size.</p><p>dd if=/dev/sda of=/dev/sdb bs=446 count=1</p><p>Thus preserving the partitioning schema.</p> ]]></content:encoded> </item> </channel> </rss>
