<?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>Personal Blog of Emre Yaşar &#187; disk</title>
	<atom:link href="http://www.yasars.com/index.php/tag/disk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yasars.com</link>
	<description>A bit technical, a bit lifestyle..</description>
	<lastBuildDate>Tue, 27 Apr 2010 19:55:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Missing Disk Space</title>
		<link>http://www.yasars.com/index.php/2009/08/17/missing-disk-space/</link>
		<comments>http://www.yasars.com/index.php/2009/08/17/missing-disk-space/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 03:05:21 +0000</pubDate>
		<dc:creator>Admin - Emre Yasar</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[ext3]]></category>
		<category><![CDATA[missing]]></category>
		<category><![CDATA[reiserfs]]></category>
		<category><![CDATA[tune2fs]]></category>

		<guid isPermaLink="false">http://www.yasars.com/?p=13</guid>
		<description><![CDATA[
Last night I made a test for making a comparison between ext2, ext3 and reiser file systems about missing (!) disk spaces.
Basically I created 3 disk partitions with 1 gb size and formatted them with ext2, ext3 and reiser file system types. Then mounted them to folders same with filesystem names. The result df -h [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-medium wp-image-15 alignright" title="disk1_emreyasar" src="http://www.yasars.com/wp-content/uploads/2009/08/disk1_emreyasar-251x300.jpg" alt="disk1_emreyasar" width="251" height="300" /></p>
<p><strong>Last night I made a test for making a comparison between ext2, ext3 and reiser file systems about missing (!) disk spaces.</strong></p>
<p>Basically I created 3 disk partitions with 1 gb size and formatted them with ext2, ext3 and reiser file system types. Then mounted them to folders same with filesystem names. The result df -h output is as below:</p>
<p>Filesystem            Size  Used Avail Use% Mounted on<br />
/dev/sdb1            1004M   20K  953M   1% /ext2_fs<br />
/dev/sdb2            1004M   17M  937M   2% /ext3_fs<br />
/dev/sdb3            1020M   33M  988M   4% /reiser_fs</p>
<p>As you can see both ext2 and ext3 file systems are reserved 50 megabytes at 1 gigabyte disk partition.<br />
This means 5% of disk is missing!!!</p>
<p>Calm down, here is the reason: (man tells everything to us )</p>
<p><span id="more-13"></span>This  reserved disk area avoids fragmentation,  and  allows  root-owned  daemons, such  as  syslog,  to continue to function correctly after on-privileged processes are prevented from writing to the filesystem.  <strong>The default percentage is 5%.</strong><br />
This means if you format a 300GB disk with ext2 or ext3, you will lost about 15GB for root owned daemons as default.</p>
<p>But you can modify this ratio by using tune2fs command.</p>
<p>For instance, after umounting the partition, you may run tune2fs command as below for decreasing reserved block at /dev/sdb2 partition to 1%:</p>
<p>tune2fs -m 1 /dev/sdb2</p>
<p>You may sea the result bye typing</p>
<p>tune2fs -l /dev/sdb2</p>
<p>and comparing &#8221;      block count&#8221; and &#8220;reserved block count&#8221; values.</p>
<p>I want to remind a little point about tune2fs. tune2fs tool can be used just for ext2 and ext3 file systems.<br />
If you want to use a tool like tune2fs for resier file system you have to use <strong>reiserfstune</strong> tool.<br />
But you have to consider that there is not a parameter for setting reserved disk percentage for reiserfs.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yasars.com/index.php/2009/08/17/missing-disk-space/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

