• ZoteTheMighty@lemmy.zip
    link
    fedilink
    arrow-up
    12
    arrow-down
    1
    ·
    14 hours ago

    Back in the day when hard drives were smaller, you’d easily find yourself using a major fraction of it. If you keep adding and deleting files of different sizes, using a drive fully gets complicated. You may cumulatively have the space for your new file, but you may not have enough space in a row, so it’ll fail to write the file. Defragging was a really slow operation that moved all the free space to one side, so you can easily add new files. It’s the digital equivalent of pushing all your hangers to one side in the closet.

    • mobyduck648@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      8 hours ago

      Back in the day when hard drives were smaller, you’d easily find yourself using a major fraction of it

      I find myself doing that now! My work machine in particular is very long-suffering on this front.

    • MrScottyTay@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      13
      ·
      12 hours ago

      It’s not that saving the file would fail, but it would take longer to read because the stylus would have to read parts of it from wildly different locations on the drive. Defragmentation reorders everything so that the memory blocks for each of these files are next to each other so the stylus doesn’t have to move as much.

      • TheBloodFarts@lemmy.ca
        link
        fedilink
        arrow-up
        1
        ·
        8 hours ago

        Why is it no longer an issue with modern moving parts HDDs? Was it some sort of firmware related limitation?

        • MrScottyTay@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          2
          ·
          7 hours ago

          I don’t think it’s less of a modern issue and more that current operating systems do that decrag process more automatically, I think. That’s just a guess though.