LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-28-2009, 11:26 PM   #1
sumeet inani
Member
 
Registered: Oct 2008
Posts: 881
Blog Entries: 26

Rep: Reputation: 47
single inode pointing to various files on same hard drive


I searched for file with inode number 100 in /
OUTPUT along with verification was

ls -i /sys/module/vt/parameters/default_grn
100 /sys/module/vt/parameters/default_grn

ls -i /windows/E/software/UsbSafelyRemove_4.0.5.707/UsbSafelyRemove\ 4.0.5.707/App/USB\ Safely\ Remove/Languages/Chinese-Simplified.lng
100 /windows/E/software/UsbSafelyRemove_4.0.5.707/UsbSafelyRemove 4.0.5.707/App/USB Safely Remove/Languages/Chinese-Simplified.lng

ls -i /windows/D/general\ awareness/FACTS.doc
100 /windows/D/general awareness/FACTS.doc

My question is how can three files have same inode number?Does each inode point to lot of files.
 
Old 06-29-2009, 12:42 AM   #2
Jerre Cope
Member
 
Registered: Oct 2003
Location: Texas (central)
Distribution: ubuntu,Slackware,knoppix
Posts: 323

Rep: Reputation: 37
An Inode is the address where the file connects to the file system. Any number of file names may be connected to a single Inode, which means that they are really the same file, regards of their locations within the file system.


do a man on the ln command and you will see how to create files with a common Inode.
 
Old 06-29-2009, 12:43 AM   #3
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,225

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
Each partition has its own inodes set.
That's why you can't hardlink across partitions.
http://www.linfo.org/hard_link.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving files from a Linux hard drive to a Windows Vista Premium hard drive WolfMan51 Linux - Hardware 5 07-12-2011 09:19 AM
Copying files from internal Hard drive to USB 2.0 Hard Drive is NOT Behaving tubatodd Ubuntu 4 02-19-2007 04:32 PM
Dual boot (with XP) on single hard drive ??? prn Linux - General 7 10-18-2006 03:19 PM
More than 2 OS's on a single hard drive BFGeier Linux - Newbie 1 01-04-2006 09:49 AM
using LVM for single hard drive csfalcon Linux - Hardware 2 02-17-2005 11:17 AM


All times are GMT -5. The time now is 04:57 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration