<?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>eldergods.org &#187; Solaris</title>
	<atom:link href="http://www.eldergods.org/wp/category/unix/solaris/feed" rel="self" type="application/rss+xml" />
	<link>http://www.eldergods.org/wp</link>
	<description>We can't stop here.  This is bat country.</description>
	<lastBuildDate>Tue, 20 Jul 2010 00:55:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Sun collection</title>
		<link>http://www.eldergods.org/wp/2008/12/sun-collection</link>
		<comments>http://www.eldergods.org/wp/2008/12/sun-collection#comments</comments>
		<pubDate>Tue, 16 Dec 2008 04:13:02 +0000</pubDate>
		<dc:creator>mcclung</dc:creator>
				<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://www.eldergods.org/?p=17</guid>
		<description><![CDATA[So awhile ago, I got greedy and tried to install a 400GB IDE drive in a Sunblade 150 I&#8217;d got for cheap. Those of you who are more familiar with that hardware than I was (or am, really), will already be laughing at what a stupid idea that was. For those of you who don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>So awhile ago, I got greedy and tried to install a 400GB IDE drive in a Sunblade 150 I&#8217;d got for cheap.  Those of you who are more familiar with that hardware than I was (or am, really), will already be laughing at what a stupid idea that was.  For those of you who don&#8217;t know, it can only address about 138GB per drive.  The math is out there, but basically it&#8217;s a limitation of the IDE controller&#8230; and doesn&#8217;t apply to SCSI and FC drives in any of the Sun boxes, which is probably why this never occurred to me.</p>
<p>So&#8230; I backed off that plan and installed a pair of 120GB drives.  Now the system won&#8217;t boot.   And the console is, shall we say, unresponsive.  I live a charmed life, I tell ya.</p>
<p>As a result, I have since collected a couple of other old Sun workstations via Ebay and the employee purchase program at work (which are basically &#8220;worthless&#8221;, like $65), and even an old Pentium 4 for Solaris x86.   So I&#8217;ve got the gear, but I haven&#8217;t had time to continue with any but the most cursory examinations of OpenSolaris.   I got 2 of them booted up with ZFS root on fairly recent versions of Nevada.   Waiting for the SPARC release of Indiana to be readily available.</p>
<p>In the meantime, I thought I might work on some of my other Solaris related projects.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.eldergods.org/wp/2008/12/sun-collection/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solaris recovery</title>
		<link>http://www.eldergods.org/wp/2008/03/solaris-recovery</link>
		<comments>http://www.eldergods.org/wp/2008/03/solaris-recovery#comments</comments>
		<pubDate>Sun, 23 Mar 2008 23:15:38 +0000</pubDate>
		<dc:creator>mcclung</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.eldergods.org/?p=26</guid>
		<description><![CDATA[Recently, a friend contacted me about recovery of a Solaris box he had made a bit of a mistake on. The problem was, he had moved everything from / into a subdirectory of /, let&#8217;s call it /cores for our purposes here. Commands wouldn&#8217;t work. He had a running /sbin/sh shell but that was it&#8230;. [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, a friend contacted me about recovery of a Solaris box he had made a bit of a mistake on.    The problem was, he had moved everything from / into a subdirectory of /, let&#8217;s call it /cores for our purposes here.   Commands wouldn&#8217;t work.    He had a running /sbin/sh shell but that was it&#8230;. so shell built-ins were all he could do e.g. &#8220;echo *&#8221;.    We fixed it pretty quick, with only minor residual problems, but I thought I&#8217;d put down the method here in case it helps someone sometime.</p>
<p>The first problem is that libraries are no longer found along their proper paths&#8230;. libc.so is the first problem.   That&#8217;s easily fixed, however.</p>
<pre>
# export LD_LIBRARY_PATH=/cores/usr/lib:/cores/lib
</pre>
<p>That&#8217;s the simple part, I&#8217;m sure most people know the LD_LIBRARY_PATH tricks to force searching for libraries in other directories.   The part that I don&#8217;t think people get is&#8230; once you&#8217;ve done that &#8220;ld.so.1&#8243; (the runtime linker) is still in the wrong place.   ld.so.1 is responsible for using the LD_* variables in the first place, among the many other wonderful things it does.   So running commands from, for example, /cores/usr/bin is still impossible, at least in the standard way.</p>
<p>The second and final trick you need to fix this is to use ld.so.1 to &#8220;run&#8221; the executable.   So, this fails:</p>
<pre>
# /cores/usr/bin/mv /cores/* /
mv: Cannot find /usr/lib/ld.so.1
Killed
</pre>
<p>But this allows you to run a command like you&#8217;d expect:</p>
<pre>
/cores/usr/lib/ld.so.1 /cores/usr/bin/mv /cores/* /
</pre>
<p>Turns out, you can use &#8220;ld.so.1&#8243; as an &#8220;interpreter&#8221; of sorts for executables on some flavors of Unix.    At least Solaris and Linux, but I would not be surprised if this works elsewhere, I simply haven&#8217;t tested it.  On Linux, for example, you would use something like:</p>
<pre>
/lib/ld-linux.so.2 /bin/ls
</pre>
<p>To run &#8220;ls&#8221; in this fashion.</p>
<p>The lesson, boys and girls, is to know your runtime linker, it may save you one day.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.eldergods.org/wp/2008/03/solaris-recovery/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
