title: To understand the same inode numbers for different objects in Ubuntu
body: <p><strong>Why does /cdrom has the same inode -number than <code>/sys/devices/platform/power</code> in Ubuntu?</strong></p>
  
  <p>The following have the same inode number in my Ubuntu</p>
  
  <pre><code>./media/BACKUP_1/MISC
  ./cdrom
  ./sys/devices/platform/power
  </code></pre>
  
  <p>I get them by running the following at root</p>
  
  <pre><code>find . -inum 12 2&gt; /dev/null
  </code></pre>
  
  <hr>
  
  <p><strong>Reply to Leffler's answer</strong></p>
  
  <p>I run</p>
  
  <pre><code>stat cdrom
  </code></pre>
  
  <p>I get</p>
  
  <pre><code>  File: `cdrom' -&gt; `media/cdrom'
    Size: 11              Blocks: 0          IO Block: 4096   symbolic link
  Device: 801h/2049d      Inode: 12          Links: 1
  Access: (0777/lrwxrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)
  Access: 2009-08-03 04:25:35.000000000 +0300
  Modify: 2009-08-03 04:19:05.000000000 +0300
  Change: 2009-08-03 04:19:05.000000000 +0300
  </code></pre>
  
  <p>What does this info tell you?</p>
  
  <p><strong>Reply to Leffler's edit</strong></p>
  
  <blockquote>
    <p>Often, you can dissect the device
    number into a major and minor device
    number which is what 'ls -l' prints
    for a device.</p>
  </blockquote>
  
  <p>This command <code>ls -l cdrom</code> gives me this</p>
  
  <pre><code>lrwxrwxrwx 1 root root 11 2009-08-03 04:19 cdrom -&gt; media/cdrom 
  </code></pre>
  
  <p><strong>How can you see the major and minor device number from this?</strong></p>