In Linux, I'd like to know how to find the file(s) if any which as using a particular sector on the hard drive (ext2/3). There is a similar question here regarding Windows, however I need a Linux command line solution (this is a headless system).
Asked
Active
Viewed 5,671 times
4
-
similar question: http://serverfault.com/questions/315700/how-to-determine-which-file-inode-occupies-a-given-sector – neutrinus Sep 22 '15 at 21:39
1 Answers
5
The short answer is that you need to use debugfs. The long answer, found here, is that first you have to map the disk location to the filesystem location. By the way, you didn't say if your filesystem is ext2/3 or something else. The link is for ext2/3.
Dennis Williamson
- 106,229
- 19
- 167
- 187
-
Thanks, just what I was looking for. The filesystem is ext3 (I updated my original question). – MT. Apr 27 '10 at 15:17