defragger

Dev tools

disk defragmenter

SHOW HN2026

defragger

I missed the moving blocks, so I built a real Linux disk defragmenter

github.com

#linux defragmenter#disk defrag#ext4 fragmentation#ssd defrag

97points
69comments
#698of 4,366 in 2026
Top 16%of 2026 by points

How HN took it

MixedNo clear lean

2 positive, 6 neutral or asking, 2 mixed, 8 critical, out of 18 comments about the project. Thread score -0.23.

Idea: 1 for, 5 againstPerformance: 1 for, 3 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Nostalgic graphical view of moving blocks

    From 2 comments
    • I like the graphical interface and the movement of the blocks. Brings back memories of defragmenting hard drives once a month and seeing noticeable performance improvements…
      AnonHP on HN
    • This cool, but can we get an option to emulate HDD noises please? I really miss the whirrs, clicks and creaks. And the little LED that indicated disk activity... but that'd be a…
      d3Xt3r on HN
  • Useful benchmark results from the maker on fragmentation impact

    From 2 comments
    • I discovered that tested performance on copper-rs a high performance OS for robotics when I run it on ext4 and what is annoying in robotics is the max latency & jitter.…
      gbin on HN
    • Yes: I discovered that tested performance on copper-rs a high performance OS for robotics when I run it on ext4 and what is annoying in robotics is the max latency & jitter.…
      gbin on HN

Objections

  • Defragmenting SSDs is pointless and harms flash lifetime

    From 3 comments
    • This is the most useless thing I've seen on here lately. It's not necessary on hard drives, as the page cache did a decent job of improving disk access even in the 90s, let alone…
      bitwize on HN
    • Pointless and harmful to flash storage. SSD sector numbers are virtual anyway. Its like defragging emails in your inbox.
      rasz on HN
    • Except most SSD also don't store pages sequentially internally (hidden flash wear leveling is even in microsd cards now), and the dram/SLC buffer areas are finite especially on…
      Joel_Mckay on HN
  • Filesystem and SSD firmware remapping make logical defragmentation ineffective

    From 2 comments
    • Is it possible to determine which sectors are physically sequential given remapping for wear-leveling? Otherwise the claimed defragmentation here is not actually resulting in…
      __d on HN
    • You cannot directly inspect the degree of fragmentation, because it has less to do with being contiguous in the Logical Block Address (LBA) space and more to do with having been…
      wtallis on HN
  • Benchmarks on the maker's device are needed to support the claims

    From 2 comments
    • Would be really cool to see two things. First some kind of before and after benchmark, so you can actually see if defragging made a difference. Second is a recommendation for…
      dsemakin on HN
    • The page you linked to doesn't say that anywhere.
      _g0xr on HN

Requests

  • Emulated HDD noises and disk activity LED

    From 1 comment
    • This cool, but can we get an option to emulate HDD noises please? I really miss the whirrs, clicks and creaks. And the little LED that indicated disk activity... but that'd be a…
      d3Xt3r on HN
  • Before and after benchmark and a recommendation based on drive type

    From 1 comment
    • Would be really cool to see two things. First some kind of before and after benchmark, so you can actually see if defragging made a difference. Second is a recommendation for…
      dsemakin on HN

Questions

  • Why Linux needs defragmentation at all and whether it helps on SSDs

    From 1 comment
    • Neat! I have several questions here. First of all, why does Linux not need defragmentation? Second, is it actually true that it doesn't need it? The readme implies that this…
      andai on HN

Alternatives named

  • fragview, a Linux partition fragmentation visualiser

    From 1 comment
    • To visually inspect fragmentation of a partition on Linux, a tool exists since 15 years: https://github.com/i-rinat/fragview. Just in case.
      kvemkon on HN
  • e4rat, which reorders boot files sequentially

    From 1 comment
    • This made me think of https://e4rat.sourceforge.net/, which moves boot files into sequential runs, which was helpful on spinning disks where seeks were slow but sequential reads…
      jewel on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/49438865)