<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>One Cool Blog</title>
	<atom:link href="http://onecool1.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://onecool1.wordpress.com</link>
	<description>open source at www.onecool.com</description>
	<lastBuildDate>Thu, 19 May 2011 22:43:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='onecool1.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>One Cool Blog</title>
		<link>http://onecool1.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://onecool1.wordpress.com/osd.xml" title="One Cool Blog" />
	<atom:link rel='hub' href='http://onecool1.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Discontinuing this blog</title>
		<link>http://onecool1.wordpress.com/2010/04/02/discontinuing-this-blog/</link>
		<comments>http://onecool1.wordpress.com/2010/04/02/discontinuing-this-blog/#comments</comments>
		<pubDate>Fri, 02 Apr 2010 14:28:02 +0000</pubDate>
		<dc:creator>onecool1</dc:creator>
				<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://onecool1.wordpress.com/?p=80</guid>
		<description><![CDATA[To those who come across this blog, please note that I am discontinuing it for my personal Blogger blog instead. I have recently launched a small web site about myself which I hope will serve as the anchor point of my on-line future. Please do come by and drop me a line. Thanks for coming [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onecool1.wordpress.com&amp;blog=4860049&amp;post=80&amp;subd=onecool1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To those who come across this blog, please note that I am discontinuing it for <a href="http://blog.stevedowe.me.uk">my personal Blogger blog</a> instead.  I have recently launched <a href="http://www.stevedowe.me.uk">a small web site about myself</a> which I hope will serve as the anchor point of my on-line future.   Please do come by and drop me a line.</p>
<p>Thanks for coming to visit onecool1 and see you around!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/onecool1.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/onecool1.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/onecool1.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/onecool1.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/onecool1.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/onecool1.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/onecool1.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/onecool1.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/onecool1.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/onecool1.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/onecool1.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/onecool1.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/onecool1.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/onecool1.wordpress.com/80/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onecool1.wordpress.com&amp;blog=4860049&amp;post=80&amp;subd=onecool1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://onecool1.wordpress.com/2010/04/02/discontinuing-this-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4fa26b5ca70f70b7763e969cc91225c8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">onecool1</media:title>
		</media:content>
	</item>
		<item>
		<title>Google&#8217;s Gambit</title>
		<link>http://onecool1.wordpress.com/2010/01/13/googles-gambit/</link>
		<comments>http://onecool1.wordpress.com/2010/01/13/googles-gambit/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 10:24:45 +0000</pubDate>
		<dc:creator>onecool1</dc:creator>
				<category><![CDATA[Censorship]]></category>
		<category><![CDATA[China]]></category>
		<category><![CDATA[Freedom]]></category>
		<category><![CDATA[Geography]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Politics]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[USA]]></category>
		<category><![CDATA[democracy]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://onecool1.wordpress.com/?p=74</guid>
		<description><![CDATA[In business, to turn away just under 20% of your business to comply with your own principles must be a hard call to make.  But Google is global, and perhaps 4.8 billion people in the rest of the world is a sufficient number to target with AdWords campaigns...

But what is really happening here?<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onecool1.wordpress.com&amp;blog=4860049&amp;post=74&amp;subd=onecool1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>News abounds today of Google&#8217;s statement, relating to its operations in China.  The statement indicated that Google would consider exiting China completely if it could not operate, with government approval, in an unrestricted manner.  The post is here: <a href="http://googleblog.blogspot.com/2010/01/new-approach-to-china.html">http://googleblog.blogspot.com/2010/01/new-approach-to-china.html</a></p>
<p>In business, to turn away just under 20% of your potential revenue to comply with your own principles must be a hard call to make.  But Google is global, and perhaps 4.8 billion people in the rest of the world is a sufficient number to target with AdWords campaigns&#8230;</p>
<p>But what is really happening here?  It&#8217;s difficult to believe that Google would invest so much time and effort, installing services in 2006, and then expect that within 4 years Beijing would accede to Google&#8217;s &#8220;wisdom&#8221; and suddenly allow freedom of speech.  Within 4 years? After thousands of years of communist, dynastic and, occasionally, even tyrannical rule? No, somehow this seems unlikely.</p>
<p>It&#8217;s a surprising move by Google; one that could incite anything from a murmur of disquiet amongst the ranks of young Chinese teens, avidly seeking knowledge and understanding, to full-blown protests, perhaps even riots.  It&#8217;s something of a political move, too: reading between the lines, it would appear that Google suspects Beijing of orchestrating the cyber-attacks on it and the twenty or so other organisations, as mentioned in their blog.  By saying &#8220;play fair or don&#8217;t play at all&#8221;, Google may be vocalising the sentiments of the underclasses, still struggling to be heard from within the provinces.</p>
<p>Something that has not been mentioned (to my knowledge) so far in the press is the opportunity to expose Hong Kong.  Under Chinese rule, but with special provisions (such as more liberal allowances on internet services), Hong Kong would present a potential new base for Google&#8217;s Chinese operation.  But perhaps that&#8217;s a step too far?</p>
<p>The question remains whether it&#8217;s a viable exercise, and for viability, read &#8220;bottom-line&#8221;.  Implementing the required censorship and publishing restrictions as required by the Chinese government will likely have been more technical trouble than they&#8217;re worth for Google, who elsewhere in the world have hands-down probably the most advanced information and revenue infrastructure to be found.  </p>
<p>But information and revenue go hand in hand in Google&#8217;s business model.  The less information, the less dynamism on-site, then the less interest there will likely be and the less uptake, over time.  Google works in the west because there are virtually no limits, within the law, on trading ideas and services.  In the far east, Google may have just observed a synergy that works to the detriment of its model.  It may also be outgunned by larger powers at work; Beijing&#8217;s insurance.</p>
<p>We shall see if Google&#8217;s gambit, encouraging closer but more open ties with Beijing, will pay off.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/onecool1.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/onecool1.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/onecool1.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/onecool1.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/onecool1.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/onecool1.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/onecool1.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/onecool1.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/onecool1.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/onecool1.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/onecool1.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/onecool1.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/onecool1.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/onecool1.wordpress.com/74/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onecool1.wordpress.com&amp;blog=4860049&amp;post=74&amp;subd=onecool1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://onecool1.wordpress.com/2010/01/13/googles-gambit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4fa26b5ca70f70b7763e969cc91225c8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">onecool1</media:title>
		</media:content>
	</item>
		<item>
		<title>Diagnose and fix &#8216;SELinux is preventing mysqld (mysqld_t)&#8217;</title>
		<link>http://onecool1.wordpress.com/2009/10/13/diagnose-and-fix-selinux-is-preventing-mysqld-mysqld_t/</link>
		<comments>http://onecool1.wordpress.com/2009/10/13/diagnose-and-fix-selinux-is-preventing-mysqld-mysqld_t/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 11:17:48 +0000</pubDate>
		<dc:creator>onecool1</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[SELinux]]></category>

		<guid isPermaLink="false">http://onecool1.wordpress.com/?p=56</guid>
		<description><![CDATA[The full title of this blog should really be &#8216;SELinux is preventing mysqld (mysqld_t) &#8220;search&#8221; to ./tmp (public_content_rw_t)&#8217; as that is the problem I&#8217;ve been having with CentOS recently (and hence my searches on the web for a solution). The cause of the problem I use SugarCRM for customer and project management data &#8211; and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onecool1.wordpress.com&amp;blog=4860049&amp;post=56&amp;subd=onecool1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The full title of this blog should really be &#8216;SELinux is preventing mysqld (mysqld_t) &#8220;search&#8221; to ./tmp (public_content_rw_t)&#8217; as that is the problem I&#8217;ve been having with CentOS recently (and hence my searches on the web for a solution).</p>
<p><strong>The cause of the problem</strong></p>
<p>I use <a href="http://www.sugarcrm.com">SugarCRM for customer and project management data</a> &#8211; and very good it is too! (Gratuitous plug &#8211; I can help your company install and use this fine software <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />   ).  Except that recently, when listing my Accounts within Sugar, I would not see all of the account context.  Only the account data itself would be displayed and none of the subpanels/links.  The query to retrieve more data was failing, with this error message displayed in the browser window:</p>
<p><span id="more-56"></span><code>mysqld: Can't create/write to file '/tmp/#08y2jw' (Errcode: 13)</code></p>
<p>In my system log (/var/log/messages), I also got multiple SELinux errors like this:</p>
<p><code>Oct 13 09:07:50 server setroubleshoot: SELinux is preventing mysqld (mysqld_t) "read" to ./tmp (public_content_rw_t). For complete SELinux messages. run sealert -l 1762c478-f3a2-4eeb-be09-bd3dc037d945</code></p>
<p>Clearly, the reason for &#8220;Errcode: 13&#8243; was due to SELinux.</p>
<p>Incidentally. if you have seen a similar error on your web site, but with (Errcode: 28) instead, this is likely due to shortage of disk space.  A great way of determining operating system errors like this, is to use &#8216;PError&#8217;, thus:</p>
<p><code># perror 28<br />
OS error code  28:  No space left on device</code></p>
<p><code># perror 13<br />
OS error code  13:  Permission denied</code></p>
<p>So there we are &#8211; two distinct and different issues.</p>
<p>With SELinux, resolving the permission issue can be difficult.  By issuing # sealert -l 1762c478-f3a2-4eeb-be09-bd3dc037d945, as suggested above, I got  the following output (trimmed and highlighted for clarity):</p>
<blockquote><p><code><strong>Summary:</strong></code></p>
<p>SELinux is preventing mysqld (mysqld_t) &#8220;search&#8221; to ./tmp (public_content_rw_t).</p>
<p><strong>Allowing Access:</strong></p>
<p>Sometimes labeling problems can cause SELinux denials. You could try to restore<br />
the default system file context for ./tmp,</p>
<p>restorecon -v &#8216;./tmp&#8217;</p>
<p><strong>Additional Information:</strong></p>
<p>Source Context                root:system_r:<strong>mysqld_t</strong><br />
Target Context                system_u:object_r:<strong>public_content_rw_t</strong></p></blockquote>
<p>First things first: issuing <code># restorecon -v './tmp'</code> didn&#8217;t fix it for me.  I was also surprised to see that the path to /tmp was relative to the current working directory, so I tried a slightly modified <code># restorecon -v '/tmp'</code>, but to no avail.  After restarting mysqld, the problem persisted: MySQL was simply being refused access to /tmp.  Somewhere, a policy is disallowing this.</p>
<p>It&#8217;s a mistake to assume the the source context and target context should be the same; they don&#8217;t have to be, as it&#8217;s entirely policy-driven.  I made bold those aspects (the file Type) above to highlight this incorrect assumption (that I previously held).</p>
<p><strong>Find and fix a policy? </strong></p>
<p>Although finding the troublesome policy and analysing it is a Good Thing, it&#8217;s also time-consuming and requires significant knowledge of SELinux, chiefly to avoid creating security holes.  A better way, I found, was simply to relocate where mysqld tries to store temporary data.</p>
<p>Thanks to <a href="http://surachartopun.com/2009/01/mysql-table-partitioning-error-1-hy000.html">Surachart Opun&#8217;s blog</a>, I learned that you can specify a new location for temporary files.  In /etc/my.cnf, add or edit the following:</p>
<p><code>[mysqld]<br />
tmpdir=/tmp  # &lt;--- change this to a location that SELinux allows mysqld to write data.<br />
# e.g.<br />
tmpdir=/var/lib/mysql/tmp<br />
</code></p>
<p>Now do the legwork to set up the directory properly:</p>
<p>First, create directory with appropriate permissions<br />
<code># cd /var/lib/mysql<br />
# mkdir tmp<br />
# chown mysql:mysql tmp<br />
# chmod 1750 tmp</code></p>
<p>Now set the SELinux context up:<br />
<code># chcon --reference /var/lib/mysql tmp</code></p>
<p>and make the SELinuiux context permanent:<br />
<code># semanage fcontext -a -t mysql_db_t "/var/lib/mysql/tmp(/.*)?"</code></p>
<p>Finally, restart mysql:</p>
<div id="attachment_65" class="wp-caption alignright" style="width: 260px"><img class="size-full wp-image-65" title="Screenshot of SugarCRM" src="http://onecool1.files.wordpress.com/2009/10/screenshot_of_sugarcrm.jpg?w=250&#038;h=195" alt="Open Source CRM system" width="250" height="195" /><p class="wp-caption-text">SugarCRM - Open Source CRM system</p></div>
<p># service mysqld restart</p>
<p><strong>Closing thoughts: optimisation</strong><br />
The methods above fixed the particular problem I was having.  They didn&#8217;t, however, actually pinpoint the cause.  This is one of the good things about Linux and SELinux in particular: you are forced to rethink what the system is doing and work out a solution that sits within the predefined security context &#8211; or learn how to write SELinux policies.  Personally, I prefer the former <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>There is an additional benefit to the solution above &#8211; namely, optimisation.  Because we have specified the security context with semanage, we are free to mount an external file system and use that instead for MySQL&#8217;s temporary files.  In other words, we can maintain the security but increase the performance.  One such filesystem could be tmpfs.  tmpfs is actually a RAM Disk, uses a fixed amount of RAM to provide file storage.  It is much quicker than an on-disk filesystem and thus perfectly optimised for storing temporary, caching data.  There are many resources about tmpfs on the web.  A <a href="http://planet.admon.org/2009/09/ramfs-sysfs-and-tmpfs-on-linux/">good introduction to tmpfs</a> can be at <a href="http://planet.admon.org">Planet Admon</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/onecool1.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/onecool1.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/onecool1.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/onecool1.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/onecool1.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/onecool1.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/onecool1.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/onecool1.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/onecool1.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/onecool1.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/onecool1.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/onecool1.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/onecool1.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/onecool1.wordpress.com/56/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onecool1.wordpress.com&amp;blog=4860049&amp;post=56&amp;subd=onecool1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://onecool1.wordpress.com/2009/10/13/diagnose-and-fix-selinux-is-preventing-mysqld-mysqld_t/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4fa26b5ca70f70b7763e969cc91225c8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">onecool1</media:title>
		</media:content>

		<media:content url="http://onecool1.files.wordpress.com/2009/10/screenshot_of_sugarcrm.jpg" medium="image">
			<media:title type="html">Screenshot of SugarCRM</media:title>
		</media:content>
	</item>
		<item>
		<title>Fedora 11 &#8211; still struggling with KDE?</title>
		<link>http://onecool1.wordpress.com/2009/10/12/fedora-11-still-struggling-with-kde/</link>
		<comments>http://onecool1.wordpress.com/2009/10/12/fedora-11-still-struggling-with-kde/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 10:49:02 +0000</pubDate>
		<dc:creator>onecool1</dc:creator>
				<category><![CDATA[fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[panel]]></category>
		<category><![CDATA[plasma]]></category>
		<category><![CDATA[widgets]]></category>

		<guid isPermaLink="false">http://onecool1.wordpress.com/?p=37</guid>
		<description><![CDATA[Working with a few idiosynchrasies in KDE 4<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onecool1.wordpress.com&amp;blog=4860049&amp;post=37&amp;subd=onecool1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If, like me, you&#8217;re tempted by the rather sleek desktop of KDE 4.2.x, Fedora 11 has a great implementation of it.  However, KDE is (still) not without its issues&#8230;</p>
<p>One of them is the plasma panel widgets &#8211; they can simply get messed up upon a &#8220;bad&#8221; log-out.</p>
<p>To fix your plasma taskbar/widgets getting messed up on KDE 4.2, and restore the default settings, follow these steps:</p>
<p><code>cd /usr/share/kde4/ kde-settings/kde-profile/default/share/configls<br />
ls ~/.kde/share/config/<br />
cat ~/.kde/share/config/plasma-appletsrc<br />
mv ~/.kde/share/config/plasma-appletsrc ~/.kde/share/config/plasma-appletsrc.bak<br />
cp plasma-appletsrc ~/.kde/share/config/</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/onecool1.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/onecool1.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/onecool1.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/onecool1.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/onecool1.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/onecool1.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/onecool1.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/onecool1.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/onecool1.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/onecool1.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/onecool1.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/onecool1.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/onecool1.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/onecool1.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onecool1.wordpress.com&amp;blog=4860049&amp;post=37&amp;subd=onecool1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://onecool1.wordpress.com/2009/10/12/fedora-11-still-struggling-with-kde/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4fa26b5ca70f70b7763e969cc91225c8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">onecool1</media:title>
		</media:content>
	</item>
		<item>
		<title>Adding source repositories to CentOS</title>
		<link>http://onecool1.wordpress.com/2009/10/12/adding-source-repositories-to-centos/</link>
		<comments>http://onecool1.wordpress.com/2009/10/12/adding-source-repositories-to-centos/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 10:26:58 +0000</pubDate>
		<dc:creator>onecool1</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://onecool1.wordpress.com/?p=45</guid>
		<description><![CDATA[A list of CentOS 5 source package repositories.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onecool1.wordpress.com&amp;blog=4860049&amp;post=45&amp;subd=onecool1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Having installed <a href="http://www.centos.org/" target="_blank">CentOS</a> (<a href="http://en.wikipedia.org/wiki/CentOS" target="_blank">wikipedia</a>) on a server here, I was surprised to find that, by default, the source repositories were not enabled.</p>
<p>Below are the source repo definitions I use.  Simply create a file called &#8220;Centos-Source.repo&#8221; (# chmod 644) in /etc/yum.repos.d/ and enable repositories as required (using enabled=1).  Please note that this example is for CentOS version 5 and may differ from any official versions out there.  I offer no warranty&#8230; it just works for me.  <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p><span id="more-45"></span><br />
[base-SRPMS]<br />
name=CentOS-$releasever &#8211; Base SRPMS<br />
baseurl=http://mirror.centos.org/centos/$releasever/os/SRPMS/<br />
gpgcheck=1<br />
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5<br />
priority=1<br />
enabled=1</p>
<p>#released updates<br />
[update-SRPMS]<br />
name=CentOS-$releasever &#8211; Updates SRPMS<br />
baseurl=http://mirror.centos.org/centos/$releasever/updates/SRPMS/<br />
gpgcheck=1<br />
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5<br />
priority=1<br />
enabled=1</p>
<p>#packages used/produced in the build but not released<br />
[addons-SRPMS]<br />
name=CentOS-$releasever &#8211; Addons SRPMS<br />
baseurl=http://mirror.centos.org/centos/$releasever/addons/SRPMS/<br />
gpgcheck=1<br />
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5<br />
priority=1<br />
enabled=0</p>
<p>#additional packages that may be useful<br />
[extras-SRPMS]<br />
name=CentOS-$releasever &#8211; Extras SRPMS<br />
baseurl=http://mirror.centos.org/centos/$releasever/extras/SRPMS/<br />
gpgcheck=1<br />
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5<br />
priority=1<br />
enabled=0</p>
<p>#additional packages that extend functionality of existing packages<br />
[centosplus-SRPMS]<br />
name=CentOS-$releasever &#8211; Plus SRPMS<br />
baseurl=http://mirror.centos.org/centos/$releasever/centosplus/SRPMS/<br />
gpgcheck=1<br />
enabled=0<br />
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5<br />
priority=1</p>
<p>#contrib &#8211; packages by Centos Users<br />
[contrib-SRPMS]<br />
name=CentOS-$releasever &#8211; Contrib SRPMS<br />
baseurl=http://mirror.centos.org/centos/$releasever/contrib/SRPMS/<br />
gpgcheck=1<br />
enabled=0<br />
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5<br />
priority=1</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/onecool1.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/onecool1.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/onecool1.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/onecool1.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/onecool1.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/onecool1.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/onecool1.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/onecool1.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/onecool1.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/onecool1.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/onecool1.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/onecool1.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/onecool1.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/onecool1.wordpress.com/45/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onecool1.wordpress.com&amp;blog=4860049&amp;post=45&amp;subd=onecool1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://onecool1.wordpress.com/2009/10/12/adding-source-repositories-to-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4fa26b5ca70f70b7763e969cc91225c8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">onecool1</media:title>
		</media:content>
	</item>
		<item>
		<title>Install Zend Studio 5 on Fedora 11</title>
		<link>http://onecool1.wordpress.com/2009/05/27/install-zend-studio-5-on-fedora-11/</link>
		<comments>http://onecool1.wordpress.com/2009/05/27/install-zend-studio-5-on-fedora-11/#comments</comments>
		<pubDate>Wed, 27 May 2009 14:46:33 +0000</pubDate>
		<dc:creator>onecool1</dc:creator>
				<category><![CDATA[fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[glibc]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Studio]]></category>
		<category><![CDATA[Xorg]]></category>
		<category><![CDATA[ZDE]]></category>
		<category><![CDATA[Zend]]></category>

		<guid isPermaLink="false">http://onecool1.wordpress.com/?p=36</guid>
		<description><![CDATA[/lib/ld-linux.so.2 missing? libXext.so.6 can&#8217;t be found? I recently installed Fedora 11 on a test machine, to see how the development desktop build of my favourite Linux distribution is doing &#8211; and it&#8217;s very nice indeed. I tried to install Zend Studio 5.5 and soon came across problems, which I found out related to not having [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onecool1.wordpress.com&amp;blog=4860049&amp;post=36&amp;subd=onecool1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>/lib/ld-linux.so.2 missing? libXext.so.6 can&#8217;t be found?</p>
<p>I recently installed Fedora 11 on a test machine, to see how the development desktop build of my favourite Linux distribution is doing &#8211; and it&#8217;s very nice indeed.</p>
<p>I tried to install Zend Studio 5.5 and soon came across problems, which I found out related to not having 32-bit versions of Xorg and glibc installed.  To remedy this, ensure you follow these steps:<br />
<strong><code>su -c 'yum groupinstall Java'<br />
su -c 'yum install glibc.i686 libXext.i586'</code></strong><br />
Once installed, I was able to fire up the Zend Development Environment:<br />
<strong><code>/usr/local/Zend/ZendStudio-5.5.1/bin/ZDE</code></strong><br />
.. and it was running on the native (OpenJDK) 64-bit JAVA runtime! How&#8217;s that for progress!</p>
<hr />One Cool provides <a href="http://www.onecool.com/hosting-network-servers.php" target="_self">Linux and open source software consultancy</a> to small businesses in the Hampshire, Surrey and Berkshire area.  We also provide <a href="http://www.onecool.com/web-development.php" target="_self">web development</a>, focusing in the open source arena but also working with proprietary systems and technologies.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/onecool1.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/onecool1.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/onecool1.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/onecool1.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/onecool1.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/onecool1.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/onecool1.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/onecool1.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/onecool1.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/onecool1.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/onecool1.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/onecool1.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/onecool1.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/onecool1.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onecool1.wordpress.com&amp;blog=4860049&amp;post=36&amp;subd=onecool1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://onecool1.wordpress.com/2009/05/27/install-zend-studio-5-on-fedora-11/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4fa26b5ca70f70b7763e969cc91225c8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">onecool1</media:title>
		</media:content>
	</item>
		<item>
		<title>How to recover that encrypted, ext4-formatted logical volume you allowed Fedora to create!</title>
		<link>http://onecool1.wordpress.com/2009/03/05/how-to-recover-that-encrypted-ext4-formatted-logical-volume-you-allowed-fedora-to-create/</link>
		<comments>http://onecool1.wordpress.com/2009/03/05/how-to-recover-that-encrypted-ext4-formatted-logical-volume-you-allowed-fedora-to-create/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 16:37:51 +0000</pubDate>
		<dc:creator>onecool1</dc:creator>
				<category><![CDATA[ext4]]></category>
		<category><![CDATA[file systems]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[lvm]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://onecool1.wordpress.com/?p=23</guid>
		<description><![CDATA[Here&#8217;s the deal: 1)You have no time and you want to try the latest Fedora release because it looks pretty darn good. 2) You accept the default disk partitioning scheme which the kind people at Red Hat / Fedora project set up for you, because they only have your best interests at heart, right? 3) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onecool1.wordpress.com&amp;blog=4860049&amp;post=23&amp;subd=onecool1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s the deal:<br />
1)You have no time and you want to try the latest Fedora release because it looks pretty darn good.<br />
2) You accept the default disk partitioning scheme which the kind people at Red Hat / Fedora project set up for you, because they only have your best interests at heart, right?<br />
3) While using this cutting-edge release, something nasty happens like, ooh, perhaps a sound driver locks up the entire system and you have to hard-reset the machine (that is, switch it off by the power switch because nothing responds to input).<span id="more-23"></span></p>
<p>What next?  If, like me (on one occassion) you try to boot up the machine and get no further than the recovery console, you&#8217;d feel a bit aggravated.  But there is an alternative &#8211; do a disk check.  You may have read my verbose coverage for <a href="http://onecool1.wordpress.com/2008/09/19/how-to-do-a-disk-check-in-linux/">How to do a disk check in Linux</a> before.  This takes it one step further &#8211; how to check your logical volume when it&#8217;s encrypted and formatted using the latest ext4 filesystem.</p>
<p>Instead of the method used before, this time I booted from a Live CD.  You can find one to download at the <a href="http://fedoraproject.org">Fedora project</a>.  <strong>Ensure</strong> that this CD matches the release of the version you are trying to recover.   In this case, that&#8217;s Fedora 10.</p>
<p>Once you have booted the offending machine up with the Live CD, open up a terminal by pointing to Applications &gt; System Tools &gt; Terminal.  Once in the terminal window, just type:</p>
<blockquote><p><strong><code># su</code></strong></p></blockquote>
<p>&#8230;to become the root user.  This is essential to using all the disk tools.</p>
<p>You may be tempted to check for volume groups first:</p>
<blockquote><p><strong><code># vgscan</code></strong></p></blockquote>
<p>.. but this would return nothing.</p>
<p>What&#8217;s happening here is that the Volume Group, located on that partition, is itself encrypted.  Once unlocked, you can then gain access to both of the Logical Volumes &#8211; the swap volume and the root (/) volume.</p>
<p>To unlock the encrypted Volume Group, first you need to establish which partition it resides on:</p>
<blockquote><p><strong><code># fdisk /dev/sda</code></strong></p>
<p><code><strong>The number of cylinders for this disk is set to 12161.<br />
There is nothing wrong with that, but this is larger than 1024,<br />
and could in certain setups cause problems with:<br />
1) software that runs at boot time (e.g., old versions of LILO)<br />
2) booting and partitioning software from other OSs<br />
(e.g., DOS FDISK, OS/2 FDISK)</strong></code></p></blockquote>
<p>Hit p &lt;enter&gt; to print the partitions on your primary disk:</p>
<blockquote><p><strong><code>Command (m for help): p</code></strong></p>
<p><code><strong>Disk /dev/sda: 100.0 GB, 100030242816 bytes<br />
255 heads, 63 sectors/track, 12161 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes<br />
Disk identifier: 0xb07eb07e</strong></code></p>
<p><code><strong>Device     Boot       Start         End         Blocks   Id  System<br />
/dev/sda1      *                 1          5377        43190721    7 HPFS/NTFS<br />
/dev/sda2                       5378          5402    200812+   83  Linux<br />
/dev/sda3                      5403        12161    54291667+  8e  Linux LVM</strong></code></p></blockquote>
<p>So the partiton of type &#8220;Linux LVM&#8221; (Logical Volume Managed) is the baby we&#8217;re after.</p>
<p>To unlock the encrypted Volume Group, use the following:<br />
<strong><br />
</strong></p>
<blockquote><p><code><strong># cryptsetup luksOpen /dev/sda3 mydisk</strong></code></p></blockquote>
<p><strong> </strong><br />
This sets up the encryption/decryption kernel subroutines to allow access to device /dev/sda3, mapped to a device node called &#8220;mydisk&#8221; in /dev/mapper/ .  We&#8217;ll not actually need to use this device node, but it could be handy to know if you needed to perform further diagnostics.</p>
<p>You will be prompted to enter the encryption key which is stored in one of eight &#8220;slots&#8221; on the disk.  If the key you enter matches a key in any slot, your disk will become unlocked.  Assuming that it is, you can then scan once again for Volume Groups:<br />
<strong><br />
</strong></p>
<blockquote><p><code><strong># vgscan<br />
Reading all physical volumes. This may take a while...<br />
Found volume group "VolGroup00" using metadata type lvm2</strong></code></p></blockquote>
<p><strong> </strong><br />
Now we&#8217;re getting somewhere.  Let&#8217;s activate the VG and display the LVs (Logical Volumes) it contains:</p>
<blockquote><p><code><strong># vgchange -a y<br />
2 logical volume(s) in volume group "VolGroup00" now active<br />
# lvdisplay<br />
--- Logical volume ---<br />
LV Name                /dev/VolGroup00/LogVol00<br />
VG Name                VolGroup00<br />
LV UUID                RE7t2h-nIy9-dWZ9-xt26-Fgq4-gFd8-34E3f2<br />
LV Write Access        read/write<br />
LV Status              available<br />
# open                 0<br />
LV Size                47.81 GB<br />
Current LE             1530<br />
Segments               1<br />
Allocation             inherit<br />
Read ahead sectors     auto<br />
- currently set to     256<br />
Block device           253:3</strong></code></p>
<p><code><strong>--- Logical volume ---<br />
LV Name                /dev/VolGroup00/LogVol01<br />
VG Name                VolGroup00<br />
LV UUID                B7XJzD-9sS0-3iHx-AWBE-W9qN-TvRb-vCdYZF<br />
LV Write Access        read/write<br />
LV Status              available<br />
# open                 0<br />
LV Size                3.91 GB<br />
Current LE             125<br />
Segments               1<br />
Allocation             inherit<br />
Read ahead sectors     auto<br />
- currently set to     256<br />
Block device           253:4</strong></code></p></blockquote>
<p>We can deduce from the sizes of these two volumes that the first of the two is the root (/) volume, and the second is the swap volume.</p>
<p>As the purpose is to FIX the filesystem on it, which may have become corrupt through the hard-reset performed earlier, we do not want to mount this volume.  Instead, as we now have a device node for this activated volume, at /dev/VolGroup00/LogVol00, we can simply perform a disk check straight on it.</p>
<p>To check which ext<em>n</em> file system checking tools are on the system, you can tab-complete at the command line:<br />
<strong><br />
</strong></p>
<blockquote><p><code><strong># fsck. </strong></code><strong>(hit tab)<br />
<code>fsck.cramfs   fsck.ext3    fsck.ext4dev    fsck.vfat<br />
fsck.ext2     fsck.ext4    fsck.msdos</code></strong></p></blockquote>
<p><strong></strong><br />
As this was formatted an ext4 volume, that&#8217;s what we use:<br />
<strong><br />
</strong></p>
<blockquote><p><code><strong># fsck.ext4 /dev/VolGroup00/LogVol00<br />
esfsck 1.41.3 (12-Oct-2008)<br />
/dev/VolGroup00/LogVol00: recovering journal<br />
Clearing orphaned inode 730 (uid=0, gid=500, mode=0100600, size 2263160)<br />
Clearing orphaned inode 187182 (uid=500, gid=500, mode=0100600, size 4096)</strong><br />
... and so on until ...<br />
<strong>/dev/VolGroup00/LogVol00: clean, 190926/3137536 files, 2016683/12533760 blocks</strong></code></p></blockquote>
<p>Now there are two more steps to perform: de-activate the volume group, and lock the encryption of the drive.</p>
<blockquote><p><strong><code># vgchange -a n<br />
0 logical volume(s) in volume group "VolGroup00" now active<br />
# cryptsetup luksClose mydisk</code></strong></p></blockquote>
<p>The second command returns nothing, which means it did not error (the disk is now encrypted and not writable-to without unlocking again).</p>
<p>I hope that helps someone with a sense for adventure but not enough time on their hands for when things go somewhat awry!</p>
<hr />One Cool provides <a title="Visit onecool.com for more information on open source systems and software for your business." href="http://www.onecool.com" target="_self">Linux and open source software consultancy</a> to small businesses in the Hampshire, Surrey and Berkshire area.  We also provide <a title="Read about  our web development capabililties" href="http://www.onecool.com/web-development.php" target="_self">web development</a>, focusing in the open source arena but also working with proprietary systems and technologies.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/onecool1.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/onecool1.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/onecool1.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/onecool1.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/onecool1.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/onecool1.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/onecool1.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/onecool1.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/onecool1.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/onecool1.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/onecool1.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/onecool1.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/onecool1.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/onecool1.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onecool1.wordpress.com&amp;blog=4860049&amp;post=23&amp;subd=onecool1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://onecool1.wordpress.com/2009/03/05/how-to-recover-that-encrypted-ext4-formatted-logical-volume-you-allowed-fedora-to-create/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4fa26b5ca70f70b7763e969cc91225c8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">onecool1</media:title>
		</media:content>
	</item>
		<item>
		<title>How to do a disk check in Linux</title>
		<link>http://onecool1.wordpress.com/2008/09/19/how-to-do-a-disk-check-in-linux/</link>
		<comments>http://onecool1.wordpress.com/2008/09/19/how-to-do-a-disk-check-in-linux/#comments</comments>
		<pubDate>Fri, 19 Sep 2008 10:45:35 +0000</pubDate>
		<dc:creator>onecool1</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://onecool1.wordpress.com/2008/09/19/how-to-do-a-disk-check-in-linux/</guid>
		<description><![CDATA[We&#8217;re all used to doing a disk check in Windows XP.  It&#8217;s easy.  Just double-click on “My Computer”, then select the drive you want to run the check on.  Right-click, Properties, Tools tab, then select “Check Now&#8230;” in the Error-checking section.  In almost every instance you&#8217;ll be told that the check will be done upon [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onecool1.wordpress.com&amp;blog=4860049&amp;post=8&amp;subd=onecool1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We&#8217;re all used to doing a disk check in Windows XP.  It&#8217;s easy.  Just double-click on “My Computer”, then select the drive you want to run the check on.  Right-click, Properties, Tools tab, then select “Check Now&#8230;” in the Error-checking section.  In almost every instance you&#8217;ll be told that the check will be done upon the next reboot.  Easy.</p>
<p>So how does one go about it on Linux?  Well&#8230; as you may have guessed, it&#8217;s not quite so straightforward.  Linux, by default, does actually have an intelligent disk-checking system already in place. By all accounts, you generally needn&#8217;t worry.  But if you have a reason to believe your disk may be slowly dying, and nothing is reporting in the <a title="View my personal blog entry &quot;SMART ain't so smart, it seems&quot;" href="http://blog.stevedowe.me.uk/2009/02/smart-aint-so-smart-it-seems.html" target="_self">SMART status of your drive</a>, perhaps it&#8217;s worth checking the file system instead.<span id="more-8"></span></p>
<p>That&#8217;s where File System Check comes in (duh!).  Like all Linux tools, it&#8217;s painfully abbreviated to simply “fsck”.  Terse, to say the least.  Now the warning:</p>
<p>DO NOT.  I REPEAT, DO NOT EVER EVER EVER RUN THIS COMMAND WHILE YOUR DRIVE IS MOUNTED (I.E. IN USE).  I TAKE NO RESPONSIBILITY FOR ANY LOSS OF DATA THAT YOU MAY CAUSE BY FOLLOWING THESE INSTRUCTIONS.</p>
<p>To unmount your root (/) volume, follow these easy steps:</p>
<ol>
<li>Boot from a Live CD. Your root volume will not be mounted by default.</li>
<li>Open a terminal and type:<code><strong># dmesg | grep sda</strong></code>
<p>If you see output relating to your &#8220;SCSI&#8221; device, then this will identify that your hard disk, in all likelihood, contains your root partition. For example, amongst other output, I see this:</p>
<p><code><strong>sd 2:0:0:0: [sda] Assuming drive cache: write through<br />
sda: sda1 sda2<br />
sd 2:0:0:0: [sda] Attached SCSI disk<br />
</strong></code></li>
<li>In the example above, we see that SCSI disk 2 (2:0:0:0:) the Linux kernel registers it as the first logical drive (&#8220;sda&#8221;) in the system.  We can also see it has only 2 partitions, sda1 and sda2.  If this is the only physical drive in the machine, we should strongly suspect that it uses one partition as /boot (formatted with ext3) and the other as a Logical Volume containing both root (/) and swap. Furthermore, it&#8217;s foregone conculsion that the smallest partition will be /boot and the larger one will contain our swap and / partitions, so let&#8217;s proceed with accessing them.</li>
<li>So, how do we access a &#8220;Logical Volume&#8221; within an equally mystical &#8220;Volume Group&#8221;?  Luckily, Linux LVM comes with a plethora of useful tools to make the job easy.<br />
<code><strong><br />
# /sbin/vgscan<br />
Reading all physical volumes. This may take a while...<br />
Found volume group "VolGroup00" using metadata type lvm2</strong></code></p>
<p>Great. We have identified the volume group.  But before we can identify the logical volumes it contains, we need access it.</p>
<p><code><strong># /sbin/vgchange -a y<br />
2 logical volume(s) in volume group "VolGroup00" now active</strong></code></p>
<p>Here, the -a flag indicates that we want to change the &#8220;active&#8221; status of the volume group, and the y means &#8220;yes&#8221;.</p>
<p><code><strong># /sbin/lvdisplay<br />
--- Logical volume ---<br />
LV Name                /dev/VolGroup00/LogVol00<br />
VG Name                VolGroup00<br />
LV UUID                DG2WxJ-sKa5-20mg-NtjW-CsPW-t99V-Egqlja<br />
LV Write Access        read/write<br />
LV Status              available<br />
# open                 0<br />
LV Size                7.25 GB<br />
Current LE             232<br />
Segments               1<br />
Allocation             inherit<br />
Read ahead sectors     auto<br />
- currently set to     256<br />
Block device           253:2</strong></code></p>
<p><code><strong>--- Logical volume ---<br />
LV Name                /dev/VolGroup00/LogVol01<br />
VG Name                VolGroup00<br />
LV UUID                HqKozT-16PQ-HUaT-Yyc7-lMCO-007m-Xcc2c8<br />
LV Write Access        read/write<br />
LV Status              available<br />
# open                 1<br />
LV Size                512.00 MB<br />
Current LE             16<br />
Segments               1<br />
Allocation             inherit<br />
Read ahead sectors     auto<br />
- currently set to     256<br />
Block device           253:3</strong></code></p>
<p>We can now see two partitions contained within the volume group. The first partition, although small by today&#8217;s standards, looks a lot larger than the second.  We can also see that each logical volume has a device node (<strong>/dev/VolGroup00/LogVol01</strong>, for example).</p>
<p>As we want to perform the disk check without the parition being mounted, we do not issue any mount command here.  However, if you wanted to double-check that this is the partition to check, mount it and have a quick look around.  The following step is only offered to help in this case &#8211; skip this if you wish to perform a disk check.</p>
<p><code><strong># mkdir /tmp/lv0</strong></code></p>
<p>For me, the first logical volume (the 7.5GB one) would be the one to test.</p>
<p><code><strong># mount -t ext3 /dev/VolGroup00/LogVol00 /tmp/lv0<br />
# cd /tmp/lv0<br />
# ls<br />
bin  boot  dev  etc  home  lib  lib64  lost+found  media  mnt  opt  proc  root  sbin  selinux  srv  sys  tmp  usr  var<br />
</strong></code><br />
Ok, that looks like the root partition, so let&#8217;s get out of it and unmount it before running the file system check on it.</p>
<p><code><strong># cd /<br />
# umount /tmp/lv0</strong></code></li>
<li>An alternative to the above steps, if you have already booted into your main system, is to investigate /etc/fstab to see which is your / volume.  All you do is open a terminal and issue:<strong> </strong><strong> </strong><code><strong># cat /etc/fstab</strong></code><strong> </strong>On my CentOS 5.2 system, I see this:<code><strong>/dev/VolGroup00/LogVol00 /                      ext3    defaults        1 1<br />
LABEL=/boot1            /boot                   ext3    defaults        1 2<br />
tmpfs                   /dev/shm                tmpfs   defaults        0 0<br />
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0<br />
sysfs                   /sys                    sysfs   defaults        0 0<br />
proc                    /proc                   proc    defaults        0 0<br />
LABEL=SWAP-sdb1         swap                    swap    defaults        0 0</strong></code></p>
<p>So, <code><strong>/dev/VolGroup00/LogVol00</strong> </code>is my root volume.</li>
</ol>
<p>So, now that that&#8217;s out of the way, what next?  Well, assuming you now know which is your root partition, the most sensible thing to do would be to boot from a Live CD of some distribution (<a title="Visit Ubuntu.com to get a Debian-based Live CD" href="http://www.ubuntu.com" target="_self">Ubuntu</a>, <a title="Visit the Fedora project to grab a Live CD based on Red Hat Linux" href="http://fedoraproject.org" target="_self">Fedora</a>, etc) if you haven&#8217;t done so, and then perform the disk check from that.</p>
<p>Once in the LiveCD desktop, we&#8217;ll need to fire up a Terminal window.</p>
<p>If you know your filesystem type, e.g. if it&#8217;s Ext3, which is the default on the most common distributions, you can run a modified version of the fsck command specifically for that file system.  Here&#8217;s what I run for a thorough disk check:<strong><br />
</strong></p>
<blockquote><p><code><strong><br />
# fsck.ext3 -C -D -f -P -v /dev/</strong></code><code><strong>VolGroup00/LogVol00</strong></code></p>
<p><strong> </strong>Alternatively, if your partition structure is slightly older and only contains physical paritions (not Logical Volumes), it may just be a case of finding the partition directly &#8211; by checking /etc/fstab on the system when running. In that case, your command may look more like this (<strong>when / is unmounted!!</strong>):<strong></strong></p>
<p><strong></strong><code><strong> # fsck.ext3 -C -D -f -P -v /dev/</strong></code><code><strong>sda2</strong></code></p></blockquote>
<p><strong></strong></p>
<p>Here&#8217;s what the flags do:</p>
<p>-C  &#8211; forces a bad block scan.  Although bad blocks are remapped dynamically by the file system, if the file system or its journal are corrupt, this may not work correctly.</p>
<p>-D  &#8211; performs a directory check and optimisation.  Doesn&#8217;t hurt, and can speed up directory listings of a large number of files.</p>
<p>-f  &#8211; forces the check itself to actually run.  As mentioned previously, the file system maintains itself quite well, and if you don&#8217;t force the check, fsck may look at the last check interval and decide a check is not required.</p>
<p>-P  &#8211; perform all file system fixes automatically.  This is usually a safe flag, but if your file system is potentially very corrupt, this may not be advisable.  In this situation, contact an expert – or restore your back-up&#8230; <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>-v   &#8211; verbose output. See what&#8217;s going on.</p>
<p><strong>/dev/VolGroup00/LogVol00</strong> or <strong>/dev/sda2</strong> &#8211; this is the partition I want to perform the disk check on.</p>
<p>This little guide doesn&#8217;t explain how to perform a check on an encrypted logical volume&#8230; That one&#8217;s coming. <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<hr />One Cool provides <a title="Visit onecool.com for more information on open source systems and software for your business." href="http://www.onecool.com" target="_self">Linux and open source software consultancy</a> to small businesses in the Hampshire, Surrey and Berkshire area.  We also provide <a title="Read about  our web development capabililties" href="http://www.onecool.com/web-development.php" target="_self">web development</a>, focusing in the open source arena but also working with proprietary systems and technologies.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/onecool1.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/onecool1.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/onecool1.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/onecool1.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/onecool1.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/onecool1.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/onecool1.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/onecool1.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/onecool1.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/onecool1.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/onecool1.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/onecool1.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/onecool1.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/onecool1.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onecool1.wordpress.com&amp;blog=4860049&amp;post=8&amp;subd=onecool1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://onecool1.wordpress.com/2008/09/19/how-to-do-a-disk-check-in-linux/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4fa26b5ca70f70b7763e969cc91225c8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">onecool1</media:title>
		</media:content>
	</item>
		<item>
		<title>Microsoft Outlook 2007 &#8211; IMAP, Exchange and moving those Special Folders (back!)</title>
		<link>http://onecool1.wordpress.com/2008/09/19/microsoft-outlook-2007-imap-exchange-and-moving-those-special-folders-back/</link>
		<comments>http://onecool1.wordpress.com/2008/09/19/microsoft-outlook-2007-imap-exchange-and-moving-those-special-folders-back/#comments</comments>
		<pubDate>Fri, 19 Sep 2008 09:14:00 +0000</pubDate>
		<dc:creator>onecool1</dc:creator>
				<category><![CDATA[2007]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Outlook]]></category>
		<category><![CDATA[IMAP]]></category>

		<guid isPermaLink="false">http://onecool1.wordpress.com/2008/09/19/microsoft-outlook-2007-imap-exchange-and-moving-those-special-folders-back/</guid>
		<description><![CDATA[Microsoft Outlook 2007 – IMAP, Exchange and moving those Special Folders (back!) As a Microsoft Windows Small Business Server 2003 user, I have the option of using either Microsoft Outlook for native Exchange mail server connectivity, or using another, open standard protocol such as IMAP.  So, in my finite wisdom, I decided&#8230; why not?! Why [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onecool1.wordpress.com&amp;blog=4860049&amp;post=3&amp;subd=onecool1&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Microsoft Outlook 2007 – IMAP, Exchange and moving those Special Folders (back!)</p>
<p>As a Microsoft Windows Small Business Server 2003 user, I have the option of using either Microsoft Outlook for native Exchange mail server connectivity, or using another, open standard protocol such as IMAP.  So, in my finite wisdom, I decided&#8230; why not?!<span id="more-3"></span></p>
<p>Why not indeed.  The reason for using IMAP (Internet Message Access Protocol) is so that I could use&#8230;.. wait for it&#8230; a non-Microsoft email client with my Microsoft server.  The very notion.  Well, actually it&#8217;s not too bad.  You enable the IMAP service on the server, set up the mail account in Thunderbird, and hey presto – log in!</p>
<p>Unfortunately, my client (Mozilla Thunderbird) then seemed to have done certain things which – only now – take my slightly by surprise.</p>
<p>An Exchange mailbox, as standard, contains some basic top-level folders, such as Calendar, Contacts, Deleted Items, Drafts, Inbox, Outbox, Sent Items and Tasks (this is probably not an exhaustive list).  In contrast Thunderbird, by default, contains Inbox, Drafts, Sent, Deleted, Junk and Trash.  So, what&#8217;s in a name?</p>
<p>Well, after using Thunderbird/Exchange via IMAP (and not actually noticing this at the time of doing so), a couple of the Exchange folders had disappeared.  I only noticed this later when using Outlook again, and couldn&#8217;t locate my Sent Items or Deleted Items folders.  I then found them lurking within my Trash folder.  Ok, so this has got very messy.</p>
<p>It sadly got worse.  Now that these “Special Folders” in Microsoft parlance have been moved, they could not be moved back in Outlook.  When trying to drag “Deleted Items” to my top-level Mailbox, I would be told “Cannot move special items.  Special folders, including the Inbox, Contacts, Calendar, Notes, Tasks and Journal folders, cannot be moved.”  Oh, I see.   Although I tried various methods within Outlook to achieve the same thing, I failed miserably.</p>
<p>So what is the solution?  Ironically, going back to Thunderbird and simply dragging the folder from Trash into the top-level mail account/box did it.  It re-sync&#8217;ed over IMAP and everything gets copied correctly.  How ridiculous.  The solution is not to run scanpst.exe or scanost.exe, or to start up Outlook using the “Safe” switch, thus:</p>
<p><strong>C:\Program Files\Microsoft Office\Office12\OUTLOOK.EXE” /safe</strong></p>
<p>It&#8217;s not even starting up Outlook with “Reset Folders”:</p>
<p><strong>C:\Program Files\Microsoft Office\Office12\OUTLOOK.EXE” /resetfolders</strong></p>
<p>&#8230; or the combination of both.</p>
<p>This is one of those annoying, inexplicable problems that you somehow just get used to.  I hope this helps someone else out there who has suffered the same issue.</p>
<hr />One Cool provides <a title="Visit onecool.com for more information on open source systems and software for your business." href="http://www.onecool.com" target="_self">Linux and open source software consultancy</a> to small businesses in the Hampshire, Surrey and Berkshire area.  We also provide <a title="Read about  our web development capabililties" href="http://www.onecool.com/web-development.php" target="_self">web development</a>, focusing in the open source arena but also working with proprietary systems and technologies.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/onecool1.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/onecool1.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/onecool1.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/onecool1.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/onecool1.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/onecool1.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/onecool1.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/onecool1.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/onecool1.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/onecool1.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/onecool1.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/onecool1.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/onecool1.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/onecool1.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=onecool1.wordpress.com&amp;blog=4860049&amp;post=3&amp;subd=onecool1&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://onecool1.wordpress.com/2008/09/19/microsoft-outlook-2007-imap-exchange-and-moving-those-special-folders-back/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4fa26b5ca70f70b7763e969cc91225c8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">onecool1</media:title>
		</media:content>
	</item>
	</channel>
</rss>
