The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Inode number compbug Filesystems, Disks and Memory 1 06-18-2006 08:06 PM
how to find serial number chomca AIX 3 05-26-2006 07:00 AM
How to find number of processes ? ArabOracle.com SUN Solaris 2 02-14-2006 12:29 AM
Directory Inode Number Not Unique nj302 UNIX for Dummies Questions & Answers 9 05-22-2005 08:34 AM
find without pathname MBGPS UNIX for Dummies Questions & Answers 3 06-27-2002 10:03 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-05-2007
Registered User
 

Join Date: Mar 2006
Posts: 45
Post how to find out pathname from inode number

Hi all

when I execute pmap command on one of my daemon process, I am able to see the following output.

Address Kbytes RSS Anon Locked Mode Mapped File
00010000 40 40 - - r-x-- irs026bmd
00028000 56 56 16 - rwx-- irs026bmd
00036000 280 264 144 - rwx-- [ heap ]
FBFFA000 8 8 8 - rwx-R [ stack tid=2 ]
FC000000 42800 42792 - - r--s- dev:85,60 ino:8464571
FEC30000 64 64 64 - rw--- [ anon ]
FEC50000 64 64 64 - rw--- [ anon ]
.
.
.
when I try to locate the file pointed by dev:85,60 ino:8464571 by executing the command find / -xdev -inum 8464571, I coundn't find the pathname of the file.

Could anybody help me to find the filename from the inode number

Thx in advance
Reply With Quote
Forum Sponsor
  #2  
Old 05-05-2007
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,298
-xdev prevents descent into other filesystems. Normally lots of filesystems can be mounted off /. I think that is your problem. What file system is mounted on 85, 40?
Reply With Quote
  #3  
Old 05-05-2007
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
Another problem is that there can be any number of pathnames, including zero pathnames. We get newbie admins all the time who encounter a filled filesystem, locate a large file, and simply run "rm large_file" without checking to see if the file is open. And then they wonder why the space was not freed.

But this situation could be intentional too. Lots of programs open a temporary file, unlink it, and then use it. This results in very good security since no other program can access that file. And it arranges for the file to automatically disappear when the program exits.

Also be aware that there can be many pathnames as well. Your question seems to imply an assumption of exactly one pathname per file. Filesystems don't work that way in unix.
Reply With Quote
  #4  
Old 09-26-2008
Registered User
 

Join Date: Sep 2008
Posts: 2
list path of a directory

thanks
helped me too
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:04 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0