Quote:
Originally posted by logicalfuzz
we have a fsck in linux to check the filesystem. this can be considered similar to $candi$k in Micro$oft. but i was wondering do we have a defrag for linux? recently i was reducing the size of an LVM partition.... if no defrag is present.. is ext2/3 intelligent enough to relocate the fragments that were written during I/O operations? if no such thing is present then my action is dangerous for my data.... isn't it?
|
Linux generally doesn't need to be defragmented - most Linux filesystems prevent fragmentation from happening in the first place.
Also, I believe Linux checks how fragmented your hard drive is when you boot up every once in a while (even though the FS's prevent fragmentation - just in case) and it'll auto-defrag if fragmentation is over 1% or so. Although I've never seen it go beyond 0.2%.
Look
here if you wanna know more (or don't believe me

).