This question already has an answer here:

Can Ubuntu have any disk-defragment tools, like Microsoft Windows.

Or any other tools equivalent for it?

I read: Defragmenting tools

marked as duplicate by psusi, Community Jun 22 '15 at 15:13

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • What disk formats do you want to defrag? (e.g. NTFS, ext2, etc).There already are a few similar question to this - e.g. this one. However, I think if you slightly resize a disk in GParted (reduce the size by a few megabytes), it defrags it anyway (I think there is a question and answer somewhere on how to defrag stuff anyway....). – Wilf Jun 22 '15 at 13:42
  • @Wilf ohh! that good. strange info. And today I know why my Ubuntu still work good and fast only 200 MB free space reaming. no slow no crash! good info.. – Madhav Nikam Jun 22 '15 at 13:48
  • If you want to free space you can baobab (disk usage analyzet) to find what is using it, and remove large unneeded stuff. Is the lack of free space why you want to defrag the disk? - trying to defrag with limited free space may cause problems. – Wilf Jun 22 '15 at 13:56
  • 1
    @Wilf just ask it for curiosity... I shock Linux is working very nice with very limited space also. Thanks for info. Defrag is good for only windows. I just say for it,... Linux Rock!!! – Madhav Nikam Jun 22 '15 at 14:01
  • Your welcome :) – Wilf Jun 22 '15 at 16:09