Reverse lookup of inode/file from offset in raw device on linux and ext3/4?
- by lilinjn
In linux, given an offset into a raw disk device, is it possible to map back to an partition + inode?
For example, suppose I know that string "xyz" is contained at byte offset 1000000 on /dev/sda:
(e.g. xxd -l 100 -s 1000000 /dev/sda shows a dump that begins with "xyz")
1) How do I figure out which partition (if any) offset 1000000 is located…