27 comments

  • vunderba3 hours ago
    When I was younger, my friends and I joked about making a <i>&quot;Disk Fragmenter&quot;</i> which would enumerate through every file on the disk and split them into non-contiguous clusters to make sure that the actuator arm on your platter-drive gets a PROPER WORKOUT TO FEEL THE BURN.
    • andikleen23 hours ago
      Such tools really exist and they&#x27;re used for testing file systems, so that you have a more realistic &quot;aged&quot; layout on a freshly created test file systems.<p>We also have memory fragmenters to do the same for memory for the same reasons.
      • walrus0112 minutes ago
        This makes me wonder at the absurdity (yet plausible implementation??!?!) of a tool to test something like ZFS filesystem limits, as they are quite gargantuan in many possible measures.
      • alwa3 hours ago
        Would those tools be primarily proprietary, or do some live in the open-source world too? I’d be interested in the techniques they use to aim for realism there.<p>Admittedly I haven’t made <i>much</i> of a search, but various search engines and autocorrects seem <i>really</i> convinced that I mean “defragmenter” instead of “fragmenter,” despite myself…
        • andikleen22 hours ago
          It&#x27;s usually custom scripts, I&#x27;m not aware of a standard tool. You fill up the file system and then do lots of operations that cause fragmentation.<p>Actually here is a recent paper discussing this (although the basic concept is much older):<p><a href="https:&#x2F;&#x2F;arxiv.org&#x2F;abs&#x2F;2401.08858" rel="nofollow">https:&#x2F;&#x2F;arxiv.org&#x2F;abs&#x2F;2401.08858</a>
        • edoceo2 hours ago
          Arch Linux Wiki on stress testing: <a href="https:&#x2F;&#x2F;wiki.archlinux.org&#x2F;title&#x2F;Stress_testing" rel="nofollow">https:&#x2F;&#x2F;wiki.archlinux.org&#x2F;title&#x2F;Stress_testing</a>
    • leoooodias3 hours ago
      LOL
  • stoatstudios2 hours ago
    Perhaps it&#x27;s appropriate for me to link to the free game I made where you play a taxi driving through Disk Defragmenter and delivering stray blocks of data to their final locations: <a href="https:&#x2F;&#x2F;safetystoatstudios.itch.io&#x2F;ddr" rel="nofollow">https:&#x2F;&#x2F;safetystoatstudios.itch.io&#x2F;ddr</a>. It was pretty fun to watch Defragmenter as a kid, but it would have been better if it was interactive, kind of like the 3D maze screensaver.
    • suprjami1 hour ago
      AND you made it for Sega Genesis! That&#x27;s so good.
  • cosmic_cheese3 hours ago
    I recall there being some techno-mysticism surrounding defragging regarding how often and when it was necessary, what it did and didn’t help, etc. I also remember the claim “Macs don’t need defragging” but I don’t know if HFS(+) was actually any less prone to fragmentation than FAT32 was. Companies like Symantec were happy to sell defragging tools to Mac users regardless.
    • suprjami1 hour ago
      People used to say the same about Linux ext4, it didn&#x27;t need defragmenting.<p>afaics all that meant was file allocations make a little extra space at the end, so if the file expands it doesn&#x27;t need to allocate a new block.<p>If one keeps files around for a long time and constantly adds to them, then the files get fragmented on any filesystem.<p>The only way to avoid this is pre-allocate all files to their maximum possible size and never exceed that size.
  • singiamtel4 hours ago
    There&#x27;s something satisfying about defragging that has been lost to time. Like oiling a squeaky engine
    • walrus0111 minutes ago
      That and many desktop PCs making a kind of grinding noise from the floppy drive on start up, along with the bios &quot;BEEP&quot;, as the default boot order option was to seek booting from A: (and possibly B:) floppy drives before the hard drive.
    • 10100847 minutes ago
      I agree. It may sound elitist but back then you need to understand a few concepts to use a computer. From simple things like a filesystem (folders, file, different file types, things my 19 years old nephew don&#x27;t know), to how to install software, how to download software (!) and then things even a bit more technical: an operative system, how it works, booting, drivers, etc.<p>Now everything is just easier (which is better for most people!) but I miss the old days.
      • jlarocco14 minutes ago
        I&#x27;ve said the same thing about using Linux.<p>20 years ago if somebody told you they used Linux it really meant something - they weren&#x27;t running WSL, they weren&#x27;t running a VM in EC2, they probably didn&#x27;t power on and immediately have things working, and they probably learned a ton just getting to a login screen for the first time. Spinning up a VM just doesn&#x27;t give the same learning experience.
    • slig2 hours ago
      Degaussing too.
      • gaudystead39 minutes ago
        I was going to comment this same thing until I saw yours. I miss degaussing... Especially after holding a magnet to the CRT to get it to display fun colors it wasn&#x27;t meant to and crossing your fingers that the degauss would fix the damage you&#x27;d wrought.
      • koalalimpo2 hours ago
        Beuunnnnng
  • vessenes4 hours ago
    I love this. I wanted the disk noise, and I got it. I will say that’s a lot faster than my drives were in the late 1990s though.
    • haykuro3 hours ago
      The speed is determined by a simple 1000 &#x2F; &lt;iops&gt; per disk (there&#x27;s different disks if you click &quot;Settings&quot;).<p>If you inspect and go to sources and look for &quot;1e3 &#x2F;&quot; you&#x27;ll find the line responsible, you can set a breakpoint and change e.disk.iops to 1000 which will make the timeout per row 1s instead of 2-4s, so the whole thing goes faster.
  • Hobadee3 hours ago
    I love it. A couple notes: - This is about 10x a real defrag speed - WAAAY too fast - IIRC the &quot;Data that will not be moved&quot; was typically lumped at the beginning of the drive, not spread out all over.
    • vunderba3 hours ago
      I&#x27;m a stickler for accuracy too. The defragged blocks in the original Win9x program weren&#x27;t solid blue - they had a hatch pattern texture to them. I remember it way too vividly.<p><i>Source: Watching a disk defrag was every millenial kids equivalent of going to the laundromat and watching laundry tumble.</i><p><a href="https:&#x2F;&#x2F;youtu.be&#x2F;dc_SDyLYq3U?t=347" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;dc_SDyLYq3U?t=347</a>
    • bluejay23873 hours ago
      I am guessing the developer took into account the fact that the younger generations these days don&#x27;t have the patience for real time defragging.
    • someothherguyy3 hours ago
      author commenting on such things:<p><a href="https:&#x2F;&#x2F;morello.dev&#x2F;blog&#x2F;defrag98-rebuild" rel="nofollow">https:&#x2F;&#x2F;morello.dev&#x2F;blog&#x2F;defrag98-rebuild</a><p>what it looked like before<p><a href="https:&#x2F;&#x2F;morello.dev&#x2F;blog&#x2F;windows-98-defrag-simulator" rel="nofollow">https:&#x2F;&#x2F;morello.dev&#x2F;blog&#x2F;windows-98-defrag-simulator</a><p>a previous discussion:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=40962195">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=40962195</a><p>here is another version i found when googling these things that seems somewhat similar, but with a few more &quot;accurate&quot; features. also, has the source available in a single file.<p><a href="https:&#x2F;&#x2F;horatioconkerhead.github.io&#x2F;win98-defrag&#x2F;" rel="nofollow">https:&#x2F;&#x2F;horatioconkerhead.github.io&#x2F;win98-defrag&#x2F;</a><p>if you want the real deal, you can run windows 95 in the browser quick. it took running it a few times to get it to actually defrag:<p><a href="https:&#x2F;&#x2F;archive.org&#x2F;details&#x2F;win95_in_dosbox" rel="nofollow">https:&#x2F;&#x2F;archive.org&#x2F;details&#x2F;win95_in_dosbox</a>
    • msephton3 hours ago
      It could be spread out too
  • kstrauser50 minutes ago
    I love this. However, Amiga’s Reorg program had a vastly better display, with a larger, resizable window and individual pixels instead of large boxes. You could see much more of the disk at once and get a feel for what the entire operation was doing. Large holes would appear in the middle of a hunk of data, then large files would get moved into the hole, leaving new holes where their incontiguous blocks use to be. Defrag was nice. Reorg was captivating. I miss it.
  • pjot3 hours ago
    Will need to degauss after this
    • stavros3 hours ago
      What, you don&#x27;t need the data any more? Or are you conflating screen degaussing?
      • birdsongs3 hours ago
        We used to degauss the CRTs because it looked cool and there was nothing else to do. Very adjacent to watching the defrag window maximised.<p>I did it in computer lab and showed others and the teacher lost it, thought we were breaking things.
        • pjot1 hour ago
          It also made a really satisfying “boyoyoyinnng” sound
  • roger_4 hours ago
    My computer&#x27;s <i>definitely</i> gonna be faster after this.
    • NBJack3 hours ago
      I do laugh in that in all the times I ever did this for real (even back to my massive 170MB drive), it never felt much faster.
      • chasil2 hours ago
        At that point, you had to deal with questions of interleave.<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Interleaving_(disk_storage)" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Interleaving_(disk_storage)</a>
      • jasonfarnon3 hours ago
        You probably defragged frequently enough. You would definitely notice it if a file system got fragmented enough.
  • comradesmith1 hour ago
    I started the defrag on F and got about 1&#x2F;4 the way, but had to stop cause my brother wanted to use the family computer.<p>When I changed it between drives and back I lost my progress :&#x2F;
  • asmodeuslucifer1 hour ago
    I used to watch defrag (and defraggler). If you have OCD they are very satisfying to watch. The more fragmented they were to start with, the better.
  • toast04 hours ago
    Love the warning for using on a mobile device.
  • michaelmure2 hours ago
    In the same vein, but showing live the go allocator and GC operating on the heap of a running program: <a href="https:&#x2F;&#x2F;github.com&#x2F;MichaelMure&#x2F;gogc98" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;MichaelMure&#x2F;gogc98</a>
  • stuaxo3 hours ago
    It feels a little too defragmented to start.<p>Typically it would be getting some bits from other parts of the drive and there would be a few (that many) bits it wouldn&#x27;t move because they were the swap file and DOS boot system files.
  • pyaamb4 hours ago
    Need this but for AI models. Sleep mode where they self prune and optimize overnight for their daily purpose.
    • CharlesW3 hours ago
      <a href="https:&#x2F;&#x2F;platform.claude.com&#x2F;docs&#x2F;en&#x2F;managed-agents&#x2F;dreams" rel="nofollow">https:&#x2F;&#x2F;platform.claude.com&#x2F;docs&#x2F;en&#x2F;managed-agents&#x2F;dreams</a>
  • 3eb7988a16633 hours ago
    There is even a click noise when you idly tap the screen.<p>As great as it is, way too fast.
  • RetroTechie3 hours ago
    4 Drives, 5.5G total. Luxury!<p>Per-drive individual sounds, and BSoD included. Nice touches, love it!
  • MarvinYork4 hours ago
    The sound killed me... :D
  • chasil3 hours ago
    Defragmenting XFS is much less dramatic.
  • stavros3 hours ago
    I need to set up a Windows 95 computer with a hard drive and stream the defragging online, complete with live audio.
  • brcmthrowaway3 hours ago
    What were the major filesystem technology improvements that made this redundant?
    • predictsoft3 hours ago
      I think NTFS and SSD disks.
      • WalterGR3 hours ago
        Fragmentation is an issue with any file system. SSDs <i>dramatically</i> reduce the cost of fragmentation but do not eliminate it, as non-sequential access is still slower than sequential access.
    • megagpt13 hours ago
      FAT32 allocates the first free block. IIRC, file order must match disk order because reasons. Ext2 prioritized allocating the middle of free space to allow fragment-free growth on both sides and it became a standard filesystem feature after that.
  • wild_pointer4 hours ago
    Legend
  • pir8life4me4 hours ago
    Brilliant. Whirring disk noise is nice touch.<p>If AI generated this is what the AI revolution is all about.<p>Can we get a cross platform screensaver?
  • retired3 hours ago
    This scratched an itch for me.<p>I’m going to watch Johnny Castaway now.
  • josefrichter3 hours ago
    bill gates, I want my time back!
  • delduca3 hours ago
    My YouTube
  • olivierestsage4 hours ago
    Hot