Difference between revisions of "Defragment"

From Linuxintro
imported>ThorstenStaerk
imported>ThorstenStaerk
 
Line 11: Line 11:
 
  cmake .
 
  cmake .
 
  make -j4 && make install
 
  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 #

Latest revision as of 12:52, 8 November 2009

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 #