LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 01-09-2009, 04:18 PM   #1
Marty21
Member
 
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?
Thankx
 
Old 01-09-2009, 04:22 PM   #2
paulsm4
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:

http://www.linfo.org/inode.html

Here is a kernel-level description:
http://www.cse.unsw.edu.au/~neilb/os...ary/vfs-7.html

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

Rep: Reputation: 177Reputation: 177
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
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 163Reputation: 163
Quote:
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?
Thankx
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
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,378

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


Reply


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:28 PM.

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