Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 01-09-2009, 04:18 PM   #1
Registered: Jan 2009
Posts: 46

Rep: Reputation: 15
No of inodes equals no of data blocks in a linux file sysem?

Hi guys,
In a linux file system,do the number of inodes and the number of data blocks same?
Old 01-09-2009, 04:22 PM   #2
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
No, they are not the same.

Here is one link for more info, you can Google for other links with "inode" "Linux filesystem" "Unix filesystem" or similar keywords:

Here is a kernel-level description:

Last edited by paulsm4; 01-09-2009 at 04:30 PM.
Old 01-09-2009, 04:22 PM   #3
LQ Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,661

Rep: Reputation: 229Reputation: 229Reputation: 229
No. There are a lot more data blocks than inodes. A likely ratio is about 20 to 1.

Steve Stites
Old 01-09-2009, 04:47 PM   #4
Senior Member
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 164Reputation: 164
Originally Posted by Marty21 View Post
Hi guys,
In a linux file system,do the number of inodes and the number of data blocks same?
You can use debugfs, ext3grep, and several other tools in tct/tsk to see a lot of the basic stats about your file system (block size, inode size, etc.)
Old 01-10-2009, 07:41 PM   #5
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,893

Rep: Reputation: 1357Reputation: 1357Reputation: 1357Reputation: 1357Reputation: 1357Reputation: 1357Reputation: 1357Reputation: 1357Reputation: 1357Reputation: 1357
In Linux, an "inode" is basically the representation of "a single file." The name is historical. Directories, in turn, associate names with those inodes.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
shell script to determine if file size equals zero jonfa Programming 5 12-11-2007 04:48 PM
when inodes, superblock and data block are created? xcore_on Linux - Newbie 1 05-02-2006 04:54 PM
repquota (and edquota) report incorrect "used" blocks/inodes.. marcolof Linux - General 0 02-18-2005 09:26 AM
How to convert KB to "Blocks and Inodes" or quota SammyK Linux - General 4 09-17-2003 01:57 PM
data blocks in ext2fs udayan Programming 1 07-07-2002 04:42 PM

All times are GMT -5. The time now is 09:55 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration