-
Defragmenting drive?
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?
-
Senior Member
registered user
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
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.
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.
In short, you won't need to defragment. Cool.
-

Originally Posted by
Viro
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.
In short, you won't need to defragment. Cool.

GOSH, I was not thinking such thing was possible 
I still have lots of things to discover about computers! eheh
But that's good if we do not need to defragment!
Ludo
Similar Threads
-
By blackheart in forum MS Windows & New to Linux
Replies: 4
Last Post: 04-19-2005, 08:00 PM
-
By jehan60188 in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 12-22-2004, 07:02 PM
-
By mjman in forum Hardware & Booting
Replies: 9
Last Post: 10-25-2004, 09:46 PM
-
By kidsatacrux in forum MS Windows & New to Linux
Replies: 19
Last Post: 08-03-2004, 07:41 AM
-
By ktheking in forum Customising & Remastering
Replies: 6
Last Post: 01-02-2004, 09:35 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack
$826.09

TF/SD Card Adapter Camera Reader Android Type-c For iPhone17 Pro Max Plusm lot
$573.98

Windows 11 Pro Install/Recovery/Repair USB Flash Drive
$35.00

1/ 10/ 100pcs USB 2.0 2GB, 4GB ,8GB ,16GB ,32GB ,64GB 128GB USB Flash Drives Lot
$202.50

Samsung 32GB DDR4-2666V-2Rx4-RB2-12 RAM M393A4K40CB2-CTD6Q
$169.00

USB 3.0 Micro SD SDHC TF Card Reader Memory Adapter for PC Laptop Camera lot
$3.75

Server Memory: Samsung 32GB 4DRx4 PC4-2133P ECC LRDIMM DDR4 M386A4G40DM0-CPB
$124.95

Sandisk 16GB 32GB 64GB 128GB Cruzer Blade Flash Drive Memory Stick USB Lot Pack
$88.90

Memory Card Reader Mini 26-IN-1 USB 2.0 High Speed For CF xD SD MS SDHC
$4.95

Microsoft Office 2021 Pro Plus USB for 1PC Windows 10 & 11
$62.55