<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: why inode 2 for root in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/why-inode-2-for-root/m-p/3115328#M897367</link>
    <description>the other '2's under / should be mount points. Inode numbers are not duplicated in a specific filesystem.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 10 Nov 2003 15:32:52 GMT</pubDate>
    <dc:creator>doug mielke</dc:creator>
    <dc:date>2003-11-10T15:32:52Z</dc:date>
    <item>
      <title>why inode 2 for root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-inode-2-for-root/m-p/3115327#M897366</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I was just wondering someone gimme an answer for this question..&lt;BR /&gt;I referred many unix flavors and the inode for / is always 2.&lt;BR /&gt;$ ls -id &lt;BR /&gt;     2 .&lt;BR /&gt;$ pwd&lt;BR /&gt;/&lt;BR /&gt;$ &lt;BR /&gt;I need an answer for this? I also notice some other directories under root are having inode 2...any reasons...&lt;BR /&gt;Thanks in advance&lt;BR /&gt;Vijay</description>
      <pubDate>Mon, 10 Nov 2003 15:24:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-inode-2-for-root/m-p/3115327#M897366</guid>
      <dc:creator>Vijaya Kumar_3</dc:creator>
      <dc:date>2003-11-10T15:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: why inode 2 for root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-inode-2-for-root/m-p/3115328#M897367</link>
      <description>the other '2's under / should be mount points. Inode numbers are not duplicated in a specific filesystem.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Nov 2003 15:32:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-inode-2-for-root/m-p/3115328#M897367</guid>
      <dc:creator>doug mielke</dc:creator>
      <dc:date>2003-11-10T15:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: why inode 2 for root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-inode-2-for-root/m-p/3115329#M897368</link>
      <description>Vijay,&lt;BR /&gt;&lt;BR /&gt;The inode number givven to the top directory of your filesystem is entirly file-system dependent. &lt;BR /&gt;Anyway, each filesystem on your system as a top-directory and will have this inodenumber for it's topdirectory.&lt;BR /&gt;&lt;BR /&gt;Why do you see multiple 2's ?&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;Mount the filesystem again on it's mountpoint, and the mountpoint directory's inode is again 2.&lt;BR /&gt;&lt;BR /&gt;There exist also good books about the in's and out's of the UNIX OS, where this is explained in extenso.&lt;BR /&gt;&lt;BR /&gt;Joris&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Nov 2003 15:38:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-inode-2-for-root/m-p/3115329#M897368</guid>
      <dc:creator>Joris Denayer</dc:creator>
      <dc:date>2003-11-10T15:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: why inode 2 for root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-inode-2-for-root/m-p/3115330#M897369</link>
      <description>the inode for the mount point for every file system will be 2, i.e. /.  The same as for /var, /usr, /opt, etc. if they are seperate file systems.  Why?  I'm not sure, other then, the mount point is always the first entry in the file system, except for the superblock info.</description>
      <pubDate>Mon, 10 Nov 2003 15:58:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-inode-2-for-root/m-p/3115330#M897369</guid>
      <dc:creator>curt larson_1</dc:creator>
      <dc:date>2003-11-10T15:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: why inode 2 for root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-inode-2-for-root/m-p/3115331#M897370</link>
      <description>I suppose the real question is why not 1? Inode 1 is used for the bad blocks list. Inode 2 is always the root inode for any filesystem. Depending upon the OS and filesystem type other low-number inodes are used for other purposes.</description>
      <pubDate>Mon, 10 Nov 2003 17:02:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-inode-2-for-root/m-p/3115331#M897370</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-11-10T17:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: why inode 2 for root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-inode-2-for-root/m-p/3115332#M897371</link>
      <description>You'll have to ask the engineers at AT&amp;amp;T ro Berkeley I suppose. It's just convention as to why they chose the number 2.</description>
      <pubDate>Mon, 10 Nov 2003 17:05:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-inode-2-for-root/m-p/3115332#M897371</guid>
      <dc:creator>Kevin Wright</dc:creator>
      <dc:date>2003-11-10T17:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: why inode 2 for root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-inode-2-for-root/m-p/3115333#M897372</link>
      <description>All file system's root directory will be using inode 2. &lt;BR /&gt;&lt;BR /&gt;reason might be.....&lt;BR /&gt;&lt;BR /&gt;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. &lt;BR /&gt;&lt;BR /&gt;I don't know where inode 1 is used!!!??&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Nov 2003 18:07:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-inode-2-for-root/m-p/3115333#M897372</guid>
      <dc:creator>PVR</dc:creator>
      <dc:date>2003-11-10T18:07:06Z</dc:date>
    </item>
  </channel>
</rss>

