Why does /cdrom has the same inode -number than /sys/devices/platform/power
in Ubuntu?
The following have the same inode number in my Ubuntu
./media/BACKUP_1/MISC
./cdrom
./sys/devices/platform/power
I get them by running the following at root
find . -inum 12 2> /dev/null
Reply to Leffler's answer
I run
stat cdrom
I get
File: `cdrom' -> `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
What does this info tell you?
Reply to Leffler's edit
Often, you can dissect the device number into a major and minor device number which is what 'ls -l' prints for a device.
This command ls -l cdrom
gives me this
lrwxrwxrwx 1 root root 11 2009-08-03 04:19 cdrom -> media/cdrom
How can you see the major and minor device number from this?