- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- why inode 2 for root
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2003 07:24 AM
тАО11-10-2003 07:24 AM
why inode 2 for root
I was just wondering someone gimme an answer for this question..
I referred many unix flavors and the inode for / is always 2.
$ ls -id
2 .
$ pwd
/
$
I need an answer for this? I also notice some other directories under root are having inode 2...any reasons...
Thanks in advance
Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2003 07:32 AM
тАО11-10-2003 07:32 AM
Re: why inode 2 for root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2003 07:38 AM
тАО11-10-2003 07:38 AM
Re: why inode 2 for root
The inode number givven to the top directory of your filesystem is entirly file-system dependent.
Anyway, each filesystem on your system as a top-directory and will have this inodenumber for it's topdirectory.
Why do you see multiple 2's ?
Well, these are the directories on which other filesystems are mounted. The inode of the topdirectory of the mounted filesystem is mapped over the inode of the mount-point.
As a test, you could simply umount such a filesystem, if not in use of course. And you will see that it's inode number is not longer 2, but something else.
Mount the filesystem again on it's mountpoint, and the mountpoint directory's inode is again 2.
There exist also good books about the in's and out's of the UNIX OS, where this is explained in extenso.
Joris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2003 07:58 AM
тАО11-10-2003 07:58 AM
Re: why inode 2 for root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2003 09:02 AM
тАО11-10-2003 09:02 AM
Re: why inode 2 for root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2003 09:05 AM
тАО11-10-2003 09:05 AM
Re: why inode 2 for root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2003 10:07 AM
тАО11-10-2003 10:07 AM
Re: why inode 2 for root
reason might be.....
Accessing a file in Unix start by searching it's entry in the directory. Each directory's inode or it's datablock contains all it's member filenames and their inode. So it has to be a permanent inode.
I don't know where inode 1 is used!!!??