<?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>Odzangba Kafui Dake's Blog</title>
	<atom:link href="http://odzangba.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://odzangba.wordpress.com</link>
	<description>Roaming the streets of Accra</description>
	<lastBuildDate>Wed, 11 Nov 2009 00:02:08 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='odzangba.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/48f256f9d97161f128eae03b1cc2bac3?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Odzangba Kafui Dake's Blog</title>
		<link>http://odzangba.wordpress.com</link>
	</image>
			<item>
		<title>How to Fix “subprocess pre-removal script returned error exit status 2″ Error</title>
		<link>http://odzangba.wordpress.com/2009/10/14/how-to-fix-%e2%80%9csubprocess-pre-removal-script-returned-error-exit-status-2%e2%80%b3-error/</link>
		<comments>http://odzangba.wordpress.com/2009/10/14/how-to-fix-%e2%80%9csubprocess-pre-removal-script-returned-error-exit-status-2%e2%80%b3-error/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 01:05:05 +0000</pubDate>
		<dc:creator>Odzangba</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[ubiquity]]></category>

		<guid isPermaLink="false">http://odzangba.wordpress.com/?p=319</guid>
		<description><![CDATA[UPDATE: Thanks to Msz Junk for pointing out the typos in the file paths.
What I really should have done was to link to khattam&#8217;s article because he did a pretty good job of describing the solution to this error but for my own archives, here goes&#8230;. I upgraded my box to Karmic Koala this evening [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odzangba.wordpress.com&blog=438445&post=319&subd=odzangba&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>UPDATE: Thanks to <cite>Msz Junk </cite>for pointing out the typos in the file paths.</p>
<p>What I really should have done was to link to <a href="http://www.khattam.info/2009/08/04/solved-subprocess-pre-removal-script-returned-error-exit-status-2-error/comment-page-1/#comment-834" target="_blank">khattam&#8217;s article</a> because he did a pretty good job of describing the solution to this error but for my own archives, here goes&#8230;. I upgraded my box to Karmic Koala this evening and for some reason, <strong>ubiquity-frontend-kde</strong> flipped and borked the package management system. When I tried to open Synaptic, I got this:</p>
<p style="text-align:center;"><img class="size-full wp-image-321 aligncenter" title="Synaptic Error" src="http://odzangba.files.wordpress.com/2009/10/screenshot-untitled-window.png?w=500&#038;h=300" alt="Click to view a screenshot of Synaptic's error message" width="500" height="300" /></p>
<p>So I tried</p>
<p><strong>sudo aptitude &#8211;configure -a</strong></p>
<p>and</p>
<p><strong>sudo apt-get install -f</strong></p>
<p>and even tried messing with these:</p>
<p><strong>/var/lib/dpkg/info/dbconfig-common.postinst</strong></p>
<p><strong>/var/lib/dpkg/info/dbconfig-common.postrm</strong></p>
<p>but the system wouldn&#8217;t budge. Then I found <a href="http://www.khattam.info/2009/08/04/solved-subprocess-pre-removal-script-returned-error-exit-status-2-error/comment-page-1/#comment-834" target="_blank">khattam&#8217;s article</a> and realized I was looking in the wrong files. To solve this error, close all package management software, and back up and edit the <strong>/var/lib/dpkg/status</strong> file with the following commands:</p>
<p><strong>sudo cp /var/lib/dpkg/status /var/log/dpkg/status.old</strong></p>
<p><strong>gksudo gedit /var/lib/dpkg/status</strong></p>
<p>Here comes the dicey part. Search for the package causing all this brouhaha and delete its entry. Please be very careful here and make sure you leave a blank line between the package entry below and above the deleted package entry. Here are screenshots of my file before and after selecting the appropriate package description entry.</p>
<p style="text-align:center;"><span style="font-family:'Georgia ,Times New Roman ,Bitstream Charter ,Times ,serif';font-size:medium;color:#000000;"><a href="http://odzangba.files.wordpress.com/2009/10/screenshot-status-b4.png"><img class="aligncenter size-full wp-image-325" title="Before" src="http://odzangba.files.wordpress.com/2009/10/screenshot-status-b4.png?w=500&#038;h=375" alt="Before" width="500" height="375" /></a><a href="http://odzangba.files.wordpress.com/2009/10/screenshot-status-after.png"><img class="aligncenter size-full wp-image-326" title="After" src="http://odzangba.files.wordpress.com/2009/10/screenshot-status-after.png?w=500&#038;h=375" alt="After" width="500" height="375" /></a></span></p>
<p>If you did this right you should be able to open Synaptic and remove the offending package (if you don&#8217;t want it any more) or re-install it.I don&#8217;t understand why the developers couldn&#8217;t cook up a more graceful way for dpkg to show its displeasure.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/odzangba.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/odzangba.wordpress.com/319/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/odzangba.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/odzangba.wordpress.com/319/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/odzangba.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/odzangba.wordpress.com/319/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/odzangba.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/odzangba.wordpress.com/319/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/odzangba.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/odzangba.wordpress.com/319/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odzangba.wordpress.com&blog=438445&post=319&subd=odzangba&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://odzangba.wordpress.com/2009/10/14/how-to-fix-%e2%80%9csubprocess-pre-removal-script-returned-error-exit-status-2%e2%80%b3-error/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/00d5b385ef2f3b84ba08e8eaee37931d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">odzangba</media:title>
		</media:content>

		<media:content url="http://odzangba.files.wordpress.com/2009/10/screenshot-untitled-window.png" medium="image">
			<media:title type="html">Synaptic Error</media:title>
		</media:content>

		<media:content url="http://odzangba.files.wordpress.com/2009/10/screenshot-status-b4.png" medium="image">
			<media:title type="html">Before</media:title>
		</media:content>

		<media:content url="http://odzangba.files.wordpress.com/2009/10/screenshot-status-after.png" medium="image">
			<media:title type="html">After</media:title>
		</media:content>
	</item>
		<item>
		<title>How To Disable Compcache (and Fix Swap Errors) in Ubuntu 9.04</title>
		<link>http://odzangba.wordpress.com/2009/10/12/how-to-disable-compcache-and-fix-swap-errors-in-ubuntu-9-04/</link>
		<comments>http://odzangba.wordpress.com/2009/10/12/how-to-disable-compcache-and-fix-swap-errors-in-ubuntu-9-04/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 03:13:49 +0000</pubDate>
		<dc:creator>Odzangba</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[compcache]]></category>
		<category><![CDATA[jaunty]]></category>
		<category><![CDATA[swap]]></category>

		<guid isPermaLink="false">http://odzangba.wordpress.com/?p=302</guid>
		<description><![CDATA[For weeks now my Jaunty box would lock up unexpectedly and only a hard reset could bring it back to life. Since it did not happen often, I just brushed it off&#8230; to be completely honest, I was too lazy to track down the problem.   But my box locked up again a few [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odzangba.wordpress.com&blog=438445&post=302&subd=odzangba&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>For weeks now my Jaunty box would lock up unexpectedly and only a hard reset could bring it back to life. Since it did not happen often, I just brushed it off&#8230; to be completely honest, I was too lazy to track down the problem. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  But my box locked up again a few minutes ago as I was waiting on a very important download and after I&#8217;d exhausted my vocabulary of swear words (and seriously contemplated throwing my monitor through the window), I decided I&#8217;d had enough. I examined my logs and noticed these errors around the time the lock-up kicked in:</p>
<blockquote><p><strong><code>compcache: Error allocating memory for compressed page: 37691, size=28<br />
compcache: Error allocating memory for compressed page: 126848, size=233<br />
compcache: Error allocating memory for compressed page: 106315, size=40</code></strong></p></blockquote>
<p>So I googled compcache and found out that it <a title="Click to read explanation on the ubuntu-users mailing list" href="https://lists.ubuntu.com/archives/ubuntu-users/2009-February/174405.html" target="_blank">wasn&#8217;t supposed to be active on permanent installations like mine</a>. Basically, it helps computers with low RAM to comfortably load a livecd session through a fairly boring use of &#8220;virtual RAM.&#8221; The important thing is, it should only kick in during a livecd session. It&#8217;s also quite unstable.  Read more about compcache <a title="Ubuntu Compcache Specification" href="https://wiki.ubuntu.com/Compcache" target="_blank">here</a>.</p>
<p>To find out if compcache is active on your system, do:</p>
<p><strong> sudo swapon -s</strong></p>
<p><strong> </strong>If you see <strong>/dev/ramzswap</strong>, compcache is plotting to lock up your box when you least expect it. To permanently disable compcache, do:</p>
<p>s<strong>udo rm -f /usr/share/initramfs-tools/conf.d/compcache &amp;&amp; update-initramfs -u</strong></p>
<p>Then either reboot or do a</p>
<p><strong>sudo swapoff /dev/ramzswap{insert the device number here}</strong>&#8230; so for example:</p>
<p><strong>sudo swapoff /dev/ramzswap1</strong></p>
<p>The morale of the story is, don&#8217;t be lazy&#8230; it took me about three minutes to track down the problem, fix it and get on with my life. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Now I have to restart this 700MB download. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/odzangba.wordpress.com/302/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/odzangba.wordpress.com/302/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/odzangba.wordpress.com/302/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/odzangba.wordpress.com/302/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/odzangba.wordpress.com/302/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/odzangba.wordpress.com/302/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/odzangba.wordpress.com/302/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/odzangba.wordpress.com/302/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/odzangba.wordpress.com/302/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/odzangba.wordpress.com/302/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odzangba.wordpress.com&blog=438445&post=302&subd=odzangba&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://odzangba.wordpress.com/2009/10/12/how-to-disable-compcache-and-fix-swap-errors-in-ubuntu-9-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/00d5b385ef2f3b84ba08e8eaee37931d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">odzangba</media:title>
		</media:content>
	</item>
		<item>
		<title>Fix Dolphin Thumbnail Previews</title>
		<link>http://odzangba.wordpress.com/2009/09/12/fix-dolphin-thumbnail-previews/</link>
		<comments>http://odzangba.wordpress.com/2009/09/12/fix-dolphin-thumbnail-previews/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 16:59:44 +0000</pubDate>
		<dc:creator>Odzangba</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[dolphin]]></category>
		<category><![CDATA[mplayerthumbs]]></category>
		<category><![CDATA[thumbnail]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://odzangba.wordpress.com/?p=295</guid>
		<description><![CDATA[Dolphin, the KDE 4 file manager, needs a little help in order to display thumbnails of videos. It uses mplayerthumbs to generate the thumbnails. Unfortunately, mplayerthumbs is not pulled in as a dependency when installing dolphin. I don&#8217;t know what the developers were thinking. Video thumbnails are integral to any modern desktop. It doesn&#8217;t make [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odzangba.wordpress.com&blog=438445&post=295&subd=odzangba&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Dolphin, the KDE 4 file manager, needs a little help in order to display thumbnails of videos. It uses <strong>mplayerthumbs</strong> to generate the thumbnails. Unfortunately, mplayerthumbs is not pulled in as a dependency when installing dolphin. I don&#8217;t know what the developers were thinking. Video thumbnails are integral to any modern desktop. It doesn&#8217;t make sense to ask users to manually install an extra package in order to enjoy this feature. Anyway, do a quick</p>
<blockquote><p><strong>sudo aptitude install mplayerthumbs</strong></p></blockquote>
<p>on the terminal or search for and install <strong>mplayerthumbs</strong> in the Synaptic package manager, and dolphin will be able to generate thumbnails for your video collection.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/odzangba.wordpress.com/295/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/odzangba.wordpress.com/295/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/odzangba.wordpress.com/295/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/odzangba.wordpress.com/295/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/odzangba.wordpress.com/295/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/odzangba.wordpress.com/295/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/odzangba.wordpress.com/295/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/odzangba.wordpress.com/295/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/odzangba.wordpress.com/295/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/odzangba.wordpress.com/295/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odzangba.wordpress.com&blog=438445&post=295&subd=odzangba&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://odzangba.wordpress.com/2009/09/12/fix-dolphin-thumbnail-previews/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/00d5b385ef2f3b84ba08e8eaee37931d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">odzangba</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Google Talk With Kopete</title>
		<link>http://odzangba.wordpress.com/2009/09/01/using-google-talk-with-kopete/</link>
		<comments>http://odzangba.wordpress.com/2009/09/01/using-google-talk-with-kopete/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 01:06:11 +0000</pubDate>
		<dc:creator>Odzangba</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://odzangba.wordpress.com/?p=279</guid>
		<description><![CDATA[I got bored over the weekend and did a fresh install of Jaunty. In part I wanted to try out backing up and restoring application settings and other data. It worked out pretty well. I last used Kopete in 2006 and I was a little curious so I installed and fired it up. Adding a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odzangba.wordpress.com&blog=438445&post=279&subd=odzangba&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I got bored over the weekend and did a fresh install of Jaunty. In part I wanted to try out backing up and restoring application settings and other data. It worked out pretty well. I last used Kopete in 2006 and I was a little curious so I installed and fired it up. Adding a <strong>Yahoo</strong> messenger account worked flawlessly but <strong>Google Talk</strong> choked on some weird ssl error. As it turned out after some googling, one needs a package called <strong>qca-tls</strong> (ubuntu) to be able to get Kopete to play nice with Google Talk. Other distributions have slightly different names for this package:</p>
<blockquote><p>Gentoo                 app-crypt/qca-tls<br />
Mandriva              libqca1-tls<br />
OpenSuSE            qca</p></blockquote>
<p>On Ubuntu, a quick</p>
<blockquote><p><strong>sudo aptitude install qca-tls</strong></p></blockquote>
<p>on the terminal will do the trick. Or you can search for <strong>qca-tls </strong>in Synaptic.</p>
<p>To add a google talk account:</p>
<ul>
<li><strong>Settings &#8211;&gt; Configure</strong></li>
<li><strong>Accounts</strong> &#8211;&gt; <strong>Add Account</strong></li>
<li>Select <strong>Jabber</strong></li>
<li><strong>Next</strong></li>
<li>On the <strong>Basic Setup</strong> tab, your account information should look like this:</li>
</ul>
<ol>
<blockquote><p>Jabber ID:     <strong>xxxx@gmail.com</strong> (your gmail address)<br />
[ ] Remember password     (Ticking this makes it easier to login later)<br />
Password:     <strong>xxxxx</strong> (Enter your password)</p></blockquote>
</ol>
<ul>
<li>The Connection tab should look like this:</li>
</ul>
<blockquote><p><strong>[X]</strong> Use protocol encryption (SSL)<br />
<strong>[X]</strong> Allow plain-text password authentication<br />
<strong>[X]</strong> Override default server information<br />
Server:  <strong>[talk.google.com]</strong> Port:  <strong>[5223]</strong></p></blockquote>
<p>You&#8217;re done. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/odzangba.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/odzangba.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/odzangba.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/odzangba.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/odzangba.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/odzangba.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/odzangba.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/odzangba.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/odzangba.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/odzangba.wordpress.com/279/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odzangba.wordpress.com&blog=438445&post=279&subd=odzangba&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://odzangba.wordpress.com/2009/09/01/using-google-talk-with-kopete/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/00d5b385ef2f3b84ba08e8eaee37931d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">odzangba</media:title>
		</media:content>
	</item>
		<item>
		<title>Greetings from Ho</title>
		<link>http://odzangba.wordpress.com/2009/05/25/greetings-from-ho/</link>
		<comments>http://odzangba.wordpress.com/2009/05/25/greetings-from-ho/#comments</comments>
		<pubDate>Mon, 25 May 2009 05:59:42 +0000</pubDate>
		<dc:creator>Odzangba</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Rants]]></category>
		<category><![CDATA[seagate]]></category>
		<category><![CDATA[western digital]]></category>

		<guid isPermaLink="false">http://odzangba.wordpress.com/?p=277</guid>
		<description><![CDATA[It&#8217;s a long weekend (thanks to African Unity Day) and I&#8217;m relaxing in sleepy Ho&#8230; it&#8217;s nice to get away from the constant hustle and bustle of Accra. Anyway, I&#8217;ve had a lot of hard disk trouble lately. First I ran out of space, then my system hard disk died. As if that wasn&#8217;t enough, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odzangba.wordpress.com&blog=438445&post=277&subd=odzangba&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>It&#8217;s a long weekend (thanks to African Unity Day) and I&#8217;m relaxing in sleepy Ho&#8230; it&#8217;s nice to get away from the constant hustle and bustle of Accra. Anyway, I&#8217;ve had a lot of hard disk trouble lately. First I <a href="http://odzangba.wordpress.com/2009/03/25/gzip-vs-bzip2-vs-lzma/" target="_blank">ran out of space</a>, then my system hard disk died. As if that wasn&#8217;t enough, the next day, my spare hard disk died too&#8230; making my life doubly miserable. You see, I hadn&#8217;t backed up my data&#8230; I was out of space after all and the dvd shop is out of my way &#8211; I kept putting it off. So I had to raid my younger brother&#8217;s piggy bank for a new hard disk. I&#8217;d like to think that &#8220;I was not attached to those hard disks&#8221; but it really grinds my gears the way they both failed in rapid succession. Now if I had my way, somebody at Seagate would be in a lot of pain right now. How is it that the world&#8217;s largest hard disk manufacturer has so many defective products on shelves? For what it&#8217;s worth, I&#8217;m never buying a Seagate hard drive again&#8230; even though Barracuda is such a cool name. Western Digital hard drives are &#8211; in my experience &#8211; much more reliable. But they really should do something about the name &#8220;Caviar.&#8221; <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>I now have a lot more hard disk space and a fresh install of Ubuntu 9.04. Morale of the story&#8230; back up your data and don&#8217;t buy Seagate !</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/odzangba.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/odzangba.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/odzangba.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/odzangba.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/odzangba.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/odzangba.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/odzangba.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/odzangba.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/odzangba.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/odzangba.wordpress.com/277/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odzangba.wordpress.com&blog=438445&post=277&subd=odzangba&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://odzangba.wordpress.com/2009/05/25/greetings-from-ho/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/00d5b385ef2f3b84ba08e8eaee37931d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">odzangba</media:title>
		</media:content>
	</item>
		<item>
		<title>GZIP vs. BZIP2 vs. LZMA</title>
		<link>http://odzangba.wordpress.com/2009/03/25/gzip-vs-bzip2-vs-lzma/</link>
		<comments>http://odzangba.wordpress.com/2009/03/25/gzip-vs-bzip2-vs-lzma/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 18:04:24 +0000</pubDate>
		<dc:creator>Odzangba</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[bzip2]]></category>
		<category><![CDATA[compression]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[lzma]]></category>

		<guid isPermaLink="false">http://odzangba.wordpress.com/?p=273</guid>
		<description><![CDATA[There&#8217;s no nicer way to say it&#8230; I&#8217;m running out of disk space. I have three options: buy a larger hard drive, delete some files to free up space, or compress some of the data. Buying a larger hard drive is the best option in the long term but &#8220;in the long term, we&#8217;re all [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odzangba.wordpress.com&blog=438445&post=273&subd=odzangba&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>There&#8217;s no nicer way to say it&#8230; I&#8217;m running out of disk space. I have three options: buy a larger hard drive, delete some files to free up space, or compress some of the data. Buying a larger hard drive is the best option in the long term but &#8220;in the long term, we&#8217;re all dead&#8221; <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  and deleting files is painful for me&#8230; I&#8217;m a serial pack rat. So I decided to explore compression as a way out of my disk space headaches. First, I had to find the most efficient compression algorithm, a task I soon found out is not easy. I read several blogs and websites and everybody had something good to say about their favorite algorithm. But one thing was clear, the <strong>GZIP, BZIP2</strong> and <strong>LZMA</strong> compression algorithms were leading the pack. To satisfy my own curiosity and determine for myself which was the most efficient, I decided to run some benchmarks. To be honest, I&#8217;ve been hearing some good things about the LZMA compression algorithm so I was hoping it would live up to the hype.</p>
<p>These benchmarks were conducted on a<strong> 2.53 GHz</strong> processor with<strong> 2GB RAM</strong> and a <strong>5400 RPM</strong> Seagate Barracuda IDE hard disk. I also throttled the algorithms for maximum compression.</p>
<p><strong>Version information:</strong><br />
<em>gzip 1.3.12<br />
bzip2 1.0.5<br />
LZMA 4.32.0beta3<br />
LZMA SDK 4.43</em></p>
<p>For starters, I threw an empty <strong>1GiB</strong> file with nothing in it but binary zeros at them.</p>
<p><strong>$ dd if=/dev/zero of=test.zero -bs=1024M -count=1</strong><br />
<em>1+0 records in<br />
1+0 records out<br />
1073741824 bytes (1.1 GB) copied, 187.978 s, 5.7 MB/s</em></p>
<p>Now the fun starts.</p>
<p><strong>GZIP</strong><br />
$ /usr/bin/time -f &#8220;%U seconds CPU %P&#8221; gzip -c9 test.zero &gt; test.gz<br />
<em><strong>12.36 seconds</strong> CPU 99%</em></p>
<p><strong>BZIP2</strong><br />
$ /usr/bin/time -f &#8220;%U seconds CPU %P&#8221; bzip2 -c9 test.zero &gt; test.bz2<br />
<em><strong>32.07 seconds</strong> CPU 98%</em><br />
<strong><br />
LZMA<br />
</strong>$ /usr/bin/time -f &#8220;%U seconds CPU %P&#8221; lzma -c9 test.zero &gt; test.lzma<br />
<em><strong>873.79 seconds</strong> CPU 96%</em></p>
<p>So what kind of compression ratios are we talking about here?</p>
<p><strong>$ ls -lh test.zero*</strong><br />
<em>-rw-r&#8211;r&#8211; 1 kafui kafui  <strong>1.0G</strong> 2009-03-25 12:01 test.zero<br />
-rw-r&#8211;r&#8211; 1 kafui kafui <strong>1018K</strong> 2009-03-25 12:51 test.gz<br />
-rw-r&#8211;r&#8211; 1 kafui kafui  <strong>148K</strong> 2009-03-25 13:10 test.lzma<br />
-rw-r&#8211;r&#8211; 1 kafui kafui   <strong>785</strong> 2009-03-25 12:52 test.bz2</em></p>
<p>GZIP squeezed 1 gigabyte into about 1 megabyte in about 12 seconds&#8230; nice. LZMA&#8217;s compression ratio was very impressive; it squeezed 1 gigabyte into 148 kilobytes BUT in 873.79 seconds&#8230; that&#8217;s almost 15 minutes. BZIP2 was absolutely cool&#8230; 1Gib down to 785 bytes in 32 seconds! The clear winner here however is BZIP2. It has the highest compression ratio with acceptable time requirements. Now on to tests with real data.</p>
<p>For the next test, I decided to compress the contents of my  <strong>/opt</strong> folder. To simplify things, I created a tar archive of the folder first.</p>
<p><strong>$ sudo tar -cf opt.tar /opt</strong><br />
<em>[sudo] password for kafui:<br />
tar: Removing leading `/&#8217; from member names<br />
tar: Removing leading `/&#8217; from hard link targets</em></p>
<p><strong>$ ls -lh opt.tar </strong><br />
<em>-rw-r&#8211;r&#8211; 1 root root <strong>120M</strong> 2009-03-25 15:48 opt.tar</em></p>
<p>So we&#8217;re working with <strong>120MB</strong> of data. On to the tests:</p>
<p><strong>GZIP</strong><br />
$ /usr/bin/time -f &#8220;%U seconds CPU %P&#8221; gzip -c9 opt.tar &gt; opt.tar.gz<br />
<em><strong>19.42 seconds</strong> CPU 89%</em></p>
<p><strong>BZIP2</strong><br />
$ /usr/bin/time -f &#8220;%U seconds CPU %P&#8221; bzip2 -c9 opt.tar &gt; opt.tar.bz2<br />
<em><strong>30.76 seconds</strong> CPU 93%</em></p>
<p><strong>LZMA</strong><br />
/usr/bin/time -f &#8220;%U seconds CPU %P&#8221; lzma -c9 opt.tar &gt; opt.tar.lzma<br />
<em><strong>132.21 seconds</strong> CPU 92%</em></p>
<p><strong>$ ls -lh opt.tar*</strong><br />
<em>-rw-r&#8211;r&#8211; 1 </em><em>kafui kafui</em><em> <strong>120M</strong> 2009-03-25 15:48 opt.tar<br />
-rw-r&#8211;r&#8211; 1 </em><em>kafui kafui</em><em> <strong>39M</strong> 2009-03-25 15:56 opt.tar.gz<br />
-rw-r&#8211;r&#8211; 1 </em><em>kafui kafui</em><em> <strong>36M</strong> 2009-03-25 16:09 opt.tar.bz2<br />
-rw-r&#8211;r&#8211; 1 </em><em>kafui kafui</em><em> <strong>25M</strong> 2009-03-25 16:16 opt.tar.lzma<br />
</em><br />
Once again, GZIP was the fastest and got 120MB down to 39MB in 19.42 seconds. BZIP2 reduced 120MB to 36MB but took 11.34 seconds longer than GZIP. LZMA delivered the best compression with 25MB but took 132.21 seconds. It appears there are trade-offs with each compression method. GZIP is fast but its compression ratio is the lowest of the three. LZMA (depending on the data) delivers the most efficient compression ratio but takes too much time to do so. BZIP2 strikes a balance between efficient compression and speed&#8230; it&#8217;s way faster than LZMA and can actually deliver better compression. LZMA just does not live up to the hype.</p>
<p>Unfortunately, these benchmarks were of no use to me because about <strong>140GiB</strong> of my data is made up of <strong>AVIs</strong>, <strong>PNGs</strong> and <strong>JPEGs</strong>. These formats are already compressed so there isn&#8217;t much room for further compression. But for what it&#8217;s worth, I gave the algorithms a spin anyway.</p>
<p><strong>$ ls -lh The.Big.Bang.Theory.S01E10.avi </strong><br />
<em>-rwxrwxrwx 1 </em><em>kafui kafui</em><em> <strong>175M</strong> 2008-04-18 20:14 The.Big.Bang.Theory.S01E10.avi</em></p>
<p><strong>GZIP</strong><br />
$ /usr/bin/time -f &#8220;%U seconds CPU %P&#8221; gzip -c9 The.Big.Bang.Theory.S01E10.avi &gt; The.Big.Bang.Theory.S01E10.avi.gz<br />
<em><strong>10.94 seconds</strong> CPU 78%</em></p>
<p><strong>BZIP2</strong><br />
$ /usr/bin/time -f &#8220;%U seconds CPU %P&#8221; bzip2 -c9 The.Big.Bang.Theory.S01E10.avi &gt; The.Big.Bang.Theory.S01E10.avi.bz2<br />
<em><strong>55.15 seconds</strong> CPU 94%</em></p>
<p><strong>LZMA</strong><br />
$ /usr/bin/time -f &#8220;%U seconds CPU %P&#8221; lzma -c9 The.Big.Bang.Theory.S01E10.avi &gt; The.Big.Bang.Theory.S01E10.avi.lzma<br />
<em><strong>138.74 seconds</strong> CPU 93%</em></p>
<p><strong>$ ls -lh The.Big.Bang.Theory.S01E10.avi*</strong><br />
<em>-rwxr-xr-x 1 </em><em>kafui kafui</em><em> 175M 2009-03-25 16:34 The.Big.Bang.Theory.S01E10.avi<br />
-rw-r&#8211;r&#8211; 1 </em><em>kafui kafui</em><em> 173M 2009-03-25 16:35 The.Big.Bang.Theory.S01E10.avi.gz<br />
-rw-r&#8211;r&#8211; 1 </em><em>kafui kafui</em><em> 173M 2009-03-25 16:39 The.Big.Bang.Theory.S01E10.avi.bz2<br />
-rw-r&#8211;r&#8211; 1 </em><em>kafui kafui</em><em> 174M 2009-03-25 16:43 The.Big.Bang.Theory.S01E10.avi.lzma</em></p>
<p>GZIP and BZIP both got the 175MB episode of The Big Bang Theory down to 173MB; BZIP2 of course took 44.12 seconds longer. And LZMA got it down by only 1MB but in 138.74 seconds. As you can see, it doesn&#8217;t make much sense for me to compress my videos and pictures&#8230; not with those compression ratios. So it seems I&#8217;ll just have to cough up the cedis for a new hard drive. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/odzangba.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/odzangba.wordpress.com/273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/odzangba.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/odzangba.wordpress.com/273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/odzangba.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/odzangba.wordpress.com/273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/odzangba.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/odzangba.wordpress.com/273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/odzangba.wordpress.com/273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/odzangba.wordpress.com/273/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odzangba.wordpress.com&blog=438445&post=273&subd=odzangba&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://odzangba.wordpress.com/2009/03/25/gzip-vs-bzip2-vs-lzma/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/00d5b385ef2f3b84ba08e8eaee37931d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">odzangba</media:title>
		</media:content>
	</item>
		<item>
		<title>Graphical Hardware Information Tools</title>
		<link>http://odzangba.wordpress.com/2009/02/28/graphical-hardware-information-tools/</link>
		<comments>http://odzangba.wordpress.com/2009/02/28/graphical-hardware-information-tools/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 19:48:57 +0000</pubDate>
		<dc:creator>Odzangba</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[benchmark]]></category>
		<category><![CDATA[hardinfo]]></category>
		<category><![CDATA[lshw-gtk]]></category>
		<category><![CDATA[sysinfo]]></category>

		<guid isPermaLink="false">http://odzangba.wordpress.com/?p=248</guid>
		<description><![CDATA[Just a few months ago, I was not even using a graphical environment; videos, music, surfing the internet, instant messaging&#8230; all from the terminal. But my philosophy on software has been undergoing subtle changes ever since the I got a faster computer. The thing is, I now default to graphical applications for most tasks. Where [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odzangba.wordpress.com&blog=438445&post=248&subd=odzangba&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Just a few months ago, I was not even using a graphical environment; videos, music, surfing the internet, instant messaging&#8230; all from the terminal. But my philosophy on software has been undergoing subtle changes ever since the I got a faster computer. The thing is, I now default to graphical applications for most tasks. Where aptitude, mplayer, mpd, ncmpc, rtorrent, finch and elinks ruled supreme, synaptic, amarok, smplayer, deluge, pidgin and firefox have the upper hand. So this morning, I decided to find a GUI hardware information program to replace <strong>lspci, lshw and dmidecode</strong>&#8230; not really, I just needed a graphical frontend to these tools.  It took me about 15 minutes to go through the top three: <strong>Hardinfo, Sysinfo and Lshw-gtk</strong>. Hardinfo was the most impressive of the lot. In addition to hardware information, it can perform benchmark tests and let you compare the results with that of others. My lean, mean and ridiculously affordable box did quite well in the comparison tests. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  Sysinfo was a little stingy on information but it&#8217;s quite capable. Lshw-gtk, as the name implies, is really just a graphical frontend to lshw and threw up some detailed information about my motherboard and CPU but very little else. I&#8217;m keeping only hardinfo for the long term however, the others don&#8217;t quite live up to expectations. Anyways, that is only my opinion&#8230; I&#8217;ll let the screenshots do the rest of the talking:</p>

<a href='http://odzangba.wordpress.com/2009/02/28/graphical-hardware-information-tools/screenshot-cpu-zlib-system-information/' title='screenshot-cpu-zlib-system-information'><img width="150" height="110" src="http://odzangba.files.wordpress.com/2009/01/screenshot-cpu-zlib-system-information.png?w=150&#038;h=110" class="attachment-thumbnail" alt="CPU-Z Benchmark" title="screenshot-cpu-zlib-system-information" /></a>
<a href='http://odzangba.wordpress.com/2009/02/28/graphical-hardware-information-tools/screenshot-cpu-blowfish-system-information/' title='screenshot-cpu-blowfish-system-information'><img width="150" height="110" src="http://odzangba.files.wordpress.com/2009/01/screenshot-cpu-blowfish-system-information.png?w=150&#038;h=110" class="attachment-thumbnail" alt="Blowfish Benchmark" title="screenshot-cpu-blowfish-system-information" /></a>
<a href='http://odzangba.wordpress.com/2009/02/28/graphical-hardware-information-tools/screenshot-cpu-fibonacci-system-information/' title='screenshot-cpu-fibonacci-system-information'><img width="150" height="110" src="http://odzangba.files.wordpress.com/2009/01/screenshot-cpu-fibonacci-system-information.png?w=150&#038;h=110" class="attachment-thumbnail" alt="Fibinacci Benchmark" title="screenshot-cpu-fibonacci-system-information" /></a>
<a href='http://odzangba.wordpress.com/2009/02/28/graphical-hardware-information-tools/screenshot-cpu-md5-system-information/' title='screenshot-cpu-md5-system-information'><img width="150" height="110" src="http://odzangba.files.wordpress.com/2009/01/screenshot-cpu-md5-system-information.png?w=150&#038;h=110" class="attachment-thumbnail" alt="MD5 Benchmark" title="screenshot-cpu-md5-system-information" /></a>
<a href='http://odzangba.wordpress.com/2009/02/28/graphical-hardware-information-tools/screenshot-fpu-raytracing-system-information/' title='screenshot-fpu-raytracing-system-information'><img width="150" height="110" src="http://odzangba.files.wordpress.com/2009/01/screenshot-fpu-raytracing-system-information.png?w=150&#038;h=110" class="attachment-thumbnail" alt="Ray Tracing Benchmark" title="screenshot-fpu-raytracing-system-information" /></a>
<a href='http://odzangba.wordpress.com/2009/02/28/graphical-hardware-information-tools/screenshot-cpu-sha1-system-information/' title='screenshot-cpu-sha1-system-information'><img width="150" height="110" src="http://odzangba.files.wordpress.com/2009/01/screenshot-cpu-sha1-system-information.png?w=150&#038;h=110" class="attachment-thumbnail" alt="" title="screenshot-cpu-sha1-system-information" /></a>
<a href='http://odzangba.wordpress.com/2009/02/28/graphical-hardware-information-tools/screenshot-processor-system-information/' title='screenshot-processor-system-information'><img width="150" height="110" src="http://odzangba.files.wordpress.com/2009/02/screenshot-processor-system-information.png?w=150&#038;h=110" class="attachment-thumbnail" alt="" title="screenshot-processor-system-information" /></a>

  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/odzangba.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/odzangba.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/odzangba.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/odzangba.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/odzangba.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/odzangba.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/odzangba.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/odzangba.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/odzangba.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/odzangba.wordpress.com/248/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odzangba.wordpress.com&blog=438445&post=248&subd=odzangba&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://odzangba.wordpress.com/2009/02/28/graphical-hardware-information-tools/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/00d5b385ef2f3b84ba08e8eaee37931d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">odzangba</media:title>
		</media:content>
	</item>
		<item>
		<title>How To Fix Partition Table Order</title>
		<link>http://odzangba.wordpress.com/2009/02/28/how-to-fix-partition-table-order/</link>
		<comments>http://odzangba.wordpress.com/2009/02/28/how-to-fix-partition-table-order/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 19:27:33 +0000</pubDate>
		<dc:creator>Odzangba</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[fdisk]]></category>
		<category><![CDATA[gparted]]></category>

		<guid isPermaLink="false">http://odzangba.wordpress.com/?p=257</guid>
		<description><![CDATA[Last week, I resized one of my partitions to create some swap space. It&#8217;s a long painful story that I will not bore you with but essentially, I got cocky with my 2GB RAM and refused to allocate swap space&#8230; ubuntu punished me by activating compcache which then caused random lockups of the system. Anyway, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odzangba.wordpress.com&blog=438445&post=257&subd=odzangba&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Last week, I resized one of my partitions to create some swap space. It&#8217;s a long painful story that I will not bore you with but essentially, I got cocky with my 2GB RAM and refused to allocate swap space&#8230; ubuntu punished me by activating compcache which then caused random lockups of the system. Anyway, I was coming up to the end of an install cycle anyway so I backed up the system with remastersys (that is one story, I&#8217;ll have to blog about later), resized one of my partitions to create swap space and out of habit, did a <strong>sudo fdisk -l</strong>&#8230; it told me my partition entries were not in the proper order (a side effect of the resizing). It wasn&#8217;t a big problem, just an irritation really but an irritation nevertheless. I decided to fix it before the install:</p>
<p>sudo fdisk /dev/sda<br />
press <strong>x</strong> to enter expert mode<br />
press <strong>f</strong> to fix partition order<br />
press <strong>w</strong> to write the partition table changes to disk</p>
<p>Yes, I&#8217;l take a Heineken. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/odzangba.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/odzangba.wordpress.com/257/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/odzangba.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/odzangba.wordpress.com/257/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/odzangba.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/odzangba.wordpress.com/257/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/odzangba.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/odzangba.wordpress.com/257/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/odzangba.wordpress.com/257/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/odzangba.wordpress.com/257/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odzangba.wordpress.com&blog=438445&post=257&subd=odzangba&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://odzangba.wordpress.com/2009/02/28/how-to-fix-partition-table-order/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/00d5b385ef2f3b84ba08e8eaee37931d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">odzangba</media:title>
		</media:content>
	</item>
		<item>
		<title>Recover Deleted Files Using Linux</title>
		<link>http://odzangba.wordpress.com/2009/01/20/recover-deleted-files-using-linux/</link>
		<comments>http://odzangba.wordpress.com/2009/01/20/recover-deleted-files-using-linux/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 20:23:59 +0000</pubDate>
		<dc:creator>Odzangba</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://odzangba.wordpress.com/?p=194</guid>
		<description><![CDATA[One of my neighbours came to me a couple of days ago with a problem&#8230; he&#8217;d lost his CV to a windows virus and had no backup. So I said I&#8217;d try to recover the file for him. A quick google led me to Foremost. I chose foremost because it&#8217;s small, fast and easy to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odzangba.wordpress.com&blog=438445&post=194&subd=odzangba&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>One of my neighbours came to me a couple of days ago with a problem&#8230; he&#8217;d lost his CV to a windows virus and had no backup. So I said I&#8217;d try to recover the file for him. A quick google led me to <a href="http://linux.die.net/man/1/foremost" target="_blank">Foremost</a>. I chose foremost because it&#8217;s small, fast and easy to use. Since this was a file recovery operation, I decided to minimize the risk of the deleted file being overwritten by creating a disk image of the pen drive. A quick</p>
<p style="text-align:center;"><strong>dd if=/dev/sdb of=recover.iso</strong></p>
<p>did the trick.</p>
<p>Then it was a simple matter of</p>
<p style="text-align:center;"><strong>sudo apt-get install foremost</strong></p>
<p>to install foremost and then&#8230;</p>
<p style="text-align:center;"><strong>foremost -t doc recover.iso</strong></p>
<p>The &#8216;-t doc&#8217;  parameter tells foremost to look for only Microsoft Word files. About a minute later, the thing was done and the files were back. For what it&#8217;s worth, if you accidentally delete a file, it&#8217;s a very bad idea to continue using the computer. Shut down the pc or disconnect the drive immediately and look for a linux rescue cd. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/odzangba.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/odzangba.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/odzangba.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/odzangba.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/odzangba.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/odzangba.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/odzangba.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/odzangba.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/odzangba.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/odzangba.wordpress.com/194/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odzangba.wordpress.com&blog=438445&post=194&subd=odzangba&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://odzangba.wordpress.com/2009/01/20/recover-deleted-files-using-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/00d5b385ef2f3b84ba08e8eaee37931d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">odzangba</media:title>
		</media:content>
	</item>
		<item>
		<title>openSUSE 11.1&#8230; sigh Pt.1</title>
		<link>http://odzangba.wordpress.com/2009/01/01/opensuse-111-sigh-pt1/</link>
		<comments>http://odzangba.wordpress.com/2009/01/01/opensuse-111-sigh-pt1/#comments</comments>
		<pubDate>Thu, 01 Jan 2009 10:55:33 +0000</pubDate>
		<dc:creator>Odzangba</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[novell]]></category>
		<category><![CDATA[openSUSE]]></category>

		<guid isPermaLink="false">http://odzangba.wordpress.com/?p=185</guid>
		<description><![CDATA[I chose to stay up and install openSUSE rather than crash the crazy new year parties in Accra (or go to church as all of my neighbours did). It could have been such a great distro. Later in the day, the good and the bad about openSUSE.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odzangba.wordpress.com&blog=438445&post=185&subd=odzangba&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I chose to stay up and install openSUSE rather than crash the crazy new year parties in Accra (or go to church as all of my neighbours did). It could have been such a great distro. Later in the day, the good and the bad about openSUSE.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/odzangba.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/odzangba.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/odzangba.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/odzangba.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/odzangba.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/odzangba.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/odzangba.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/odzangba.wordpress.com/185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/odzangba.wordpress.com/185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/odzangba.wordpress.com/185/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=odzangba.wordpress.com&blog=438445&post=185&subd=odzangba&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://odzangba.wordpress.com/2009/01/01/opensuse-111-sigh-pt1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/00d5b385ef2f3b84ba08e8eaee37931d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">odzangba</media:title>
		</media:content>
	</item>
	</channel>
</rss>