<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ta vie on s'en fout! &#187; mbr</title>
	<atom:link href="http://tavie.onsenfout.com/tag/mbr/feed/" rel="self" type="application/rss+xml" />
	<link>http://tavie.onsenfout.com</link>
	<description>Mon bazar techno-miam</description>
	<lastBuildDate>Tue, 22 Nov 2011 11:06:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Sauvegarde et restauration du MBR sous Linux</title>
		<link>http://tavie.onsenfout.com/2007/10/07/sauvegarde-et-restauration-du-mbr-sous-linux/</link>
		<comments>http://tavie.onsenfout.com/2007/10/07/sauvegarde-et-restauration-du-mbr-sous-linux/#comments</comments>
		<pubDate>Sun, 07 Oct 2007 21:46:41 +0000</pubDate>
		<dc:creator>François</dc:creator>
				<category><![CDATA[Bits]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[mbr]]></category>
		<category><![CDATA[partitions]]></category>
		<category><![CDATA[sauvegarde]]></category>
		<category><![CDATA[système]]></category>

		<guid isPermaLink="false">http://tavie.onsenfout.com/?p=4</guid>
		<description><![CDATA[Le Master Boot Record ou MBR est situé sur le premier secteur d&#8217;un disque dur &#171;&#160;bootable&#160;&#187;. Il est précieux car il contient la table des partitions et le &#171;&#160;boot loader&#160;&#187;. Dès qu&#8217;on utilise plusieurs systèmes sur la même machine, Windows et Linux par exemple, il est prudent de conserver une sauvegarde du MBR. Si on [...]<br /><div><img src="http://tavie.onsenfout.com/wp-content/plugins/gd-star-rating/gfx.php?value=5.0" /></div><div>Rating: 5.0/<strong>5</strong> (1 vote cast)</div><br /><a target="_blank" href="http://www.gdstarrating.com/"><img src="http://tavie.onsenfout.com/wp-content/plugins/gd-star-rating/gfx/powered.png" border="0" width="80" height="15" /></a><br />]]></description>
			<content:encoded><![CDATA[<p>Le Master Boot Record ou MBR est situé sur le premier secteur d&#8217;un disque dur &laquo;&nbsp;bootable&nbsp;&raquo;. Il est précieux car il contient la table des partitions et le &laquo;&nbsp;boot loader&nbsp;&raquo;. Dès qu&#8217;on utilise plusieurs systèmes sur la même machine, Windows et Linux par exemple, il est prudent de conserver une sauvegarde du MBR. Si on utilise Grub comme gestionnaire de boot et qu&#8217;on doit réinstaller Windows, celui-ci remplacera le MBR par le sien sans tenir compte des autres systèmes présents sur le disque. Dans ce cas c&#8217;est commode de pouvoir restaurer le boot loader. Voilà comment faire :</p>
<p><strong><em>Attention : ces explications sommaires sont destinées aux personnes qui savent ce qu&#8217;elles font, une mauvaise manip peut rendre le disque inutilisable. Vous voilà prévenus.</em></strong></p>
<p>Pour sauvegarder le MBR du disque hda dans le fichier mbr.sav :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>hda <span style="color: #007800;">of</span>=mbr.sav <span style="color: #007800;">bs</span>=<span style="color: #000000;">512</span> <span style="color: #007800;">count</span>=<span style="color: #000000;">1</span></pre></div></div>

<p>Pour restaurer le MBR du disque hda à partir du fichier mbr.sav :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=mbr.sav <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>hda <span style="color: #007800;">bs</span>=<span style="color: #000000;">512</span> <span style="color: #007800;">count</span>=<span style="color: #000000;">1</span></pre></div></div>

<p>Les 64 derniers octets du MBR contiennent la table des partitions<br />
Si on ne veut pas sauvegarder/restaurer la table des partition mais juste le boot loader, les commandes deviennent :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>hda <span style="color: #007800;">of</span>=mbr.sav <span style="color: #007800;">bs</span>=<span style="color: #000000;">446</span> <span style="color: #007800;">count</span>=<span style="color: #000000;">1</span>
<span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=mbr.sav <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>hda <span style="color: #007800;">bs</span>=<span style="color: #000000;">446</span> <span style="color: #007800;">count</span>=<span style="color: #000000;">1</span></pre></div></div>

<br /><div><img src="http://tavie.onsenfout.com/wp-content/plugins/gd-star-rating/gfx.php?value=5.0" /></div><div>Rating: 5.0/<strong>5</strong> (1 vote cast)</div><br /><a target="_blank" href="http://www.gdstarrating.com/"><img src="http://tavie.onsenfout.com/wp-content/plugins/gd-star-rating/gfx/powered.png" border="0" width="80" height="15" /></a><br />]]></content:encoded>
			<wfw:commentRss>http://tavie.onsenfout.com/2007/10/07/sauvegarde-et-restauration-du-mbr-sous-linux/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

