Sponsored Content
Operating Systems AIX How to get the filename of which has been deleted if I know the inode number? Post 302374604 by JoyOnLine on Wednesday 25th of November 2009 04:23:21 AM
Old 11-25-2009
How to get the filename of which has been deleted if I know the inode number?

How to get the filename of which has been deleted if I know the inode number.

i can use the command "istat" to get the inode number of the file.
Code:
# istat
/proc/[pid]/fd/x

If this file has been deleted,but the process of this file has not been closed and handle has not been released ,so this file has not been released yet.

then ,how can i get the path of which it has been deleted before if i know the inode number in AIX?

Thank you very much!

Last edited by zaxxon; 12-01-2009 at 07:33 AM.. Reason: code tags
 

10 More Discussions You Might Find Interesting

1. Solaris

How to map a disk block to filename/ Inode

Hi, I want to find out a particular disk block belong to which file. in solaris 2.8 Can anyone help. Thanks and Regards Bala (1 Reply)
Discussion started by: Balamurugan
1 Replies

2. UNIX for Dummies Questions & Answers

Directory Inode Number Not Unique

Hi, I know that inode for each file is unique, but is it the for the directory? So far I found different directories has the same inode nubmer when you do ls -i, could some one explain why? Thanks a lot. (9 Replies)
Discussion started by: nj302
9 Replies

3. Filesystems, Disks and Memory

Inode number

as kernel keeps track of user activities on a file by its INODE number and I node table . what is the structure of Inode table. and where does this Inode table mapped into?user space or kernel space? is the Inode Number is fixed for a file till its deletion? thanks (1 Reply)
Discussion started by: compbug
1 Replies

4. UNIX for Advanced & Expert Users

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... (3 Replies)
Discussion started by: axes
3 Replies

5. UNIX for Dummies Questions & Answers

Number of Inode on a disk

How we can know number of inode present in my Disk including free and occupied. Is there any tool or program to know how much free inode are there in inode free list . (2 Replies)
Discussion started by: mr_deb
2 Replies

6. Filesystems, Disks and Memory

Recreating a deleted hardlink to a file if I know the inode number

At risk of twisting the rules to nearly the point of breaking (if you think this goes too far mods, I apologise and accept that this should be deleted), I'm hoping someone might be able to cast a little light on the following problem regarding hard links to files. ... (6 Replies)
Discussion started by: Smiling Dragon
6 Replies

7. UNIX for Dummies Questions & Answers

inode filename

can someone please tell me why is the filename not inlcuded in the inode of the file? (2 Replies)
Discussion started by: wowman
2 Replies

8. Shell Programming and Scripting

How can I get only FileName associated with a INODE on Unix much faster?

How can I get only FileName associated with a INODE on Unix in seconds instead of minutes, as it is the case for me as shown below. # Say I have FileDescriptor: 43, INODE: 2590784, File: abc.rdb. I want to get only filename associated with inode:2590784 and FD:43. $> time find / -inum... (7 Replies)
Discussion started by: kchinnam
7 Replies

9. Red Hat

Inode number changes for a file in Redhat Linux

Hi, I have created a file abc.log in Redhat Linux. Inode number for a file get changes every time i update the file using vi editor. Is there any setting that can be made , such that inode number never gets changed? Or if we cannot restrict from inode number getting changed , is... (9 Replies)
Discussion started by: raghu.amilineni
9 Replies

10. Solaris

Retreive deleted file name if you having inode number

Some one please help me to find deleted file name, if I am having inode number in Solaris without using any 3rd party tool. Thanks :) (3 Replies)
Discussion started by: aksijain
3 Replies
ncheck_hfs(1M)															    ncheck_hfs(1M)

NAME
ncheck_hfs: ncheck - generate a list of path names from inode numbers for a HFS file system SYNOPSIS
inode-numbers] [special ...] DESCRIPTION
when invoked without arguments, generates a list of path names corresponding to the inode numbers of all files contained on the HFS file systems listed in If special is specified, ncheck reports on the special only. Path names generated by are relative to the given special. Names of directory files are followed by Options Allow printing of the names and which are ordinarily suppressed. Specify the HFS file system type. Report only on files whose inode numbers are specified on the command line, in inode-numbers. inode-numbers is a comma separated list of inode numbers. Report only on special files and regular files with set-user-ID mode. The option is intended to discover concealed violations of security policy. Echo the completed command line, but performs no other action. The command line is generated by incorporating the user-specified options and other information derived from This option allows the user to verify the command line. Report only on files using sector numbers specified on the command line in sector_ranges. sector_ranges is a comma separated list of sector ranges. A sector range is a starting sector number and an ending sector number separated by a dash, or just a sector number. The sec- tor numbers should be in DEV_BSIZE units. If no pathname contains the sector number it will be reported as free or containing file system structure. Sectors beyond the end of the file system will be reported as illegal. Access Control Lists Continuation inodes (that is, inodes containing additional access control list information) are quietly skipped since they do not corre- spond to any path name. EXAMPLES
Execute the command on all special in Execute the command on HFS file system EXTERNAL INFLUENCES
International Code Set Support Single- and multi-byte character code sets are supported. DIAGNOSTICS
When the file system structure is improper, denotes the ``parent'' of a parentless file and a path-name beginning with denotes a loop. AUTHOR
was developed by AT&T and HP. FILES
Specifies the default file system type. Static information about the file systems. SEE ALSO
acl(5), fsck(1M), fstab(4), fs_wrapper(5), ncheck(1M), sort(1). STANDARDS CONFORMANCE
ncheck_hfs(1M)
All times are GMT -4. The time now is 11:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy