26

Remember to regularly defragment your drives on linux. use this handy command.

dd if=/dev/zero of=/dev/sdX bs=1M

Terminology:
dd: Disk defragment
if: input file (the pattern to search for, and should always be /dev/zero)
of: output file (your disk, /dev/sda for instance)
bs: blocsize 1M is fine here

Comments
  • 2
    Yes, seems legit
  • 4
    In before someone actually runs this
  • 12
    This is like the kids in games telling people to alt+F4 for free V-Bucks
  • 8
    @guitargirl15 downloading StarCraft maps in the lobby we'd tell the slow player holding everything up to hold alt and type quickerx3

    Always got us into the game!
  • 4
    My PC has never run faster than it did after this
  • 3
    wipe -n 70 can help as well , the best trim in the world
  • 2
    @gcavalcante8808 for y'all still using ext4 please move over to btrfs

    mkfs.btrfs /dev/sda
  • 4
    If there are Unix beginners here: it's a joke, don't run the command 😊
  • 3
    I ran it and now my computer boots into something caller "Arch linux" everything is 100% better and all my data and packages run like a charm!

    Thank you, kind stranger! I never knew I should be defragmenting my SSD too, I'll start doing this regularly :)
  • 6
    It works, there will be no fragments on the disk any more
  • 7
    Is this how you install void Linux?
  • 3
    Thank you, now our production servers will run a lot faster
  • 2
    Why defragment if you got ZFS....
  • 2
    Instructions unclear: ended up deleting myself out of existence.
  • 1
    @Nordic16 this is his brother typing.
  • 1
    @useVim I called .clone() before deleting myself out of existence, so yeah I guess you're right

    BTW nice username, I already do xD
Add Comment