Linux file-system defragmenter & tool for calculate the fragmentation. Forked: https://github.com/ThomasCX/defragfs
Go to file
2021-03-22 13:10:20 +01:00
src Move perl scripts to src 2021-03-22 12:37:03 +01:00
LICENSE.txt LICENSE (GPL 3.0) 2021-03-22 12:33:04 +01:00
Makefile Makefile 2021-03-22 12:39:28 +01:00
README.md README.md 2021-03-22 13:10:20 +01:00

defragfs/fragmentation - Linux file-system defragmenter & tool for calculate the fragmentation

Authors:

* CanHao Xu <xucanhao@gmail.com>
* John Robson <john.robson@usp.br>

Tools:

Dependencies: perl, coreutils, e2fsprogs.

Installation:

  • Open the terminal and type the following comands:
  
    $ git clone https://github.com/q3aql/defragfs
    $ cd defragfs
    $ sudo make install

Note: You must install git previously.

Sintax (defragfs):

$ sudo defragfs <partition or directory> [option]

Options:

-a  Automatically defrag (configure: $max_fragrate and $max_avgfrags
  according to your preference).
  Use this in your crontab. e.g. sudo crontab -e (and add this line)
  0 0 1 */2 * defragfs / -a
  
-f  Force defrag if there is at least one fragmented file.

-h  Display this Help.

Sintax (fragmentation):

$ sudo fragmentation <directory>