How to Repair and Defragment Linux System Partitions and Directories

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Marin Todorov

I am a bachelor in computer science and a Linux Foundation Certified System Administrator. Currently working as a Senior Technical support in the hosting industry. In my free time I like testing new software and inline skating.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

7 Responses

  1. inukaze says:

    Conclusion : you are assuming all users on the internet reading this, are using “ext4” filesystem, ignoring for complete, exist another like : ext2, ext3, reiserfs, reiser4, jfs, xfs, zfs, btrfs, etc. and for each filesystem the def rag its different.

    And in the title should be something like “How to Repair and Defragment Linux ext4 Partitions

  2. Flo says:

    Erm you say you would check with e2fsck If it is necessary to defrag the partition but then don’t do that and instead just check/repair the filesystem and run a program that is called e4defrag.
    You do not say what it is doing.

  3. Thank you for noticing that Michael. We will update that shortly.

  4. Michael says:

    Two small points … nice typo in the unmount command, I think it supposed to be umount. Also, you forgot to mention that you need to re-mount the partition before running e4defrag

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.