<?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>Docile Tree &#187; windows</title>
	<atom:link href="http://www.dociletree.co.za/tag/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dociletree.co.za</link>
	<description>Aubrey Kilian explains, rants and raves</description>
	<lastBuildDate>Thu, 08 Jul 2010 08:50:40 +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>Fixing Windows MBR with Ubuntu 8.04.1 Live-CD</title>
		<link>http://www.dociletree.co.za/fixing-windows-mbr-with-ubuntu-8041-live-cd/</link>
		<comments>http://www.dociletree.co.za/fixing-windows-mbr-with-ubuntu-8041-live-cd/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 08:37:44 +0000</pubDate>
		<dc:creator>aubrey</dc:creator>
				<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[mbr]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.dociletree.co.za/?p=56</guid>
		<description><![CDATA[UPDATE: This works on Ubuntu 8.10 Live-CD too, just boot the livecd and execute the install-mbr command I&#8217;ve fixed MBRs before, using both the Windows install CD, and also using grub from an Ubuntu Live-CD. Today, neither of these worked on an HP 6710b laptop, where an Ubuntu partition (which contained grub) was removed (In &#8230; </p><p><a class="more-link block-button" href="http://www.dociletree.co.za/fixing-windows-mbr-with-ubuntu-8041-live-cd/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE: This works on Ubuntu 8.10 Live-CD too, just boot the livecd and execute the install-mbr command</strong></p>
<p>I&#8217;ve fixed MBRs before, using both the Windows install CD, and also using grub from an Ubuntu Live-CD.  Today, neither of these worked on an HP 6710b laptop, where an Ubuntu partition (which contained grub) was removed (In favour of running Ubuntu inside <a href="http://www.virtuabox.de/">Virtualbox</a>).  The Windows XP Professional CD didn&#8217;t detect any harddrives to fix, and grub kept on giving a &#8220;That is not a valid block device&#8221; error.</p>
<p>Many Google search results later, I found an <a href="http://www.arsgeek.com/2008/01/15/how-to-fix-your-windows-mbr-with-an-ubuntu-livecd/">article on arsgeek</a> that showed how to use an Ubuntu package called <strong>ms-sys</strong> to put the MBR back.  Boot the CD, add the universe repository, apt-get update, install ms-sys, run ms-sys.  Sounded simple.  After waiting for the update to happen, I finally try to install ms-sys, to no avail.</p>
<p>More Google search results, and it turns out that <a href="https://answers.launchpad.net/ubuntu/+source/ms-sys/+question/28349">ms-sys was removed</a> from Debian Unstable, and thus removed from Ubuntu Hardy&#8217;s repositories, due to &#8220;Unresolved licensing issues&#8221;.</p>
<p>Luckily, a comment on the <a href="https://bugs.launchpad.net/unetbootin/+bug/218914">bug entry</a> asking why ms-sys was removed, pointed me to the <strong>mbr</strong> Ubuntu package that provides the same functionality as ms-sys.</p>
<p>So, how *does* one fix a Windows MBR with an Ubuntu 8.04.1 Live-CD?  Simple (Works with older Live-CDs too, from Dapper onwards):</p>
<ul>
<li>Boot from the Live-CD</li>
<li>Open up a Terminal and run: sudo vi /etc/apt/sources.list<br />And uncomment the 6 &#8216;universe&#8217; repositories at the bottom</li>
<li>Run: sudo apt-get update<br />to update the local repositories</li>
<li>Run: apt-get install mbr<br />to install the mbr package</li>
<li>Run: install-mbr <em>/dev/sda</em><br />where <em>/dev/sda</em> is your primary boot drive<br />This installs a default MBR to that drive</li>
</ul>
<p>Easy.<br />
Reboot and you&#8217;re set.<br />
No hassling with grub or lilo or dd&#8217;ing some dodgy MBR downloaded from some site.<br />
Yet another example of how Ubuntu saved some other commercial OS from destruction.  (Previously Ubuntu helped me save a SUSE 10 machine&#8217;s harddrive&#8230;)</p>
<p>Pity about having to update to the universe repositories first, the mbr package really should be part of the live cd.<br />
<script type="text/javascript"><!--
google_ad_client = "pub-5340065287056754";
google_ad_slot = "1550825432";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dociletree.co.za/fixing-windows-mbr-with-ubuntu-8041-live-cd/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

