<?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; opensolaris</title>
	<atom:link href="http://blog.haraldkraft.de/tag/opensolaris/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>&#8220;sudo&#8221; in OpenSolaris</title>
		<link>http://blog.haraldkraft.de/2011/11/sudo-in-opensolaris/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sudo-in-opensolaris</link>
		<comments>http://blog.haraldkraft.de/2011/11/sudo-in-opensolaris/#comments</comments>
		<pubDate>Sat, 12 Nov 2011 16:22:53 +0000</pubDate>
		<dc:creator>Harald Kraft</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[opensolaris]]></category>
		<category><![CDATA[sudo]]></category>

		<guid isPermaLink="false">http://blog.haraldkraft.de/?p=377</guid>
		<description><![CDATA[One of the objectives of this blog &#8211; when I started it &#8211; was to archive solutions to problems which took me a while to find. If at the time a Google search with the most common question to the problem didn&#8217;t show a page with a solution within the first results, I created a [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">One of the objectives of this blog &#8211; when I started it &#8211; was to archive solutions to problems which took me a while to find. If at the time a Google search with the most common question to the problem didn&#8217;t show a page with a solution within the first results, I created a blog post in order for it to be easier accessible for myself &#8211; along with sharing that solution with the open web. Furthermore, it&#8217;s a technique to remember things easier: <em>write them down once and you won&#8217;t forget</em>.</p>
<p><span id="more-377"></span></p>
<p style="text-align: justify;">In the beginning I was fooling around with a <a href="http://blog.haraldkraft.de/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2Jsb2cuaGFyYWxka3JhZnQuZGUvMjAwOS8wNi9xdWFkcnVwbGUtYm9vdC8=" title=\"Quadruple boot\">quad-boot system</a> including OpenSolaris.<br />
Unfortunately I haven&#8217;t been using OpenSolaris that much, so I kept forgetting what the equivalent to the Unix command <em>sudo</em> was. However I still remember that whenever I did use OpenSolaris, somehow it took me a while to find the answer &#8211; this might seem strange because when googling for &#8220;sudo in opensolaris&#8221; at this point in time, you will get the correct answer right away.</p>
<p style="text-align: justify;">Nevertheless I thought this might be worth a tiny blog post and personal reminder that the OpenSolaris equivalent to Unix&#8217;s sudo is <em>pfexec</em>:</p<br />
<code>pfexec &lt;command&gt;</code></p>
<p style="text-align: justify;">or if I may quote <a href="http://blog.haraldkraft.de/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2RldmVsb3BlcnMuc3VuLmNvbS9kZXZlbG9wZXIvdGVjaG5pY2FsQXJ0aWNsZXMvb3BlbnNvbGFyaXMvcGZleGVjLmh0bWw=" title=\"pfexec\">Sun/Oracle</a>: <em>"In effect, pfexec functions as a passwordless su or sudo in Linux."</em></p>
 <img src="http://blog.haraldkraft.de/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=377" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.haraldkraft.de/2011/11/sudo-in-opensolaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>
		<item>
		<title>Quadruple boot</title>
		<link>http://blog.haraldkraft.de/2009/06/quadruple-boot/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=quadruple-boot</link>
		<comments>http://blog.haraldkraft.de/2009/06/quadruple-boot/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 21:57:56 +0000</pubDate>
		<dc:creator>Harald Kraft</dc:creator>
				<category><![CDATA[Technical]]></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=13</guid>
		<description><![CDATA[Setting up my new computer (AMD Phenom II X4 810 (Deneb), 4&#215;2.6GHz, 8192MB RAM, 500GB WesternDigital, GeForce 9400GT, 1GBit+54MBit) was a bitch. Especially since I wanted a very specific OS setup. The primary targets were Windows XP (SP3) and Ubuntu (9.04) for coding purposes, secondly Windows 7 RC for testing purposes and OpenSolaris for experience. [...]]]></description>
			<content:encoded><![CDATA[<p>Setting up my new computer (AMD Phenom II X4 810 (Deneb), 4&#215;2.6GHz, 8192MB RAM, 500GB WesternDigital, GeForce 9400GT, 1GBit+54MBit) was a bitch. Especially since I wanted a very specific OS setup.</p>
<p>The primary targets were Windows XP (SP3) and Ubuntu (9.04) for coding purposes, secondly Windows 7 RC for testing purposes and OpenSolaris for experience.<br />
I did a lot of installing and reinstalling this past week, until I finally managed to get all four systems working and accessible.</p>
<p><span id="more-13"></span><br />
The original partitioning plan was to have two primary partitions and a few logical partitions (inside an extended partition, of course), so there will be room for more systems. After installing Windows XP to the second (primary) partition and Windows 7 in the first, I found out, that the OpenSolaris installer did not create a logical partition (as expected) in the extended partition, but deleted the extended and created a solaris partition (with new size) instead. But because I wanted OpenSolaris to be in a logical partition, I used GParted to created the extended partition again and prepared a dedicated (logical) partition for OpenSolaris. Unfortunately OpenSolaris doesn&#8217;t see behind the walls of the extended partition, so &#8211; again with GParted &#8211; I shrunk the extended and created a third primary partition for OpenSolaris. This time the installer used the partition correctly &#8211; nevertheless it contains bugs, and that&#8217;s why the installation failed on first try. But with the help of <a href="http://blog.haraldkraft.de/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2Jsb2dzLnN1bi5jb20vb2JzZXJ2YXRvcnkvZW50cnkvdHJpcGxlX2Jvb3RfcGFydF8zX2luc3RhbGw=">this awesome guide</a> I managed to also take this hurdle. Finally, after installing Ubuntu, I decided I would want to use OpenSolaris&#8217; grub rather than Ubuntu&#8217;s (I can&#8217;t quite recall whether it was just a visual reason or whether there was more&#8230;).</p>
<p>Furthermore I had to face other issues: Windows XP installed itself on drive E:, because it recognized the first primary partition as C: and the card reader as D: (even though E: is the second primary partition), I still haven&#8217;t figured out why. Also, after installing Windows 7 and OpenSolaris, I couldn&#8217;t boot XP anymore (copying NTLDR and stuff didn&#8217;t help). And last but not least, for (still) unknown reason, Windows 7 wouldn&#8217;t start <em>bcdedit</em> anymore (yes, even though I started it from a commando prompt with elevated rights).</p>
<p>In order to get Windows XP booting again, I had no choice but to reinstall it (fixmbr from the installation disk wouldn&#8217;t work). So I also had to reinstall Windows 7, because from the RC disk I couldn&#8217;t start bcdedit, either. This time, however, the Windows 7 installer did not recognize Windows XP as a previously installed version &#8211; nevertheless I was able to add Windows XP to the MS bootloader.<br />
OpenSolaris and Ubuntu were still were they belonged, but I had to get them booting again. Trying to restore OpenSolaris&#8217; GRUB (and load it into the MBR) failed with read/write errors, as also shown in <a href="http://blog.haraldkraft.de/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5saW51eHF1ZXN0aW9ucy5vcmcvcXVlc3Rpb25zL3NvbGFyaXMtb3BlbnNvbGFyaXMtMjAvc29sYXJpcy0xMC0xMDA4LWdydWItc3RhZ2UyLWZhaWxlZC11bmJvb3RhYmxlLWluc3RhbGxhdGlvbi03MDA4MDAv">this</a> thread. I tried it many times, never successfully though. I thought, the heck with it, I&#8217;ll use Ubuntu&#8217;s GRUB. Well, I wasn&#8217;t able to restore that one, either: <em>stage1</em> couldn&#8217;t be read correctly. According to <a href="http://blog.haraldkraft.de/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3dpa2kuYXJjaGxpbnV4Lm9yZy9pbmRleC5waHAvUmVpbnN0YWxsaW5nX0dSVUI=">this</a> wiki entry, with an inode size other than 128, GRUB isn&#8217;t able to read from the filesystem. I thought the situation is rather kinda stupid, that the Ubuntu installer creates a partition with an inode size that GRUB won&#8217;t be able to read? So I decided to try with OpenSolaris&#8217; GRUB again.</p>
<p>I could boot into OpenSolaris, but just using the LiveCD and entering GRUB commands manually (<strong>rootnoverify (hd0,2)</strong>, <strong>chainloader +1</strong>) &#8211; because at the moment, Windows 7&#8242;s bootloader was booting at system start. Since trying to restore OpenSolars&#8217; GRUB back to the MBR (see <a href="http://blog.haraldkraft.de/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2Jsb2dzLnN1bi5jb20vb2JzZXJ2YXRvcnkvZW50cnkvdHJpcGxlX2Jvb3RfcGFydF81X3JlaW5zdGFsbGluZw==">this</a>) still failed, I was again looking for solutions online. I stumbled across <a href="http://blog.haraldkraft.de/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5rb2wtaG93LW9wZW5zdWctb3Blbmp1Zy5vcmcvaW5kZXgucGhwP29wdGlvbj1jb21fbXlibG9nJiMwMzg7c2hvdz1SZWNvdmVyLU9wZW5Tb2xhcmlzLUhvdy10by0uaHRtbCYjMDM4O0l0ZW1pZD03MQ==">this page</a> (currently only accessible via <a href="http://blog.haraldkraft.de/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovLzIwOS44NS4xMzUuMTMyL3NlYXJjaD9xPWNhY2hlOlBCQ0RfcWk3ZUI4Sjp3d3cua29sLWhvdy1vcGVuc3VnLW9wZW5qdWcub3JnL2luZGV4LnBocCUzRm9wdGlvbiUzRGNvbV9teWJsb2clMjZzaG93JTNEUmVjb3Zlci1PcGVuU29sYXJpcy1Ib3ctdG8tLmh0bWwlMjZJdGVtaWQlM0Q3MStvcGVuc29sYXJpcytyZXN0b3JlK2dydWImIzAzODtjZD0zJiMwMzg7aGw9ZGUmIzAzODtjdD1jbG5rJiMwMzg7Z2w9ZGU=">Google cache</a>), which sounded really easy: just activate the OpenSolaris partition again. Could it really be that simple? It was. After making the partition active, GRUB fired up at system start, and I could boot into all four systems. For Ubuntu I had to adjust the menu.lst settings though: Jaunty uses <em>uuid</em> rather than <em>root</em> by default, but somehow OpenSolaris&#8217; GRUB can&#8217;t yet deal with this.</p>
<p>Status quo: At system start I will see the OpenSolaris GRUB with Windows 7, Windows XP, OpenSolaris and Ubuntu as boot options. Windows 7 gets me to the Microsoft bootloader (where I again can choose between 7 and XP, which I added via bcdedit in the beginning). Otherwise I can boot the three remaining systems directly.</p>
<p>Finally, I got the system I wanted: Four operating systems, bootable without inconvenience <img src='http://blog.haraldkraft.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>[UPDATE 07/07/09:] In order to fix problems with the Windows boot loader, I was using the description at <a href="http://blog.haraldkraft.de/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5rb21iaXR6LmNvbS8yMDA5LzAxLzEzL2hvdy10by1hZGQtd2luZG93cy14cC10by13aW5kb3dzLTctYm9vdC1tYW5hZ2VyLw==">this page</a>.<br />
But using the &#8220;manpages&#8221; via <strong><em>bcdedit.exe /?</em></strong> also helped. [/UPDATE]</p>
 <img src="http://blog.haraldkraft.de/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=13" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.haraldkraft.de/2009/06/quadruple-boot/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

