How to find the address location of a file?
Hi friends,
When we store our files in a Hard Disk(external memory), how do we find the memory location of the file in HD. Thanks in advance. |
Are you trying to hack a hard drive, or trying to write code to open a file?
Wayne Sallee Wayne@WayneSallee.com |
I'm not sure if I understand you in a right way, but what about using commands:
locate slocate find /some/path | grep filename ? |
vamsi9042, do you mean path to file? Or size of the file? Make it more clear please.
|
Here I was thinking he's looking for the logical block(s) the file lives on.
@vamsi9042: It would help if you gave some examples, too. |
If the question is about searching inodes, then look here.
If you need to look at file size, then use Code:
du -h /path/to/file Code:
find /path/where/to/search -iname 'pattern' |
Quote:
|
Is the output from
Code:
hdparm --fibmap /path/to/some/file |
Thank you....
|
Quote:
|
All times are GMT -5. The time now is 06:03 PM. |