<?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>Linux, Programming, Computers and Life</title>
	<atom:link href="http://skwo.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://skwo.wordpress.com</link>
	<description>Things about computers and life :P</description>
	<lastBuildDate>Sun, 11 Oct 2009 15:30:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='skwo.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Linux, Programming, Computers and Life</title>
		<link>http://skwo.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://skwo.wordpress.com/osd.xml" title="Linux, Programming, Computers and Life" />
	<atom:link rel='hub' href='http://skwo.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Whats new?</title>
		<link>http://skwo.wordpress.com/2009/10/11/whats-new/</link>
		<comments>http://skwo.wordpress.com/2009/10/11/whats-new/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 15:28:01 +0000</pubDate>
		<dc:creator>skwee</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Stuff]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[linear algebra]]></category>
		<category><![CDATA[osdev]]></category>

		<guid isPermaLink="false">http://skwo.wordpress.com/?p=40</guid>
		<description><![CDATA[Last few days I was busy with different kind of stuff. The most annoying of them is work on linear algebra that I started yesterday and have to submit tomorrow oO The less annoying things are: 1. Redesign of my kernel. I got some books on Linux internals and OS design, and I want to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skwo.wordpress.com&amp;blog=5293505&amp;post=40&amp;subd=skwo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Last few days I was busy with different kind of stuff.</p>
<p>The most annoying of them is work on linear algebra that I started yesterday and have to submit tomorrow oO</p>
<p>The less annoying things are:</p>
<p>1. Redesign of my kernel. I got some books on Linux internals and OS design, and I want to redesign my kernel now.</p>
<p>2. Implementation of AVL tree. This is driving me crazy, the documentation is not enough. It looks easy but there are things that I did not take in account that break all my design. The moment Ill finish the linear algebra, Ill add the missing part to my AVL tree and finally will be able to use it as Heap Management structure for my kernel.</p>
<p>I&#8217;m also planning to release the kernel under GPL or custom license that is similar to GPL, the moment Ill have some things running (like multitasking that I want to start straight after the heap implementation).</p>
<p>Thats it, enjoy <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/skwo.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/skwo.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/skwo.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/skwo.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/skwo.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/skwo.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/skwo.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/skwo.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/skwo.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/skwo.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/skwo.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/skwo.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/skwo.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/skwo.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skwo.wordpress.com&amp;blog=5293505&amp;post=40&amp;subd=skwo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://skwo.wordpress.com/2009/10/11/whats-new/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a80ee2cf352a5ecde1c24d1ba4b12257?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">skwo</media:title>
		</media:content>
	</item>
		<item>
		<title>Have No Idea What To Post&#8230;</title>
		<link>http://skwo.wordpress.com/2009/10/08/have-no-idea-what-to-post/</link>
		<comments>http://skwo.wordpress.com/2009/10/08/have-no-idea-what-to-post/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 19:21:18 +0000</pubDate>
		<dc:creator>skwee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[boring]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://skwo.wordpress.com/?p=36</guid>
		<description><![CDATA[Yesterday I didn&#8217;t have mood to post something. Today I just don&#8217;t know what to post.. Hope tomorrow will be better Anyway to not waste a whole page of digital ink, I present you the review of Windows 7 http://www.cracked.com/blog/using-windows-7-may-lead-to-murder &#8220;Its better than Vista&#8221; Have a good day<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skwo.wordpress.com&amp;blog=5293505&amp;post=36&amp;subd=skwo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Yesterday I didn&#8217;t have mood to post something. Today I just don&#8217;t know what to post.. Hope tomorrow will be better <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Anyway to not waste a whole page of digital ink, I present you the review of Windows 7</p>
<p><a title="Windows 7 Review" href="http://www.cracked.com/blog/using-windows-7-may-lead-to-murder" target="_blank">http://www.cracked.com/blog/using-windows-7-may-lead-to-murder</a></p>
<p>&#8220;Its better than Vista&#8221;</p>
<p>Have a good day <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/skwo.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/skwo.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/skwo.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/skwo.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/skwo.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/skwo.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/skwo.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/skwo.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/skwo.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/skwo.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/skwo.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/skwo.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/skwo.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/skwo.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skwo.wordpress.com&amp;blog=5293505&amp;post=36&amp;subd=skwo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://skwo.wordpress.com/2009/10/08/have-no-idea-what-to-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a80ee2cf352a5ecde1c24d1ba4b12257?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">skwo</media:title>
		</media:content>
	</item>
		<item>
		<title>Who Is skwo?</title>
		<link>http://skwo.wordpress.com/2009/10/06/who-is-skwo/</link>
		<comments>http://skwo.wordpress.com/2009/10/06/who-is-skwo/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 12:01:52 +0000</pubDate>
		<dc:creator>skwee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[skwo]]></category>

		<guid isPermaLink="false">http://skwo.wordpress.com/?p=30</guid>
		<description><![CDATA[Have you ever wonder who the hell is skwo? Well I&#8217;m wondering too. I see that people come to my blog by googling &#8220;skwo&#8221;, so I googled &#8220;skwo&#8221; also, and found interesting things, but about this a bit later (Note to everybody who don&#8217;t use google, saying yahooing or binging [like wtf?] sound too bad, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skwo.wordpress.com&amp;blog=5293505&amp;post=30&amp;subd=skwo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Have you ever wonder who the hell is skwo? Well I&#8217;m wondering too. I see that people come to my blog by googling &#8220;skwo&#8221;, so I googled &#8220;skwo&#8221; also, and found interesting things, but about this a bit later (Note to everybody who don&#8217;t use google, saying yahooing or binging [like wtf?] sound too bad, so don&#8217;t be angry at me, I&#8217;m sort of google fun).</p>
<p><strong>The Raise Of skwo&#8217;s Empire!</strong></p>
<p>The year was 357B.C. The great king s.kwee discovered the new land of FreeNode.net, the land that was knows as &#8220;IRC FreeNode Server&#8221;. He wanted to take over this land, by registered his name in the book of FreeNode.net users, but he fucked up, someone already registered this name&#8230; So I logged to freenode under the nick s.kwee (or skwee, don&#8217;t remember) and freenode nickserv kindly said to me &#8220;This nickname already registered&#8230;&#8221;. So I needed a new one and fast. I decided to change the &#8220;ee&#8221; in skwee, to &#8220;o&#8221; and skwo was born! In remember of s.kwee I still hold the old email, and I&#8217;m registered as s.kwee or skwee in about 1 or 2 sites over the net.</p>
<p><strong>skwo Today</strong></p>
<p>So who is skwo? Google returns:</p>
<blockquote><p>Results <strong>1</strong> &#8211; <strong>10</strong> of about <strong>68,900</strong> for <strong>skwo</strong>.  (<strong>0.29</strong> seconds)</p>
</blockquote>
<p>68,900?! Omg -.-&#8217; So lets clear some things.</p>
<p><strong>So who I am not?</strong></p>
<p>I don&#8217;t have account on YouTube, at least not for now! I don&#8217;t use twitter (and probably won&#8217;t use). I don&#8217;t put my nickname on Facebook, or other social networks (at least not for now). I definitely don&#8217;t use MySpace (and never will).</p>
<p><strong>So who I am?</strong></p>
<p>As you already understood, I like computers, programming, and Linux &#8211; Arch Linux. So you can find me in sites like, Arch Linux, programming sites, IRC FreeNode Server, wordpress blog (doh -.-). In some places where username skwo already registered (arrr) I am known as skwo357, good example is DeviantArt (that I don&#8217;t really use) and how surprisingly my deviantart is about Arch Linux!</p>
<p><strong>Have doubts if the &#8220;skwo&#8221; you found is me or not?</strong></p>
<p>No problem, feel free to contact me via email s.kwee357[AT]gmail[dot]com</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/skwo.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/skwo.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/skwo.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/skwo.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/skwo.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/skwo.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/skwo.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/skwo.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/skwo.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/skwo.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/skwo.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/skwo.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/skwo.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/skwo.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skwo.wordpress.com&amp;blog=5293505&amp;post=30&amp;subd=skwo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://skwo.wordpress.com/2009/10/06/who-is-skwo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a80ee2cf352a5ecde1c24d1ba4b12257?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">skwo</media:title>
		</media:content>
	</item>
		<item>
		<title>How I lost all of my source files in less than a minute..</title>
		<link>http://skwo.wordpress.com/2009/10/05/how-i-lost-all-of-my-source-files-in-less-than-a-minute/</link>
		<comments>http://skwo.wordpress.com/2009/10/05/how-i-lost-all-of-my-source-files-in-less-than-a-minute/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 15:18:48 +0000</pubDate>
		<dc:creator>skwee</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ext3 no undelete]]></category>
		<category><![CDATA[Fail]]></category>

		<guid isPermaLink="false">http://skwo.wordpress.com/?p=26</guid>
		<description><![CDATA[This one is actually pretty old, like about two weeks old, I don&#8217;t know why I didn&#8217;t post it. So it was a sunny day, about two weeks ago. All day I tried to setup a normal makefile for my project. I wrote and discarded about 5-6 different versions. Finally after about 10-12hours I got [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skwo.wordpress.com&amp;blog=5293505&amp;post=26&amp;subd=skwo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This one is actually pretty old, like about two weeks old, I don&#8217;t know why I didn&#8217;t post it.</p>
<p>So it was a sunny day, about two weeks ago. All day I tried to setup a normal makefile for my project. I wrote and discarded about 5-6 different versions. Finally after about 10-12hours I got one that was pretty good. The problem was that I couldn&#8217;t group the object files that was created, in one directory, so all objects was separated over the project directory. A simple command to remove them:<br />
rm `<code>find ./ -name "*.o"</code>`<br />
And thats it, all objects are gone. You can guess the future from this point, but Ill tell it anyway. So it is late, about 1 AM, my makefile is completed, but I need to remove the object that I might left from previous compilations, so I do:<br />
<code>find ./ -name "*.c"</code><br />
It gives me a listing of all files that it found. Then I do<br />
<code>rm `find ./ -name "*.c"`</code><br />
For about 20 seconds I watch the output of the command to understand what the hell I did, and when I understood&#8230; it was too late.. Here is the comment or IRC:</p>
<pre>16:02:06 &lt;skwo&gt; OH F**CK
16:02:14 &lt;skwo&gt; I just wiped half o my os OO
16:02:24 &lt;skwo&gt; is there anyway to restore files that was removed by rm?
16:02:26 &lt;skwo&gt; omg
</pre>
<p>(Don&#8217;t pay attention to the time, the logs are logged in US time I think).</p>
<p>Of course there were no way to restore the files, cause the designers of EXT filesystem, decided to remove the file at all when its deleted&#8230; Yes it was embarrassing <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  Luckily I had a backup that contained about 80% of the lost code. After this day I setup and SVN for this project, and I wont code for more than 10 hours anymore.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/skwo.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/skwo.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/skwo.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/skwo.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/skwo.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/skwo.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/skwo.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/skwo.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/skwo.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/skwo.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/skwo.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/skwo.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/skwo.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/skwo.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skwo.wordpress.com&amp;blog=5293505&amp;post=26&amp;subd=skwo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://skwo.wordpress.com/2009/10/05/how-i-lost-all-of-my-source-files-in-less-than-a-minute/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a80ee2cf352a5ecde1c24d1ba4b12257?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">skwo</media:title>
		</media:content>
	</item>
		<item>
		<title>How to reinstall linux 3 times in less than two days</title>
		<link>http://skwo.wordpress.com/2009/10/05/how-to-reinstall-linux-3-times-in-less-than-two-days/</link>
		<comments>http://skwo.wordpress.com/2009/10/05/how-to-reinstall-linux-3-times-in-less-than-two-days/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 14:34:55 +0000</pubDate>
		<dc:creator>skwee</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Arch Linux]]></category>

		<guid isPermaLink="false">http://skwo.wordpress.com/?p=23</guid>
		<description><![CDATA[Thursday, 1/10/09, I woke up and said &#8220;Enough Windows! I can&#8217;t handle it anymore! From now I&#8217;m going to use Linux as day-day use and windows only when I need it!&#8221;, A voice on my head said &#8220;Dejavu my friend&#8221;&#8230; Seems like I said the same year ago, two years ago, and still came back [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skwo.wordpress.com&amp;blog=5293505&amp;post=23&amp;subd=skwo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Thursday, 1/10/09, I woke up and said &#8220;Enough Windows! I can&#8217;t handle it anymore! From now I&#8217;m going to use Linux as day-day use and windows only when I need it!&#8221;, A voice on my head said &#8220;Dejavu my friend&#8221;&#8230; Seems like I said the same year ago, two years ago, and still came back to windows! Oh Bill why are you doing it?! ;( Anyway this time I&#8217;m serious about it (voice in my head: &#8220;yea right&#8230;&#8221;)..</p>
<p>So I found an Arch Linux Install CD that I used a year ago. I actually was able to install it without using the beginners guide they provide on their CD. Everything was fine, and hop! I fucked the home partition&#8230; I said &#8220;Ok install Linux is fun, lets reinstall!&#8221; (and I&#8217;m serious now, it real fun!). I reinstall, system up and running. I decided to configure MPD (music player daemon), this bitch needs access to my home directory, so I needed to set permission on my home directory that others and group can read the directory, and I fucked up things, that even I can&#8217;t read/write to my OWN home directory&#8230; Reinstall.</p>
<p>So now my Arch is running (tfu tfu tfu) and I&#8217;m enjoying it!</p>
<p>I had an awesome weekend, and now my PC is running Linux (with windows partition, but windows got only 80GB, and Linux 160GB :p).</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/skwo.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/skwo.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/skwo.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/skwo.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/skwo.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/skwo.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/skwo.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/skwo.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/skwo.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/skwo.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/skwo.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/skwo.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/skwo.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/skwo.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skwo.wordpress.com&amp;blog=5293505&amp;post=23&amp;subd=skwo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://skwo.wordpress.com/2009/10/05/how-to-reinstall-linux-3-times-in-less-than-two-days/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a80ee2cf352a5ecde1c24d1ba4b12257?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">skwo</media:title>
		</media:content>
	</item>
		<item>
		<title>No Time to post =[</title>
		<link>http://skwo.wordpress.com/2009/09/19/no-time-to-post/</link>
		<comments>http://skwo.wordpress.com/2009/09/19/no-time-to-post/#comments</comments>
		<pubDate>Sat, 19 Sep 2009 18:09:08 +0000</pubDate>
		<dc:creator>skwee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://skwo.wordpress.com/?p=21</guid>
		<description><![CDATA[Oh I have no time to post Sorry for that but I was busy with my kernel development (I&#8217;m writing kernel, you didn&#8217;t know?). Anyway I didn&#8217;t forget the blog! But come-one read and post comments!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skwo.wordpress.com&amp;blog=5293505&amp;post=21&amp;subd=skwo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Oh I have no time to post <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Sorry for that but I was busy with my kernel development (I&#8217;m writing kernel, you didn&#8217;t know?).</p>
<p>Anyway I didn&#8217;t forget the blog! But come-one read and post comments!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/skwo.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/skwo.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/skwo.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/skwo.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/skwo.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/skwo.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/skwo.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/skwo.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/skwo.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/skwo.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/skwo.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/skwo.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/skwo.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/skwo.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skwo.wordpress.com&amp;blog=5293505&amp;post=21&amp;subd=skwo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://skwo.wordpress.com/2009/09/19/no-time-to-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a80ee2cf352a5ecde1c24d1ba4b12257?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">skwo</media:title>
		</media:content>
	</item>
		<item>
		<title>void main()? No int main()!</title>
		<link>http://skwo.wordpress.com/2009/09/16/void-main-no-int-main/</link>
		<comments>http://skwo.wordpress.com/2009/09/16/void-main-no-int-main/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 14:22:54 +0000</pubDate>
		<dc:creator>skwee</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[asm]]></category>
		<category><![CDATA[C]]></category>

		<guid isPermaLink="false">http://skwo.wordpress.com/?p=14</guid>
		<description><![CDATA[Today at the morning, on my way to the bus station, I asked my self &#8220;What should I post today?&#8221; Few years ago (about 3-4) I posted a question about C on one of the forums. I also included my code, it had void main() in it. People started to yell at me, that this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skwo.wordpress.com&amp;blog=5293505&amp;post=14&amp;subd=skwo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today at the morning, on my way to the bus station, I asked my self &#8220;What should I post today?&#8221;</p>
<p>Few years ago (about 3-4) I posted a question about C on one of the forums. I also included my code, it had void main() in it. People started to yell at me, that this is bad and not according the standard. Later I discovered that ANSI says that main must return a value, so I took it as a rule to follow the standard. I couldn&#8217;t really find any reason why void main() is bad, as it worked all the time no matter on what OS.</p>
<p>So, today when I know assembly I could find the answer to the holy war between int main and void main.</p>
<p><strong>So what is the difference between void main() and int main()?</strong></p>
<p>Well first of all lets take a look at the assembly code we get after we compile each version of main:</p>
<blockquote><p>$cat foo.c<br />
int main() { return 0; }<br />
gcc foo.c -o foo<br />
objdump -d foo<br />
08048374 &lt;main&gt;:<br />
08048374:     55                                 push   %ebp<br />
8048375:       89 e5                            mov    %esp,%ebp<br />
8048377:       b8 00 00 00 00     mov    $0&#215;0,%eax<br />
804837c:       5d                                 pop    %ebp<br />
804837d:      c3                                  ret<br />
804837e:      90                                  nop<br />
804837f:       90                                 nop</p></blockquote>
<p>And the second one</p>
<blockquote><p>$cat foo.c<br />
void main() {}<br />
gcc foo.c -o foo<br />
objdump -d foo<br />
08048374 &lt;main&gt;:<br />
8048374:        55                         push   %ebp<br />
8048375:        89 e5                   mov    %esp,%ebp<br />
8048377:       5d                          pop    %ebp<br />
8048378:        c3                         ret<br />
8048379:        90                        nop<br />
804837a:        90                        nop<br />
804837b:        90                        nop<br />
804837c:        90                        nop<br />
804837d:       90                        nop<br />
804837e:       90                        nop<br />
804837f:        90                       nop</p></blockquote>
<p>So the only difference in the line mov $0&#215;0, $eax</p>
<p><strong>How does return mechanism works?</strong></p>
<p>So what really happens when you write return 5? This generates an assembly code of mov eax, 0&#215;5. So we can tell for sure that the value in eax register is the value that the function returns. So why int and not void? The standard says that any application must return an error code to the OS, while 0 represents that the execution was successful and everything else represents an error. What the OS does with this value? Nothing special to be honest, but assume the following scenario:</p>
<p>Application A needs to execute application B. A can not continue without B finishes, however B can fail, in that case A have to fail also. How A will know that B failed? Exactly! It will check the value of the eax register after B finished to execute. If we used void main(), and the end of main eax will be undefined and may have any value! So its like Russian roulette :P This why we have to write int main()!</p>
<p>I hope this post was useful and you learned something new! Leave comments and have a good day <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/skwo.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/skwo.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/skwo.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/skwo.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/skwo.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/skwo.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/skwo.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/skwo.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/skwo.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/skwo.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/skwo.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/skwo.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/skwo.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/skwo.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skwo.wordpress.com&amp;blog=5293505&amp;post=14&amp;subd=skwo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://skwo.wordpress.com/2009/09/16/void-main-no-int-main/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a80ee2cf352a5ecde1c24d1ba4b12257?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">skwo</media:title>
		</media:content>
	</item>
		<item>
		<title>A Security bug in Linux kernel</title>
		<link>http://skwo.wordpress.com/2009/09/15/a-security-bug-in-linux-kernel/</link>
		<comments>http://skwo.wordpress.com/2009/09/15/a-security-bug-in-linux-kernel/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 15:39:25 +0000</pubDate>
		<dc:creator>skwee</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[kernel]]></category>

		<guid isPermaLink="false">http://skwo.wordpress.com/?p=11</guid>
		<description><![CDATA[My morning started as usual, woke up at 7:30, turned the PC one, went to kitchen to bring some food and make coffee, then back to the PC to check emails, facebook, forums, and RSS. So one of the news reports was a Linux kernel bug that existed for about eight years! Can you imagine [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skwo.wordpress.com&amp;blog=5293505&amp;post=11&amp;subd=skwo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>My morning started as usual, woke up at 7:30, turned the PC one, went to kitchen to bring some food and make coffee, then back to the PC to check emails, facebook, forums, and RSS. So one of the news reports was a Linux kernel bug that existed for about <strong>eight years!</strong> Can you imagine it?</p>
<p>So in short:</p>
<p>Linux kernel implements different sockets. Each socket have a struct assigned to it called proto_ops. The only thing this struct hold is pointers to implementation of different functions like bind, accept, and so on. Some might not implement one of the functions, in this case they should send a pointer to stub function. But even if the pointer left NULL, most of the times the kernel will validate that it is null.</p>
<p>So where is the bug? In function sock_sendpage(). This function does not validate the pointer and therefore can call for a NULL pointer. In this case an attacker can place a code at page 0 and the kernel will execute this code in SUPERVISOR mode!</p>
<p>I haven&#8217;t heard about any patch yet, but I&#8217;m sure that there will be one soon.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/skwo.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/skwo.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/skwo.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/skwo.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/skwo.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/skwo.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/skwo.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/skwo.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/skwo.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/skwo.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/skwo.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/skwo.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/skwo.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/skwo.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skwo.wordpress.com&amp;blog=5293505&amp;post=11&amp;subd=skwo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://skwo.wordpress.com/2009/09/15/a-security-bug-in-linux-kernel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a80ee2cf352a5ecde1c24d1ba4b12257?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">skwo</media:title>
		</media:content>
	</item>
		<item>
		<title>Come Back, or &#8220;Welcome No. 2&#8243; Post</title>
		<link>http://skwo.wordpress.com/2009/09/15/come-back-or-welcome-no-2-post/</link>
		<comments>http://skwo.wordpress.com/2009/09/15/come-back-or-welcome-no-2-post/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 15:25:21 +0000</pubDate>
		<dc:creator>skwee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[welcome]]></category>

		<guid isPermaLink="false">http://skwo.wordpress.com/?p=8</guid>
		<description><![CDATA[Wow, I forgot about my bloggie Bloggie says: &#8220;Write ten times that you are sorry!&#8221; Me: &#8220;I&#8217;m sorry I&#8217;m sorry I&#8217;m sorry I&#8217;m sorry I&#8217;m sorry I&#8217;m sorry I&#8217;m sorry I&#8217;m sorry I&#8217;m sorry I&#8217;m sorry&#8221; Bloggie: &#8220;Good!&#8221; Well for those who wonders who the hell I am. I am a 1337 programmer ^^ Nah [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skwo.wordpress.com&amp;blog=5293505&amp;post=8&amp;subd=skwo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Wow, I forgot about my bloggie <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p><em>Bloggie says</em>: &#8220;Write ten times that you are sorry!&#8221;</p>
<p><em>Me</em>: &#8220;I&#8217;m sorry I&#8217;m sorry I&#8217;m sorry I&#8217;m sorry I&#8217;m sorry I&#8217;m sorry I&#8217;m sorry I&#8217;m sorry I&#8217;m sorry I&#8217;m sorry&#8221;</p>
<p><em>Bloggie</em>: &#8220;Good!&#8221;</p>
<p>Well for those who wonders who the hell I am. I am a 1337 programmer ^^</p>
<p>Nah not really, I just like computers very much, I like programming, I am good at it. In this blog Ill write stuff about computers the most, some life stuff (don&#8217;t worry I wont cry about &#8220;how sucky my life is&#8221; cause my life is awesome :p ), programming, linux, music (metal at most \m/) and thats it.</p>
<p>You are free to comment, share your blogs, read and enjoy <img src='http://s2.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>See you <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/skwo.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/skwo.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/skwo.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/skwo.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/skwo.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/skwo.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/skwo.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/skwo.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/skwo.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/skwo.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/skwo.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/skwo.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/skwo.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/skwo.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skwo.wordpress.com&amp;blog=5293505&amp;post=8&amp;subd=skwo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://skwo.wordpress.com/2009/09/15/come-back-or-welcome-no-2-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a80ee2cf352a5ecde1c24d1ba4b12257?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">skwo</media:title>
		</media:content>
	</item>
		<item>
		<title>Mount VDI file</title>
		<link>http://skwo.wordpress.com/2008/10/25/mount-vdi-file/</link>
		<comments>http://skwo.wordpress.com/2008/10/25/mount-vdi-file/#comments</comments>
		<pubDate>Sat, 25 Oct 2008 11:05:24 +0000</pubDate>
		<dc:creator>skwee</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mount]]></category>
		<category><![CDATA[VDI]]></category>
		<category><![CDATA[Virtual Box]]></category>

		<guid isPermaLink="false">http://skwo.wordpress.com/?p=5</guid>
		<description><![CDATA[Hey! Well as a part of my studies we learn assembly under Dos (crap &#62;.&#60;). Anyway to ged rid of Windows I decided to install a Virtual Machine with FreeDOS. The problem was that its pretty hard to transfer files between Linux and the virtual drive, and I couldn&#8217;t setup network transfer (I wonder if [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skwo.wordpress.com&amp;blog=5293505&amp;post=5&amp;subd=skwo&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:left;">
<p>Hey!</p>
<p>Well as a part of my studies we learn assembly under Dos (crap &gt;.&lt;). Anyway to ged rid of Windows I decided to install a Virtual Machine with FreeDOS. The problem was that its pretty hard to transfer files between Linux and the virtual drive, and I couldn&#8217;t setup network transfer (I wonder if its possible at all with FreeDOS). So I decided to mount my VDI file and be able to read/write to it as it was a directory on my filesystem. I googled for &#8220;mount vdi&#8221; and found this link</p>
<p><a href="http://forums.virtualbox.org/viewtopic.php?t=52&amp;start=0&amp;postdays=0&amp;postorder=asc&amp;highlight=">http://forums.virtualbox.org/viewtopic.php?t=52&amp;start=0&amp;postdays=0&amp;postorder=asc&amp;highlight=</a></p>
<p>So lets start <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Tools:</strong></p>
<p>1. Linux :p</p>
<p>2. VDI file &#8211; Create new partition with Virtual Box, I used fixed size of 90MB and Installed FreeDOS on it.</p>
<p>3. khexedit &#8211; sudo apt-get install khexedit</p>
<p><strong>The moves:</strong></p>
<blockquote><p>khexedit .VirtualBox/VDI/FreeDOS.vdi</p></blockquote>
<p>Note: You should use decimal instead of hex, View-&gt;Offest as decimal</p>
<p>Now is the hard part: you should look for the beginning of the partition</p>
<p style="text-align:left;">Mine looks like this:</p>
<p style="text-align:left;">0000033216 &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.<br />
0000033280 �&lt;.FRDOS4.1&#8230;&#8230;&#8230;.��.?&#8230;?&#8230;a�..�.)..p$FREEDOS    FAT16<br />
0000033344 1�.ؽ.|��..�.�.��..���^|�&#8230;`..�.�.f��.~$�u..V$�F�..�F�&#8230;^��FĠ<br />
0000033408 c.v..~..v..�..v�.~�.F..�f..�.�.v�.~�.^.�.��.F.1���P.�.�..v�.~�.F<br />
0000033472 �.V�_�^Z�..�~Z�..��}W��_&amp;.E.t..� &amp;.=.u�reP�^Z.~..F�.V��g.X&#8230;^\�</p>
<p style="text-align:left;">As you can see before offset 33216 there are almost nothing, and the partition starts at offset 33280.</p>
<p style="text-align:left;">So now we know the start offset of the partiton lets mount it:</p>
<blockquote>
<p style="text-align:left;">sudo mkdir /mnt/vdifs</p>
<p style="text-align:left;">sudo mount -o loop,offset=33280,umask=000 .VirtualBox/VDI/FreeDOS.vdi /mnt/vdifs</p>
</blockquote>
<p style="text-align:left;">And we done <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align:left;">To understand what loop, offset and umask stands for read this</p>
<p style="text-align:left;"><a href="http://forums.virtualbox.org/viewtopic.php?t=52&amp;start=0&amp;postdays=0&amp;postorder=asc&amp;highlight=">http://forums.virtualbox.org/viewtopic.php?t=52&amp;start=0&amp;postdays=0&amp;postorder=asc&amp;highlight=</a></p>
<p style="text-align:left;">Better then I can explain <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align:left;">Now you can read/write files from your partition like it was part of your system <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align:left;">To un mount it use:</p>
<blockquote>
<p style="text-align:left;">sudo umount /mnt/vdifs</p>
</blockquote>
<p style="text-align:left;">Enjoy <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/skwo.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/skwo.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/skwo.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/skwo.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/skwo.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/skwo.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/skwo.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/skwo.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/skwo.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/skwo.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/skwo.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/skwo.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/skwo.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/skwo.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=skwo.wordpress.com&amp;blog=5293505&amp;post=5&amp;subd=skwo&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://skwo.wordpress.com/2008/10/25/mount-vdi-file/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a80ee2cf352a5ecde1c24d1ba4b12257?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">skwo</media:title>
		</media:content>
	</item>
	</channel>
</rss>
