LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   No of inodes equals no of data blocks in a linux file sysem? (https://www.linuxquestions.org/questions/linux-kernel-70/no-of-inodes-equals-no-of-data-blocks-in-a-linux-file-sysem-696176/)

Marty21 01-09-2009 04:18 PM

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

paulsm4 01-09-2009 04:22 PM

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

jailbait 01-09-2009 04:22 PM

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

-------------------
Steve Stites

rweaver 01-09-2009 04:47 PM

Quote:

Originally Posted by Marty21 (Post 3402902)
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.)

sundialsvcs 01-10-2009 07:41 PM

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


All times are GMT -5. The time now is 10:09 AM.