How to Defragment NTFS in Linux

The NTFS file system is a proprietary data storage format created by Microsoft for its Windows operating systems. If you use both Linux and Windows or store your files in NTFS partitions, you may wish to defragment the NTFS partition to ensure it performs optimally. Defragmenting helps by ensuring data is stored in contiguous blocks, meaning the hard drive does not have to skip around to access all the parts of a file. You can quickly defragment an NTFS partition from the Linux command line.

Instructions

    • 1

      Type "su" and press "Enter." Supply your root password when prompted. You must run disk management commands as the root user.

    • 2

      Type "fsck -t ntfs --kerneldefrag /dev/hdX" without quotes. Replace "hdX" with the drive number of your NTFS volume.

    • 3

      Wait patiently as your NTFS partition defragments.

Tips & Warnings

  • The "df" command will display a list of all your partitions, including the NTFS volume.

Related Searches:

References

Resources

Comments

You May Also Like

Related Ads

Featured