How to Defrag a Linux Drive
Defragmentation is the process of rearranging files on a hard drive so they are in contiguous order. This means that every file on the hard drive is set up in a line, one after another. Defragmentation improves file access (also known as "seek") times by minimizing the amount of distance the drive head has to travel when reading a file. Defragmenting a Linux hard disk can be done quickly using the built-in "e2fsck" command.
Instructions
-
-
1
Log into your Linux system using the root name and password.
-
2
Open the Terminal window. This differs between implementations of Linux, but the Terminal window is typically located in the "Utilities," "Applications," or "Administration" menu of the operating system.
-
-
3
Type "e2fssk -a" without quotes. All loaded file systems will be checked for disk errors and performance degradation, and each will be automatically defragmented.
-
1