Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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).

share|improve this question

1 Answer 1

up vote 5 down vote accepted

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.

share|improve this answer
    
Thanks, just what I was looking for. The filesystem is ext3 (I updated my original question). –  MT. Apr 27 '10 at 15:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.