<?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>blog.haraldkraft.de &#187; bcdedit</title>
	<atom:link href="http://blog.haraldkraft.de/tag/bcdedit/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.haraldkraft.de</link>
	<description>Blog Project of Harald Kraft</description>
	<lastBuildDate>Tue, 17 Jan 2012 16:46:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>BCDboot and BCDedit</title>
		<link>http://blog.haraldkraft.de/2009/07/bcdboot-and-bcdedit/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=bcdboot-and-bcdedit</link>
		<comments>http://blog.haraldkraft.de/2009/07/bcdboot-and-bcdedit/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 01:24:56 +0000</pubDate>
		<dc:creator>Harald Kraft</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[bcdedit]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[multiboot]]></category>
		<category><![CDATA[opensolaris]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.haraldkraft.de/?p=28</guid>
		<description><![CDATA[After the first complications with the quadruple boot, I was facing new ones when I tried to do everything again on a new hard drive. The installation order was 1. Windows XP 2. Windows 7 (which recognized the &#8220;old&#8221; XP and integrated it in the boot loader) 3. Ubuntu 9.04 4. OpenSolaris 2009.06 (for detailed [...]]]></description>
			<content:encoded><![CDATA[<p>After the first complications with the quadruple boot, I was facing new ones when I tried to do everything again on a new hard drive.<br />
The installation order was <strong>1.</strong> Windows XP <strong>2.</strong> Windows 7 (which recognized the &#8220;old&#8221; XP and integrated it in the boot loader) <strong>3.</strong> Ubuntu 9.04 <strong>4.</strong> OpenSolaris 2009.06<br />
(for detailed partition info see <a href="http://blog.haraldkraft.de/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2Jsb2cuaGFyYWxka3JhZnQuZGUvMjAwOS8wNi9xdWFkcnVwbGUtYm9vdC8=">quadruple-boot</a> blog entry).</p>
<p>The boot process would then be like this:</p>
<ul>
<li>load OpenSolaris GRUB from third primary</li>
<ol>
<li>boot OpenSolaris from third primary</li>
<li>load Microsoft bootloader from first primary</li>
<li>load Microsoft bootloader from second primary</li>
<ol>
<li>boot Windows 7 from C: (as first primary)</li>
<li>boot Windows XP from E: (as second primary)</li>
</ol>
<li>boot Ubuntu (several entries for different kernels) from logical</li>
</ol>
</ul>
<p><span id="more-28"></span><br />
It turned out that when installing Windows 7 over XP, it kept the second primary partition as booting partition and installed its bootloader there. Choosing <em>load Microsoft bootloader from second primary</em> in GRUB got me to the MS bootloader screen, where I was able to choose which Windows I would like to boot into. However, if I went for <em>load Microsoft bootloader from first primary</em>, I was getting this error message:<br />
<code>BOOTMGR is missing<br />
Press Ctrl+Alt+Del to restart</code><br />
or in German:<br />
<code>BOOTMGR fehlt<br />
Neustart mit Strg+Alt+Entf</code></p>
<p>It means that there was no MS bootloader (of any sort) located on the first primary partition (obviously because Win7 kept the second primary as boot partition).<br />
I was able to fix this by booting via the second primary partition into Windows 7 and running &#8220;<strong>bcdboot.exe C:\Windows C:</strong>&#8221; on the command line with elevated rights. This command would create the file <strong>C:\bootmgr</strong> as well as the directory <strong>C:\Boot</strong> (which contains the BCD registry file along with language files).<br />
After that I was perfectly able to choose the entry from GRUB which would load the MS bootloader from the first primary partition.<br />
(As a note: if you found this blog entry without having the same setup and a working Windows 7 or Vista installation, you can achieve the same effect via the Installation-DVDs. Maybe not via <strong>bcdboot</strong> but <strong>bootrec</strong>)</p>
<p>The second effect I encountered was, when I was trying to edit the text of the MS bootloader on the second partition (change &#8220;Earlier Windows version&#8221; into &#8220;Windows XP&#8221;), which is done via <strong>bcdedit.exe</strong>, all I found was this error message:<br />
<code>The boot configuration data store could not be opened.<br />
The system cannot find the file specified.</code><br />
in German:<br />
<code>Der Speicher für die Startkonfigurationsdaten konnte nicht geöffnet werden.<br />
Das System kann die angegebene Datei nicht finden.</code><br />
The reason for this is, bcdedit looks for its registry file (\Boot\BCD) <em>only</em> on the <strong>active</strong> partition. (You can check this on <a href="http://blog.haraldkraft.de/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3RlY2huZXQubWljcm9zb2Z0LmNvbS9lbi11cy9saWJyYXJ5L2NjNzIxODg2KFdTLjEwKS5hc3B4">this Microsoft site</a>)<br />
Note: BE CAREFUL about the program with which you make a partition active! You can safely do this for example via GRUB or Gparted. I strongly discourage from using diskmgmt.msc (under Windows): it removed Ubuntu&#8217;s swap and root partition from the partition table and I had no choice but to reinstall Ubuntu (this might be a bug in the Win 7 RC, but I think it&#8217;s rather a bug in the disk management console itself).</p>
<p>So, after some fuss about changing the active partitions back and forth while setting messages for the (different) MS boot loader(s), I renamed (just in case) the folder \Boot and file bootmgr on the second(!) primary partition, leaving just NTLDR on it.<br />
Because Windows XP was booting just fine, I am assuming, that an MS bootsector first looks for <strong>bootmgr</strong> and if it doesn&#8217;t find one, it looks for <strong>ntldr</strong>. (The reason why I believe this is, if I renamed the file ntldr as well, I got the above message about BOOTMGR missing).</p>
<p>The current setup now looks like this (after making the third primary, OpenSolaris, partition active again):</p>
<ul>
<li>load OpenSolaris GRUB from thirrd primary</li>
<ol>
<li>boot OpenSolaris from third primary</li>
<li>load Microsoft bootloader from first primary, which boots via bootmgr (into Win7)</li>
<li>load Microsoft bootloader from second primary, which boots via ntldr (into WinXP)</li>
<li>boot Ubuntu (several entries for different kernels) from logical</li>
</ol>
</ul>
 <img src="http://blog.haraldkraft.de/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=28" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.haraldkraft.de/2009/07/bcdboot-and-bcdedit/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

