On 4/3/19 6:45 PM, home user via users wrote:
Mike wrote
> I don't know of any defragmentation tool. Are you maybe thinking of
> "fsck"? It's a program to check the health of the filesystem and
> recover any lost bits, etc.
No. It was definitely a tool that included fragmentation checking and
defragmentation functionality.
There was a program called "e2defrag", but it was for ext2 only. e2fsck
will give you a fragmentation percent at the end. Just don't forget the
"-n" unless the partition is not mounted!
# e2fsck -nf /dev/sda2
[skip lots of invalid output]
root: 764635/5242880 files (0.2% non-contiguous), 18993872/20971520 blocks