<?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>ClearChain &#187; grub</title>
	<atom:link href="http://www.clearchain.com/blog/tags/grub/feed" rel="self" type="application/rss+xml" />
	<link>http://www.clearchain.com/blog</link>
	<description>-= Daily Happenings =-</description>
	<lastBuildDate>Sun, 25 Jul 2010 15:47:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>FreeBSD &amp; WINDOWS VISTA</title>
		<link>http://www.clearchain.com/blog/posts/freebsd-windows-vista</link>
		<comments>http://www.clearchain.com/blog/posts/freebsd-windows-vista#comments</comments>
		<pubDate>Fri, 07 Nov 2008 03:43:22 +0000</pubDate>
		<dc:creator>Benjamin Close</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[bcdedit]]></category>
		<category><![CDATA[bootloader]]></category>
		<category><![CDATA[dual boot]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[mbr]]></category>
		<category><![CDATA[vista]]></category>

		<guid isPermaLink="false">http://www.clearchain.com/blog/?p=44</guid>
		<description><![CDATA[Dual Booting Windows Vista &#38; FreeBSD / Linux / Some other OS The Problem After installing Windows Vista Enterprise Edition, I very quickly wanted to get back to FreeBSD. As per previous versions of Windows, Vista does a great job of overwriting the Master boot record (MBR). Unlike previous versions of windows, you cannot just [...]]]></description>
			<content:encoded><![CDATA[<p><big>Dual Booting Windows Vista &amp; FreeBSD / Linux / Some other OS</big></p>
<h2><span class="mw-headline">The Problem</span></h2>
<p>After installing Windows Vista Enterprise Edition, I very quickly wanted to get back to FreeBSD. As per previous versions of Windows, Vista does a great job of overwriting the Master boot record (MBR). Unlike previous versions of windows, you cannot just install a different boot loader in the MBR &#8211; so I found out the hard way. (It used to be sooo easy fdisk /mbr would fix any broken boot sectors, then just install your favourite boot loader).<span id="more-44"></span></p>
<p>Vista writes a unique disk id in the MBR. This unique id (UID) is used by Vista to determine what disk is what. It does make some sense, Hardware can shift around, but the UID should always be the same. This allows Vista to always know where it&#8217;s files are and to appropriate label drive C: as the correct drive.</p>
<p>Installing another boot loader, however (ie Grub, lilo, the FreeBSD boot0 / boot loader /boot manager) will overwrites the UID in the MBR and Vista fails to load with an error:</p>
<pre>"unable to access \windows\winload.exe"</pre>
<p>The error message is semi appropriate but very misleading. What it really should say is &#8221;I can&#8217;t work out which of my the drives has my files on it hence I can&#8217;t find winload.exe&#8221;.</p>
<ul>
<li>&#8216;Full details about the UID can be found at: <a class="external free" title="http://multibooters.co.uk/mbr.html" rel="nofollow" href="http://multibooters.co.uk/mbr.html">http://multibooters.co.uk/mbr.html</a></li>
</ul>
<p><a name="Existing_Solutions"></a></p>
<h3><span class="mw-headline">Existing Solutions</span></h3>
<p>Out on the web there is many solutions to the dreaded winload.exe. Many of them are misleading, some I believe are not even tested. Also many apply to Vista Release Candidate 1 (rc1) which I believe didn&#8217;t required the UID to be present in order to successfully boot. Below is some of the solutions that people say work (but Ifound didn&#8217;t).</p>
<p><a name="Using_Grub"></a></p>
<h4><span class="mw-headline">Using Grub</span></h4>
<ul>
<li>Ref: <a class="external free" title="http://ubuntuforums.org/showthread.php?t=358175" rel="nofollow" href="http://ubuntuforums.org/showthread.php?t=358175">http://ubuntuforums.org/showthread.php?t=358175</a></li>
<li>Ref: <a class="external free" title="http://blogs.sun.com/moinakg/entry/vista_and_solaris_express_dual" rel="nofollow" href="http://blogs.sun.com/moinakg/entry/vista_and_solaris_express_dual">http://blogs.sun.com/moinakg/entry/vista_and_solaris_express_dual</a></li>
</ul>
<p>Some say grub loading windows with something like:</p>
<pre>Title Vista
  root (hd0,0)
  makeactive
  chainloader +1</pre>
<p>will work &#8211; but grub still over writes the MBR hence the same issue will occur &#8211; though you may be lucky as the grub MBR is really small (and might leave the UID) untouched.</p>
<p><a name="Using_gag"></a></p>
<h4><span class="mw-headline">Using gag</span></h4>
<p>There&#8217;s reports on a FreeBSD mailing list that gag will work, thought I&#8217;m running FreeBSD/amd64 which gag or grub for that matter won&#8217;t compile on. I know I could always install the lib32 compatability distribution to use it but I wanted the default FreeBSD boot loader.</p>
<p><a name="Using_the_Vista_Boot_Loader"></a></p>
<h4><span class="mw-headline">Using the Vista Boot Loader</span></h4>
<ul>
<li>Refs: <a class="external free" title="http://www.tech-recipes.com/rx/2014/vista_using_bcdedit_boot_up_options_dual_boot_xp_prof'" rel="nofollow" href="http://www.tech-recipes.com/rx/2014/vista_using_bcdedit_boot_up_options_dual_boot_xp_prof'">http://www.tech-recipes.com/rx/2014/vista_using_bcdedit_boot_up_options_dual_boot_xp_prof&#8217;</a></li>
</ul>
<p>Many people have given up on trying to use a normal boot loader, and instead use the Vista boot loader.<br />
The WinXP/NT bootloader (ntldr &amp; config file boot.ini) have been replaced with files winboot.exe and bcedit.exefor configuration.</p>
<p>Theses commands could be setup to boot other operating systems though your milege may vary.</p>
<p><a name="Commercial_Software"></a></p>
<h4><span class="mw-headline">Commercial Software</span></h4>
<p>Many people have decided it&#8217;s all too hard and gone and purchased software to handle it for them &#8211; there&#8217;s lots out there</p>
<ul>
<li>VistaBoot (<a class="external free" title="http://vistabootpro.org" rel="nofollow" href="http://www.vistabootpro.org/">http://vistabootpro.org</a>)</li>
<li>EasyBCD</li>
</ul>
<p><a name="Utilities"></a></p>
<h4><span class="mw-headline">Utilities</span></h4>
<ul>
<li>Ref: <a class="external free" title="http://www.sysint.no/en/Download.aspx" rel="nofollow" href="http://www.sysint.no/en/Download.aspx">http://www.sysint.no/en/Download.aspx</a></li>
</ul>
<p>There is many utilities that claim to fix the issue. One such util is MBRFix.exe, this fixes the fact that vista won&#8217;t boot but it will clobber any boot loader you have got installed.</p>
<p><a name="The_Fix_.28That_Worked.29"></a></p>
<h2><span class="mw-headline">The Fix (That Worked)</span></h2>
<ul>
<li>Obtained from: <a class="external free" title="http://forum.onmac.net/showthread.php?t=1324" rel="nofollow" href="http://forum.onmac.net/showthread.php?t=1324">http://forum.onmac.net/showthread.php?t=1324</a></li>
</ul>
<p>The simple fix is to tell Vista that the drive it boots off of will always be the drive it can find its files on. This way you can clobber the UID in the MBR as much as you want and Vista won&#8217;t care. To do this you run:</p>
<pre>BCDEDIT /set {bootmgr} device boot
BCDEDIT /set {default} device boot
BCDEDIT /set {default} osdevice boot</pre>
<p>This can be run from either the Vista repair cd, from within Vista, or from something like<a class="external free" title="http://www.ultimatebootcd.com" rel="nofollow" href="http://www.ultimatebootcd.com/">http://www.ultimatebootcd.com</a> (For Windows).</p>
<p><a name="Conclusion"></a></p>
<h2><span class="mw-headline">Conclusion</span></h2>
<p>Hence it IS possible to run Vista with any boot loader that you like &#8211; in my case the FreeBSD boot loader is the one of choice.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clearchain.com/blog/posts/freebsd-windows-vista/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
