linux下如何进行磁盘碎片整理

linux下如何进行磁盘碎片整理

好像看到过,不过忘了。linux下进行磁盘碎片整理的命令是什么呀?
还有,分区时忘了把/tmp分配为独立分区,服务器不能总是重装啊,不知高手有什么办法,我用的是redhat7.2.      
Linux好像不用碎片整理呀,我从来没有整理过。      
个人用当然可以不整理了,但做服务器就不同了。应该是需要整理的。      
你可以从ftp://metalab.unc.edu/pub/Linux/system/filesystems/ 下载defrag。
不过ext2fs 可以减少系统碎片产生。对于ext2系统,defrag 没有很大意义,不像 M$..
如果你感兴趣的话......
since Linux is a multi-user operating system, head position after a read is mostly irrelevant as other tasks and users will also be reading and writing that drive and the buffer cache will be flushing older data out also moving the drives' heads. This is why one does not notice as quickly any performance impact from 'fragmented' files. The normal head movement that is part of a multi-tasking multi-user system masks most performance impact and the intelligent cacheing and inode design improve performance by normally fetching the next block from disk to the cache before it is called for so that applications do not notice any slowdown.
--Art Kagel      
对于ext3,reiserfs这样的文件系统呢?      
excuse me that i can not type chinese Now.

and for your question, again. ext3 and reiserfs works great in defragmetion.
there is the point that you might need to use "defrag" if your disk are almost full say ( you maintain a big newserver )

I don't think it's really useful to defrag hd in most case.      
Thank you very much.