How wouldl I go about investigating where, in terms of actual address, a file is located on a given volume? I thought there might be an argument for ls but I'm not seeing it, possibly because I haven't looked hard enough. Jake
* Jake
How wouldl I go about investigating where, in terms of actual address, a file is located on a given volume? I thought there might be an argument for ls but I'm not seeing it, possibly because I haven't looked hard enough.
man locate -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711
On Thursday 25 March 2004 23:16, Patrick Shanahan wrote:
man locate
Thanks Patrick, am I being stupid? Bit newbish here so alopogies if I'm missing the obvious. I meant address as in cylinder number, surface number, sector number. Is there some way to use locate to tell me this info? Jake
On Thursday 25 March 2004 23:23, Jake wrote:
On Thursday 25 March 2004 23:16, Patrick Shanahan wrote:
man locate
Thanks Patrick, am I being stupid? Bit newbish here so alopogies if I'm
oops, I apologise for my alopogy *grin*
missing the obvious. I meant address as in cylinder number, surface number, sector number. Is there some way to use locate to tell me this info?
Jake
On Friday 26 March 2004 00:01, Jake wrote:
How wouldl I go about investigating where, in terms of actual address, a file is located on a given volume? I thought there might be an argument for ls but I'm not seeing it, possibly because I haven't looked hard enough.
If you're talking about where on the actual disk (as in which cylinder etc), that is heavily dependent on the file system you're using. The information is stored inside the inode. Small files may be stored inside the actual inode (like symlinks), for larger files, the information about where they are is found in there. For xfs you have tools like xfs_db to investigate the low level structures. For other file systems you may have other tools (coroner's toolkit spring to mind as a good thing to look at), although I don't know of any such tool for reiserfs
On Thursday 25 March 2004 23:23, Anders Johansson wrote:
If you're talking about where on the actual disk (as in which cylinder etc), that is heavily dependent on the file system you're using. The information is stored inside the inode. Small files may be stored inside the actual inode (like symlinks), for larger files, the information about where they are is found in there.
For xfs you have tools like xfs_db to investigate the low level structures. For other file systems you may have other tools (coroner's toolkit spring to mind as a good thing to look at), although I don't know of any such tool for reiserfs
I'm using reiserfs (8.2 pro). I'll have a look at coroners toolkit anyway. Thanks for responding. Jake
participants (3)
-
Anders Johansson
-
Jake
-
Patrick Shanahan