1825766 Members
2054 Online
109687 Solutions
New Discussion

Re: What is in inode #1

 
SOLVED
Go to solution
Jesper Sivertsen
Frequent Advisor

What is in inode #1

Hi there
I wonder what is in inode # 1 in a filesystem.
Inode # 2 = Top directory.
Inode # 3 = /lost+found

If anybody knows please tell me !

Best regards
Jesper
All in unix is files
2 REPLIES 2
Patrick Wallek
Honored Contributor
Solution

Re: What is in inode #1

Here is a short excerpt from a document on HFS filesystems that I found in the TKB. The doc id is: OALWP01950320 I would think that this portion would apply towards vxfs/jfs filesystems as well, although if someone can prove me wrong, please do.

Text from document:

The inodes list is checked sequentially, from inode 2 (inode 0 marks unused directory slots and inode 1 is reserved for future use) to the last inode in the file system.
Thomas Kollig
Trusted Contributor

Re: What is in inode #1

Hi!

Inode 2 is the root directory of the file system. Inodes 3,4,... are for free use. Usually the next entry is the lost+found directory and therefore is inode 3.
Since historically bad blocks were linked to inode 1, it is reserved. Inode 0 is reserved, too. For what inode 0 is/was used I don't know.

Thomas