<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ivan Kuznetsov &#187; Linux</title>
	<atom:link href="http://www.ivankuznetsov.com/tag/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ivankuznetsov.com</link>
	<description>Entrepreneur, Ruby on Rails and Ubuntu fanatic, consultant</description>
	<lastBuildDate>Tue, 18 May 2010 18:39:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>No space left on device &#8211; running out of Inodes</title>
		<link>http://www.ivankuznetsov.com/2010/02/no-space-left-on-device-running-out-of-inodes.html</link>
		<comments>http://www.ivankuznetsov.com/2010/02/no-space-left-on-device-running-out-of-inodes.html#comments</comments>
		<pubDate>Wed, 10 Feb 2010 09:12:56 +0000</pubDate>
		<dc:creator>Ivan Kuznetsov</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[file system]]></category>
		<category><![CDATA[Inode]]></category>
		<category><![CDATA[no space left]]></category>

		<guid isPermaLink="false">http://www.ivankuznetsov.com/?p=238</guid>
		<description><![CDATA[One of our development servers went down today. Problems started with deployment script that claimed that claimed &#8220;No space left on device&#8221;, although partition was not nearly full. If you ever run into such trouble &#8211; most likely you have too many small or 0-sized files on your disk, and while you have enough disk [...]]]></description>
			<content:encoded><![CDATA[<p>One of our development servers went down today. Problems started with deployment script that claimed that claimed &#8220;No space left on device&#8221;, although partition was not nearly full. If you ever run into such trouble &#8211; most likely you have too many small or 0-sized files on your disk, and while you have enough disk space, you have exhausted all available <a href="http://www.linfo.org/inode.html" target="_blank">Inodes</a>. Below is the solution for this problem.</p>
<p><span id="more-238"></span></p>
<p>1. check available disk space to ensure that you still have some</p>
<pre style="padding-left: 30px;">$ df

<span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace; line-height: 18px; font-size: 12px; white-space: pre;">Filesystem           1K-blocks      Used Available Use% Mounted on</span>
/dev/xvda             33030016  10407780  22622236  32% /
tmpfs                   368748         0    368748   0% /lib/init/rw
varrun                  368748        56    368692   1% /var/run
varlock                 368748         0    368748   0% /var/lock
udev                    368748       108    368640   1% /dev
tmpfs                   368748         0    368748   0% /dev/shm</pre>
<p>2. check available Inodes</p>
<pre style="padding-left: 30px;">$ df -i

<span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace; line-height: 18px; font-size: 12px; white-space: pre;">Filesystem            Inodes   IUsed   IFree IUse% Mounted on</span>
/dev/xvda            2080768 2080768       0  100% /
tmpfs                  92187       3   92184    1% /lib/init/rw
varrun                 92187      38   92149    1% /var/run
varlock                92187       4   92183    1% /var/lock
udev                   92187    4404   87783    5% /dev
tmpfs                  92187       1   92186    1% /dev/shm</pre>
<div>If you have IUse% at 100 or near, then huge number of small files is the reason for &#8220;No space left on device&#8221; errors.</div>
<p>3. find those little bastards</p>
<pre style="padding-left: 30px;">$ for i in /*; do echo $i; find $i |wc -l; done</pre>
<p>This command will list directories and number of files in them. Once you see a directory with unusually high number of files (or command just hangs over calculation for a long time), repeat the command for that directory to see where exactly the small files are.</p>
<pre style="padding-left: 30px;">$ for i in /home/*; do echo $i; find $i |wc -l; done</pre>
<p>4. once you found the suspect &#8211; just delete the files</p>
<pre style="padding-left: 30px;">$ sudo rm -rf /home/bad_user/directory_with_lots_of_empty_files</pre>
<p>You&#8217;re done. Check the results with df -i command again. You should see something like this:</p>
<pre style="padding-left: 30px;">Filesystem            Inodes   IUsed   IFree IUse% Mounted on

/dev/xvda            2080768  284431 1796337   14% /
tmpfs                  92187       3   92184    1% /lib/init/rw
varrun                 92187      38   92149    1% /var/run
varlock                92187       4   92183    1% /var/lock
udev                   92187    4404   87783    5% /dev
tmpfs                  92187       1   92186    1% /dev/shm</pre>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.ivankuznetsov.com%2F2010%2F02%2Fno-space-left-on-device-running-out-of-inodes.html&amp;linkname=No%20space%20left%20on%20device%20%26%238211%3B%20running%20out%20of%20Inodes"><img src="http://www.ivankuznetsov.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.ivankuznetsov.com/2010/02/no-space-left-on-device-running-out-of-inodes.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What&#8217;s new in Ubuntu 9.04 Jaunty Jakalope</title>
		<link>http://www.ivankuznetsov.com/2009/04/whats-new-in-ubuntu-904-jaunty-jakalope.html</link>
		<comments>http://www.ivankuznetsov.com/2009/04/whats-new-in-ubuntu-904-jaunty-jakalope.html#comments</comments>
		<pubDate>Mon, 27 Apr 2009 15:49:36 +0000</pubDate>
		<dc:creator>Ivan Kuznetsov</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.ivankuznetsov.com/?p=124</guid>
		<description><![CDATA[It was a fun weekend. I upgraded from Ubuntu 8.10 to 9.04 on my Lenovo T61 and installed it instead of Windows Vista on my wife&#8217;s new Dell Vostro 1510. Both upgrade and installation on both machines went without a single hickup, which was a positive surprise after my last experience with Ubuntu upgrade. Bluetooth, [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-127 alignleft" style="margin: 5px;" title="ubuntu-904-jaunty-jackalope-new-wallpaper-1" src="http://www.ivankuznetsov.com/wp-content/uploads/ubuntu-904-jaunty-jackalope-new-wallpaper-1.jpg" alt="Jaunty Jackalope" width="250" height="150" /> It was a fun weekend. I upgraded from Ubuntu 8.10 to 9.04 on my Lenovo T61 and installed it instead of Windows Vista on my wife&#8217;s new Dell Vostro 1510.</p>
<p>Both upgrade and installation on both machines went without a single hickup, which was a positive surprise after my <a href="http://www.ivankuznetsov.com/2008/06/upgrading-to-ubuntu-804-hardy-heron-or-ubuntu-sucks-get-a-mac.html">last experience with Ubuntu upgrade</a>.</p>
<p><span id="more-124"></span>Bluetooth, wireless, display drivers, sound &#8211; everything was working from the first start. The only manual configuration I had to make was because of Intel integrated video <a href="https://bugs.launchpad.net/bugs/363821" target="_blank">blacklisted by Compiz</a>. There are two ways to enable Visual Effects on Intel 965.</p>
<p>1.Skipping check for blacklisted cards</p>
<ul>
<li>Create ~/.config/compiz/compiz-manager (for local user) or (/etc/xdg/compiz/compiz-manager)</li>
<li>Add SKIP_CHECKS=yes</li>
<li>Go to System-&gt;Preferences-&gt;Appearence-&gt;Visual Effects and select Normal</li>
</ul>
<p>2. Removing the card from black list</p>
<ul>
<li>sudo gedit /usr/bin/compiz</li>
<li>find a line T=&#8221;$T 8086:2982 8086:2992 8086:29a2 8086:2a02 8086:2a12&#8243; # intel 965</li>
<li>comment it out by placing # in the front</li>
<li>save the file</li>
<li>Go to System-&gt;Preferences-&gt;Appearence-&gt;Visual Effects and select Normal</li>
</ul>
<p>Purely from end-user perspective there are not that many revolutionary changes (you can read the technical details on a number of ubuntu related sites). What I personally liked about 9.04 release is:</p>
<ul>
<li>Open Office 3.0<br />
A number of <a href="http://www.openoffice.org/dev_docs/features/3.0/" target="_blank">improvements and new features</a> here. Native tables in Impress, import of DOCX, PPTX, XLSX, Solver component, improved charts. Being an active Open Office user, and having to interact a lot with users of MS Office &#8211; these are really great improvements.</li>
<li><a href="http://www.netbeans.org/community/releases/65/relnotes.html" target="_blank">NetBeans 6.5</a></li>
<li>New notifications system<br />
Looks very good &#8211; gives you a warm and fuzzy feeling every time you receive a new instant message or connect to network. Mark Shuttleworth <a href="http://www.markshuttleworth.com/archives/265" target="_blank">blogged about it</a>.</li>
<li>A really small, but nonetheless important change &#8211; Session manager is finally renamed to Startup Applications. At least now I don&#8217;t need to think every time I want to add application to autostart list.</li>
<li>Computer Janitor. A very nice application, helps you to get rid of all unused stuff on your computer, but you have to be careful with it &#8211; it offered me to delete skype and xmind amongst all other DEB packages.</li>
</ul>
<p>Other new things that I read about, but didn&#8217;t yet try:</p>
<ul>
<li><a href="http://en.wikipedia.org/wiki/Ext4" target="_blank">ext4 filesystem</a> support (thanks to 2.6.28 kernel) &#8211; although it reportedly <a href="http://news.softpedia.com/news/Ubuntu-9-04-Boots-in-21-4-Seconds-101885.shtml" target="_blank">improves booting time</a>, i didn&#8217;t yet dare to switch to it, better to wait till potential <a href="https://bugs.edge.launchpad.net/ubuntu/+source/linux/+bug/317781" target="_blank">data loss fixes</a> are verified by long-term use</li>
<li>New, <a href="http://projects.gnome.org/evolution/" target="_blank">better Evolution</a> (thanks to Gnome 2.26), that is able to to read Microsoft Outlook Personal Folders or PST files and communicate with existing Microsoft Exchange servers via MAPI &#8211; need to try that on my work laptop.</li>
</ul>
<p>Overall, after going through installation and using it for a couple of days &#8211; I am really happy with the new release. Ubuntu continues strong and steady development and becomes a more serious competitor to Windows with every new release.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.ivankuznetsov.com%2F2009%2F04%2Fwhats-new-in-ubuntu-904-jaunty-jakalope.html&amp;linkname=What%26%238217%3Bs%20new%20in%20Ubuntu%209.04%20Jaunty%20Jakalope"><img src="http://www.ivankuznetsov.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.ivankuznetsov.com/2009/04/whats-new-in-ubuntu-904-jaunty-jakalope.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Sampo bank software upgrade, Ubuntu and beta culture</title>
		<link>http://www.ivankuznetsov.com/2008/04/sampo-bank-software-upgrade-ubuntu-and-beta-culture.html</link>
		<comments>http://www.ivankuznetsov.com/2008/04/sampo-bank-software-upgrade-ubuntu-and-beta-culture.html#comments</comments>
		<pubDate>Sun, 27 Apr 2008 13:13:02 +0000</pubDate>
		<dc:creator>Ivan Kuznetsov</dc:creator>
				<category><![CDATA[Current Affairs]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[Sampo]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.ivankuznetsov.com/?p=102</guid>
		<description><![CDATA[Even if you are not Sampo bank&#8217;s customer, but live in Finland, you have most probably heard by now about continuous problems Sampo had with their web-bank system. When Sampo launched the new system this Easter, they took into use Java-based authentication system. Of course it didn&#8217;t work in my Ubuntu 7.10, but after removing [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-103" title="Sampo Ubuntu error" src="http://www.ivankuznetsov.com/wp-content/uploads/sampoubuntu.png" alt="" width="298" height="147" />Even if you are not Sampo bank&#8217;s customer, but live in Finland, you have most probably heard by now about <a href="http://www.hs.fi/english/article/Sampo+Bank+problems+continue+-+cards+fail+again+on+Wednesday/1135235467803">continuous problems</a> <a href="http://www.sampopankki.fi">Sampo</a> had with their web-bank system.</p>
<p>When Sampo <a href="http://www.hs.fi/english/article/Serious+problems+with+launch+of+new+online+service+of+Sampo+Bank/1135235064450">launched the new system</a> this Easter, they took into use Java-based authentication system. Of course it didn&#8217;t work in my <a href="http://www.ubuntu.com">Ubuntu</a> 7.10, but after removing Open JDK and installing latest Sun JDK it started functioning again &#8211; at least log in worked. This Java solution <a href="http://blogit.tietokone.fi/tietojakoneesta/?p=345">raised a lot of concerns</a> in internet community.</p>
<p><span id="more-102"></span></p>
<p>After upgrade to Ubuntu 8.04 that has Firefox 3.0b5 as default browser, Sampo web-bank Java login stopped working again. This time installing latest JRE didn&#8217;t help. Hardy Heron (Ubuntu 8.04) contains JRE 1.6.0_06-b02 and it fails on the second security code request during login process. (Remarkably, Sun itself offers only 1.6.0_05 version for Linux). Solutions proposed in <a href="http://forum.ubuntu-fi.org/index.php?topic=16982.msg125906">Finnish Ubuntu discussion forum</a> (tweaking plugins) didn&#8217;t work for me either.</p>
<p>What worked was replacing JRE 1.6 with an older version 1.5:</p>
<p><code>$sudo apt-get remove sun-java6-bin sun-java6-fonts sun-java6-jre sun-java6-plugin openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib</code></p>
<p>$sudo apt-get install sun-java5-bin sun-java5-fonts sun-java5-jre sun-java5-plugin</p>
<p>Then I ran</p>
<p><code>$sudo update-alternatives --config java</code></p>
<p>command to make sure correct JRE was selected as default.</p>
<p>While struggling with this issue I tried to check Sampo&#8217;s technical support pages. There was a nice &#8220;<a href="https://www.sampopankki.fi/en-fi/Personal/eBanking/Support/CheckPC/Pages/TarkistaTietokoneesi.aspx">Check your computer page</a>&#8221; that kindly informed me that my operating system is Linux and &#8220;You may be able to run eBanking, but your operating system is not supported by Customer Support.&#8221;</p>
<p>This is really frustrating. 14% of the readers of this blog use Linux. On regular sites that I maintain this figure is from 7% to 10%. Sampo caused a lot of grief to its customers, me including, with this software system upgrade. Even after they <a href="http://www.yle.fi/news/id88848.html">promised to waive four months&#8217; worth of service charges</a> I&#8217;m still not sure it is going to be enough to keep all their customers.</p>
<p>I&#8217;ve experienced quite a lot of problems by far &#8211; non-\0-terminated strings in UI, transactions with no explanations that I don&#8217;t remember authorising, transactions in our web shop that were reported as failed, although money were withdrawn from customer&#8217;s accounts, simple web-bank downtimes with HTTP 503 and the latest one is my credit card &#8211; Sampo claims that I don&#8217;t owe them anything &#8211; probably it is one of the Monopoly&#8217;s famous &#8220;Bank error in your favour, collect $200&#8243; cases.</p>
<p>Beta culture seems to be spreading from internet startups to bank systems (although in this case I would be more inclined to say that this was a huge screw up on Danske Bank IT department&#8217;s part). I&#8217;m not sure I like it. Gmail beta, Flickr beta, but Sampo Bank beta? It&#8217;s definitely fun to participate in debugging of the new web service, but not when it deals with your real money.</p>
<p>This case bring interesting thoughts on how much we trust online services and what is the pain level when we say &#8220;that&#8217;s enough, I&#8217;m leaving&#8221;. Is it the same for data banking as for traditional banking. Would you trust your bank to keep your family photo archive or your computer backups? Is it any safer than Flickr/Google Documents? And the other way around &#8211; if you trust your data to Google or Yahoo, would you trust them with your money?</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.ivankuznetsov.com%2F2008%2F04%2Fsampo-bank-software-upgrade-ubuntu-and-beta-culture.html&amp;linkname=Sampo%20bank%20software%20upgrade%2C%20Ubuntu%20and%20beta%20culture"><img src="http://www.ivankuznetsov.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.ivankuznetsov.com/2008/04/sampo-bank-software-upgrade-ubuntu-and-beta-culture.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Moving /home to its own partition</title>
		<link>http://www.ivankuznetsov.com/2008/04/moving-home-to-its-own-partition.html</link>
		<comments>http://www.ivankuznetsov.com/2008/04/moving-home-to-its-own-partition.html#comments</comments>
		<pubDate>Sat, 26 Apr 2008 19:09:55 +0000</pubDate>
		<dc:creator>Ivan Kuznetsov</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[gparted]]></category>
		<category><![CDATA[partitions]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.ivankuznetsov.com/?p=97</guid>
		<description><![CDATA[After upgrading Ubuntu to 8.04 I decided it would be a good idea to finally move /home folder to a separate partition. It makes it much easier to make backups and reinstall operating system if all data/configurations are safely stored on their own partition. Without installing additional hard drive (which would be impractical for laptop [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-98" title="home" src="http://www.ivankuznetsov.com/wp-content/uploads/home.png" alt="Ubuntu - Disk Usage Analyzer" width="300" height="196" />After upgrading <a href="http://www.ubuntu.com">Ubuntu</a> to 8.04 I decided it would be a good idea to finally move /home folder to a separate partition. It makes it much easier to make backups and reinstall operating system if all data/configurations are safely stored on their own partition.</p>
<p>Without installing additional hard drive (which would be impractical for laptop user anyway) the only source for extra space was Vista partition. Vista comes preinstalled with most modern laptops, but there&#8217;s no need for it to exist taking up to 40Gb of hard drive space, when Ubuntu is the primary OS.</p>
<p><span style="color: red;">WARNING: Before executing any of the belowmentioned steps, it is highly recommended to make a full backup of your data.</span><br />
<span id="more-97"></span><strong></strong></p>
<p><strong>1. Check how much space you will need</strong></p>
<p>It is good to check how much space you will need for your /home partition. Use &#8220;Scan Home&#8221; in Disk Usage Analyzer (Applications-&gt;Accessories-&gt;Disk Usage Analyzer) to check how much space do you use now. This tool will give you excellent perspective on how you use your disk space &#8211; and where you can possibly save a few gigabytes. Add some gigabytes on top of the current usage figure for future use and now you now what should be the size of your new /home.</p>
<p><strong>2. Create new partition/filesystem</strong></p>
<p><code>In Ubuntu there's an excellent tool for manipulating partitions - GParted (System-&gt;Administration-&gt;Partition Editor).</code></p>
<p>If the estimated size of your home partition is smaller than the size of Vista partition (or any other partition you&#8217;re prepared to re-allocate), then the task is really simple &#8211; you just convert Vista&#8217;s ntfs partition into ext3. In my case all my data in /home folder didn&#8217;t fit into 40Gb, so I had to resize the root / partition. This is not possible while the system is running, so I had to burn Ubuntu Live CD, boot from the CD with &#8220;try Ubuntu without affecting you current system&#8221; option, and run GParted from there.</p>
<p>Note, that resizing and moving partitions is a time-consuming process &#8211; it may take hours, depending on the size of your partitions, so reserve enough time for this operation.</p>
<p><strong>3. Mount the new filesystem</strong></p>
<p><code>$sudo mkdir /mnt/newhome<br />
$sudo mount -t ext3 /dev/??? /mnt/newhome<br />
</code></p>
<p><strong>4. Copy all files to new home</strong></p>
<p><code>$cd /home<br />
$sudo cp -ax * /mnt/newhome</code></p>
<p>That is a copy with &#8220;preserve links, preserve mode, ownership, timestamps, copy directories recursively, stay on this file system&#8221; parameters.</p>
<p><strong>5. Change homes</strong></p>
<p>Unmount new home partition from temporary mount point</p>
<p><code>$sudo umount /mnt/newhome</code></p>
<p>Move old home to a temporary folder oldhome (note that this works only when you are moving /home to own partition from root partition, if you had /home on its own partition already and just moving it to the new place, you&#8217;ll need to unmount old /home partition instead of moving it to a temporary folder oldhome)</p>
<p><code>$sudo mv /home /oldhome</code></p>
<p>Create a mount point for new home partition</p>
<p><code>$sudo mkdir /home</code></p>
<p>Mount new home partition to /home</p>
<p><code>$sudo mount /dev/??? /home</code></p>
<p><strong>6. Compare the results</strong></p>
<p>You don&#8217;t really have to do that, but if you want to be extra sure that everything is ok and are prepared to wait a bit longer, then type:</p>
<p><code>$sudo diff -rq /home /oldhome</code></p>
<p><strong>7. Make changes permanent</strong></p>
<p>Add a line to the “/etc/fstab” file that looks like the following:</p>
<p><code>/dev/??? /home ext3 nodev,nosuid 0 2</code></p>
<p><strong>8. Remove old home</strong></p>
<p>Now that everything is ok, you can remove the old home folder (same note as in step 5 &#8211; if you had old home on its own partition already &#8211; then use GParted to reallocate old partition for new needs)</p>
<p><code>$sudo rm -r /oldhome</code></p>
<p>Voila! Now your /home is on its very own partition.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.ivankuznetsov.com%2F2008%2F04%2Fmoving-home-to-its-own-partition.html&amp;linkname=Moving%20%2Fhome%20to%20its%20own%20partition"><img src="http://www.ivankuznetsov.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.ivankuznetsov.com/2008/04/moving-home-to-its-own-partition.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
