Is there a tool that would show me for a specific file on disk, how fragmented it is? (How many seeks does physical disk need to make if I were to read that file in a linear fashion)
You can see if files are fragmented by using the file system browser in OSForensics. In the file system browser choose "Add device to case" from the File menu and select the drive letter or image file you wish to view. You can then navigate to the folder/files you wish to check for fragmentation.
. In the search box, type Disk Defragmenter, and then, in the list of results, click Disk Defragmenter. Under Current status, select the disk you want to defragment. To determine if the disk needs to be defragmented or not, click Analyze disk.
Fragmentation is caused when information is deleted from a hard drive and small gaps are left behind to be filled by new data. As new data is saved to the computer, it is placed in these gaps. If the gaps are too small, the remainder of what needs to be saved is stored in other available gaps.
Recovering Fragmented Files Information about which exact sectors on the disk are occupied by a certain file is stored in the file system, FAT or NTFS. If a record about the file is still available in the file system, the file can be undeleted no matter whether it's fragmented or not.
filefrag is the tool you're looking for, if you're using Linux. Use -v parameter with filename to get detailed list of fragmentation. http://linux.die.net/man/8/filefrag
fsutil file queryallocranges offset=<o> length=<l> <file>
will show you the file's extents you will need admin rights.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With