You don't need to defrag Linux filing systems. Most distros will check the filing system for you. Try the following:
su -c "tune2fs -l /dev/sda2"
This will give you useful info about the second partition, including things like
Mount count: 98
Maximum mount count: 100
Last checked: Mon Feb 7 16:10:53 2011
Check interval: 0 (<none>)
In other words, my system checks that partition every 100 boots, there are 2 to go before the next check, and the last was a month ago. For server that runs continuously, you'd set the check interval instead, like
su -c "tune2fs -i 1m /dev/sda2"
for a monthly check.
Last edited by DavidMcCann; 03-08-2011 at 10:58 AM.