No, essentially you only need to do it in extremely rare circumstances. As a rule, you're far better off leaving Linux filesystems to take care of themselves: if any action is needed, the system will post a warning.![]()
I've been running Knoppix off my hard disk for nearly a month now. I'm wondering if I need to run a defragmenter on my hard disk (used to do this every month on Windows). I've found a tool that defragments ext2 drives, but my drive is formatted using ReiserFS.
I've done some web searching and come up with nothing really useful. Could anyone help?
No, essentially you only need to do it in extremely rare circumstances. As a rule, you're far better off leaving Linux filesystems to take care of themselves: if any action is needed, the system will post a warning.![]()
But when you have a warning, what command to you have to use to defragment?
Is there any software that are available in the KDE evironment? Or are they all text based?
Ludo
After reading more about ReiserFS from http://www.namesys.com, I think it doesn't need to be defragmented. The following quote from the article
The way I understand it, because it uses balanced trees, file fragmentation should rarely occur. Fragmentation is where parts of a file are scattered over the harddisk. IIRC, an NTFS/FAT drive needs to be defragmented because it uses a table to store the locations of file fragments. Because of the way balanced trees work (look up a good book on programming algorithms on this), it reorders (i.e. reposition) file fragments each time a new file is added, preventing/minimizing fragmentation. That's why it mentions that people thought that balanced trees in filesystems would be slow.ReiserFS is based on fast balanced trees. Balanced trees are more robust in their performance, and are a more sophisticated algorithmic foundation for a filesystem. When we started our project, there was a consensus in the industry that balanced trees were too slow for filesystem usage patterns. We proved that if you just do them right they are better. We have fewer worst case performance scenarios than other filesystems and generally better overall performance. If you put 100,000 files in one directory, we think its fine; many other filesystems try to tell you that you are wrong to want to do it.
In short, you won't need to defragment. Cool.![]()
GOSH, I was not thinking such thing was possibleOriginally Posted by Viro
I still have lots of things to discover about computers! eheh
But that's good if we do not need to defragment!
Ludo

Dell 6P85J 4TB ST4000NM0063 7.2k 6Gb/s 3.5” SAS SED Hard Drive with Tray
$39.99
Western Digital HUS726T4TAL5204 4TB 7.2K SAS 12Gb/s 3.5" 512e HDD NetApp X375A
$64.00
DELL 2TB Enterprise HDD (7200RPM, 3.5", SATA III, 128MB Cache) HUS722T2TALA600
$49.95
Seagate ST12000NM0127 12TB 256MB 7200RPM 3.5" SATA 6.0Gb/s Enterprise Hard Drive
$318.99
Seagate ST500DM009 BarraCuda 500 GB 3.5" SATA III Desktop Hard Drive
$14.99
HGST HUA723030ALA640 3TB SATA 7200 RPM 3.5 in Enterprise HDD | 0F14044 (100%)
$45.00
Dell ST6000NM0034 1HT27Z-150 NWCCG 6TB SAS 3.5 7.2K ENTERPRISE SERVER DRIVE
$68.99
HGST HUS724040ALA640 HDD 4TB SATA 6Gb/s 7.5K 3.5" 0F19459 512 b/s
$78.00
(ST8000NM0045) SEAGATE ENTERPRISE 8TB 7200RPM 4Kn SATA 6Gb/s 3.5" HARD DRIVE
$199.99
Western Digital 2TB WD20EFRX-68EUZN0 3.5" SATA Red NAS Hard Disk Drive
$69.99