<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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/"
> <channel><title>Comments on: Determine the block size on hard disk filesystem for disk quota</title> <atom:link href="http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Alan</title><link>http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-176145</link> <dc:creator>Alan</dc:creator> <pubDate>Mon, 28 Nov 2011 11:19:02 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-176145</guid> <description>You&#039;re absolutely right.  quotas always use a 1k block size regardless of the file system&#039;s block size.  This was very confusing for me!</description> <content:encoded><![CDATA[<p>You&#8217;re absolutely right.  quotas always use a 1k block size regardless of the file system&#8217;s block size.  This was very confusing for me!</p> ]]></content:encoded> </item> <item><title>By: ManikantaVarma</title><link>http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-174232</link> <dc:creator>ManikantaVarma</dc:creator> <pubDate>Thu, 22 Sep 2011 10:27:21 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-174232</guid> <description>Hi
create an empty file say file.txt by touch command.
eg:
touch file.txt
then type this comman on konsole
# du -h file.txt
o/p:
4.0kb
regards
manikanta</description> <content:encoded><![CDATA[<p>Hi<br
/> create an empty file say file.txt by touch command.<br
/> eg:<br
/> touch file.txt<br
/> then type this comman on konsole<br
/> # du -h file.txt<br
/> o/p:<br
/> 4.0kb</p><p>regards<br
/> manikanta</p> ]]></content:encoded> </item> <item><title>By: ManikantaVarma</title><link>http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-174230</link> <dc:creator>ManikantaVarma</dc:creator> <pubDate>Thu, 22 Sep 2011 10:22:14 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-174230</guid> <description>Hi
The size of the dataBlock in system is equal to size of the page in system.
check with getpagesize() &amp; dumpe2fs.
regards,
manikanta</description> <content:encoded><![CDATA[<p>Hi<br
/> The size of the dataBlock in system is equal to size of the page in system.</p><p> check with getpagesize() &amp; dumpe2fs.</p><p>regards,<br
/> manikanta</p> ]]></content:encoded> </item> <item><title>By: yao</title><link>http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-173212</link> <dc:creator>yao</dc:creator> <pubDate>Thu, 11 Aug 2011 05:10:58 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-173212</guid> <description>david, my understanding about block size is just the same as you. i think maybe the author made some mistake</description> <content:encoded><![CDATA[<p>david, my understanding about block size is just the same as you. i think maybe the author made some mistake</p> ]]></content:encoded> </item> <item><title>By: david</title><link>http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-169826</link> <dc:creator>david</dc:creator> <pubDate>Mon, 14 Mar 2011 11:11:15 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-169826</guid> <description>Hi all (5 years later),
If block size is 4096 bytes (4KB) then disk quota of 10 MB for one user is:
10MB / 4KB = 2560 blocks
What am I missing?</description> <content:encoded><![CDATA[<p>Hi all (5 years later),</p><p>If block size is 4096 bytes (4KB) then disk quota of 10 MB for one user is:</p><p>10MB / 4KB = 2560 blocks</p><p>What am I missing?</p> ]]></content:encoded> </item> <item><title>By: Chen Levy</title><link>http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-154518</link> <dc:creator>Chen Levy</dc:creator> <pubDate>Thu, 25 Mar 2010 07:18:40 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-154518</guid> <description>The above tip seems to be wrong.
Apparently there are more then one meaning to the term &quot;block size&quot;. The original post refers to the file-system block size, while quota uses a system constant that is a feature of the running kernel.
See &lt;a href=&quot;http://stackoverflow.com/questions/2506288/detect-block-size-for-quota-in-linux&quot; rel=&quot;nofollow&quot;&gt;Detect block size for quota in Linux&lt;/a&gt; question on StackOverflow.</description> <content:encoded><![CDATA[<p>The above tip seems to be wrong.</p><p>Apparently there are more then one meaning to the term &#8220;block size&#8221;. The original post refers to the file-system block size, while quota uses a system constant that is a feature of the running kernel.</p><p>See <a
href="http://stackoverflow.com/questions/2506288/detect-block-size-for-quota-in-linux" rel="nofollow">Detect block size for quota in Linux</a> question on StackOverflow.</p> ]]></content:encoded> </item> <item><title>By: parvesh</title><link>http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-153252</link> <dc:creator>parvesh</dc:creator> <pubDate>Sun, 31 Jan 2010 05:27:18 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-153252</guid> <description>hi all,
just wanted to know how no of blocks and size of disk are related just suppose i have 500gb of hard disk how blocks are numbered and how many bytes in one block</description> <content:encoded><![CDATA[<p>hi all,<br
/> just wanted to know how no of blocks and size of disk are related just suppose i have 500gb of hard disk how blocks are numbered and how many bytes in one block</p> ]]></content:encoded> </item> <item><title>By: TodayLinux</title><link>http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-152371</link> <dc:creator>TodayLinux</dc:creator> <pubDate>Sat, 19 Dec 2009 11:54:55 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-152371</guid> <description>Hello Vivek / Admin,
This article is little confusing. I would suggest to make necessary correction on this article.
The output of &lt;i&gt;# dumpe2fs /dev/sdb3 &#124; grep -i &#039;Block size&#039;&lt;/i&gt; is IO Block size.  not the block size of filesystem which is 512K (each sector size). In your example 8 x 512K = 4096K, which is the default IO Block size.</description> <content:encoded><![CDATA[<p>Hello Vivek / Admin,</p><p>This article is little confusing. I would suggest to make necessary correction on this article.</p><p>The output of <i># dumpe2fs /dev/sdb3 | grep -i &#8216;Block size&#8217;</i> is IO Block size.  not the block size of filesystem which is 512K (each sector size). In your example 8 x 512K = 4096K, which is the default IO Block size.</p> ]]></content:encoded> </item> <item><title>By: Ramesh</title><link>http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-151736</link> <dc:creator>Ramesh</dc:creator> <pubDate>Tue, 17 Nov 2009 12:05:50 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-151736</guid> <description>I am a bit confused...
when I try to see block size with command &quot;/sbin/dumpe2fs -h /dev/mapper/System-home&quot;
then it says:
Block size:               4096
but when i run df command: it shows
Filesystem                                1K-blocks      Used Available Use% Mounted on
/dev/mapper/System-home    61958132  49838676   8972092  85% /home
and when I run df -h, it shows
Filesystem                                1K-blocks      Used Available Use% Mounted on
/dev/mapper/System-home             60G   48G  8.6G          85%         /home
does this mean that 1Kb = 4096 blocks ??</description> <content:encoded><![CDATA[<p>I am a bit confused&#8230;</p><p>when I try to see block size with command &#8220;/sbin/dumpe2fs -h /dev/mapper/System-home&#8221;<br
/> then it says:</p><p>Block size:               4096</p><p>but when i run df command: it shows<br
/> Filesystem                                1K-blocks      Used Available Use% Mounted on<br
/> /dev/mapper/System-home    61958132  49838676   8972092  85% /home</p><p>and when I run df -h, it shows</p><p>Filesystem                                1K-blocks      Used Available Use% Mounted on<br
/> /dev/mapper/System-home             60G   48G  8.6G          85%         /home</p><p>does this mean that 1Kb = 4096 blocks ??</p> ]]></content:encoded> </item> <item><title>By: beanluc</title><link>http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-149546</link> <dc:creator>beanluc</dc:creator> <pubDate>Fri, 17 Jul 2009 18:39:05 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-149546</guid> <description>linuxrawkstar:
No, James Cape&#039;s tip doesn&#039;t assume that all block sizes are all the same, all the time, on all filesystems.
His tip specifically follows the example in the article, in which LINUXTITLI &quot;discovered&quot; a 4096b block size for the filesystem he was discussing.
LINUXTITLI, and Shane too, already showed how to discover block size for some other particular filesystem.</description> <content:encoded><![CDATA[<p>linuxrawkstar:</p><p>No, James Cape&#8217;s tip doesn&#8217;t assume that all block sizes are all the same, all the time, on all filesystems.</p><p>His tip specifically follows the example in the article, in which LINUXTITLI &#8220;discovered&#8221; a 4096b block size for the filesystem he was discussing.</p><p>LINUXTITLI, and Shane too, already showed how to discover block size for some other particular filesystem.</p> ]]></content:encoded> </item> <item><title>By: Shane Menshik</title><link>http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-148947</link> <dc:creator>Shane Menshik</dc:creator> <pubDate>Sat, 13 Jun 2009 11:07:48 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-148947</guid> <description>You can also get the block size for all disks using the following command, as well as readahead, size, etc.
blockdev --report</description> <content:encoded><![CDATA[<p>You can also get the block size for all disks using the following command, as well as readahead, size, etc.</p><p>blockdev &#8211;report</p> ]]></content:encoded> </item> <item><title>By: linuxrawkstar</title><link>http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-148275</link> <dc:creator>linuxrawkstar</dc:creator> <pubDate>Thu, 23 Apr 2009 18:56:54 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-148275</guid> <description>Nice tip.  The comment by James Cape assumes that all block sizes are all the same, all the time, on all filesystems... hmmm.  Is that true??</description> <content:encoded><![CDATA[<p>Nice tip.  The comment by James Cape assumes that all block sizes are all the same, all the time, on all filesystems&#8230; hmmm.  Is that true??</p> ]]></content:encoded> </item> <item><title>By: James Cape</title><link>http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-147592</link> <dc:creator>James Cape</dc:creator> <pubDate>Sun, 08 Mar 2009 16:49:10 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-147592</guid> <description>Umm, 409600 blocks = 409600(blocks) * 4096(B) = 1.6G</description> <content:encoded><![CDATA[<p>Umm, 409600 blocks = 409600(blocks) * 4096(B) = 1.6G</p> ]]></content:encoded> </item> <item><title>By: Teslamike</title><link>http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-100180</link> <dc:creator>Teslamike</dc:creator> <pubDate>Wed, 28 Mar 2007 15:04:31 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-100180</guid> <description>100MB is the same size on one system as it is on another.  However, with varying block sizes, 100MB may spread over more blocks on systems with smaller block sizes than it does on a system with a larger block size.
For example, on a system with a 512B block size 100MB will take up 204800 blocks.  On a system with a 64K block size 100MB will take up 1600 blocks.</description> <content:encoded><![CDATA[<p>100MB is the same size on one system as it is on another.  However, with varying block sizes, 100MB may spread over more blocks on systems with smaller block sizes than it does on a system with a larger block size.</p><p>For example, on a system with a 512B block size 100MB will take up 204800 blocks.  On a system with a 64K block size 100MB will take up 1600 blocks.</p> ]]></content:encoded> </item> <item><title>By: Tortanick</title><link>http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-50804</link> <dc:creator>Tortanick</dc:creator> <pubDate>Thu, 04 Jan 2007 11:58:03 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-50804</guid> <description>I just found this post, it was exactly what I was looking for, thanks for the help :)
Just two things:
1) on my system I had to use double quotes rather than single quotes,
2) I think this means that 100MB could be bigger on one system than another? Am I right?</description> <content:encoded><![CDATA[<p>I just found this post, it was exactly what I was looking for, thanks for the help :)</p><p>Just two things:</p><p>1) on my system I had to use double quotes rather than single quotes,</p><p>2) I think this means that 100MB could be bigger on one system than another? Am I right?</p> ]]></content:encoded> </item> <item><title>By: LinuxTitli</title><link>http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-163</link> <dc:creator>LinuxTitli</dc:creator> <pubDate>Mon, 29 May 2006 12:08:59 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-163</guid> <description>Opps :( you are right. Above command is to determine the actual size of a block on the filesystem.
Thanks, I will update post :)</description> <content:encoded><![CDATA[<p>Opps :( you are right. Above command is to determine the actual size of a block on the filesystem.</p><p>Thanks, I will update post :)</p> ]]></content:encoded> </item> <item><title>By: mj</title><link>http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-162</link> <dc:creator>mj</dc:creator> <pubDate>Mon, 29 May 2006 11:57:11 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html#comment-162</guid> <description>hi,
i think that this is BLOCK SIZE OF FILESYSTEM not harddisk. Title is a bit missleading. BLOCK SIZE OF DISK is allmost always 512B</description> <content:encoded><![CDATA[<p>hi,<br
/> i think that this is BLOCK SIZE OF FILESYSTEM not harddisk. Title is a bit missleading. BLOCK SIZE OF DISK is allmost always 512B</p> ]]></content:encoded> </item> </channel> </rss>
