Defragment

From Linuxintro

To defragment your filesystem, use the tool shake:

bunzip2 shake-0.99.tar.bz2
tar xvf shake-0.99.tar
  • install dependencies, e.g. for SUSE Linux:
yast -i help2man
  • build it
cd shake*
cmake .
make -j4 && make install
  • find out the fragmentation of a file
tweedleburg:~/shake-0.99 # filefrag main.c
main.c: 1 extent found
  • run shake
tweedleburg:~/shake-0.99 # shake main.c
tweedleburg:~/shake-0.99 #