May you have ever used filesystem defragmentation tools (like Norton SpeedDisk or Piriform Defraggler) on Windows, you have probably seen such a diagram:

It displays a filesystem sectors map, painting (as for this particular example) sectors (sets of sectors actually, to fit the whole partition in the screen) occupied by non-fragmented (contiguous) files in blue, the opposite in red and free sectors in white (and some more colours for some more particular cases which can happen to be of interest). You can click on a “sector” and see what particular files “live” there.
Is there such a visualization tool for Linux?
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
I had the same question, but there was no appropriate software. I tried to build davl, but did not succeed in that. So I ended up writing my own tool. You can find it here: https://github.com/i-rinat/fragview

Use Ctrl + mouse scroll to change map scale.
Method 2
There’s dav, the “Disk Allocation Viewer” (supports ext2 and ext3; websites dates back to 2005, could be a little bit-rotted…)

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0