Results 1 to 5 of 5

Thread: Defragmenting drive?

  1. #1
    Member registered user
    Join Date
    Mar 2003
    Posts
    95

    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?

  2. #2
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    929
    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.

  3. #3
    Member registered user
    Join Date
    Jul 2003
    Location
    France / Finland
    Posts
    61
    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

  4. #4
    Member registered user
    Join Date
    Mar 2003
    Posts
    95
    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.

  5. #5
    Member registered user
    Join Date
    Jul 2003
    Location
    France / Finland
    Posts
    61
    Quote 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

  1. Defragmenting a FAT32 drive through Knoppix
    By blackheart in forum MS Windows & New to Linux
    Replies: 4
    Last Post: 04-19-2005, 08:00 PM
  2. Questions about defragmenting/low level HD manipulation with
    By jehan60188 in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 12-22-2004, 07:02 PM
  3. Permanent home onto Sandisk USB flash drive ruined drive
    By mjman in forum Hardware & Booting
    Replies: 9
    Last Post: 10-25-2004, 09:46 PM
  4. Hard Drive Salvage from corrupted Windows XP NTFS drive
    By kidsatacrux in forum MS Windows & New to Linux
    Replies: 19
    Last Post: 08-03-2004, 07:41 AM
  5. Replace default cd home drive with persistant home drive ???
    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
  •  


INTEL XEON E5-2680V4 SR2N7 2.40GHZ CPU picture

INTEL XEON E5-2680V4 SR2N7 2.40GHZ CPU

$11.00



Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram  2x 550W PSU No HDD picture

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD

$275.00



Dell Precision Tower 7810 Xeon E5-2630 v3 @ 2.40GHz , 32GB Ram, NO HDD, NO OS picture

Dell Precision Tower 7810 Xeon E5-2630 v3 @ 2.40GHz , 32GB Ram, NO HDD, NO OS

$239.99



Dell Precision T7820 2x Xeon Silver 4114 2.20GHz 950W No RAM GPU HDD 4x SATA picture

Dell Precision T7820 2x Xeon Silver 4114 2.20GHz 950W No RAM GPU HDD 4x SATA

$350.48



Dell Precision T5820 Workstation 3.70GHz W-2135 No RAM/ GPU/ HDD/ OS picture

Dell Precision T5820 Workstation 3.70GHz W-2135 No RAM/ GPU/ HDD/ OS

$179.98



Intel Xeon E5-2699 V4 2.20GHz 55M 22-CORES LGA2011-3 Server Processor 145W SR2JS picture

Intel Xeon E5-2699 V4 2.20GHz 55M 22-CORES LGA2011-3 Server Processor 145W SR2JS

$84.49



Matched Pair _ Intel Xeon E5-2698 V4 2.2GHz 20-Core Processor CPU LGA2011 SR2JW picture

Matched Pair _ Intel Xeon E5-2698 V4 2.2GHz 20-Core Processor CPU LGA2011 SR2JW

$94.99



Intel Xeon E5-2699 v3 18 Core 2.3 GHz 45MB SR1XD LGA 2011-3 B Grade picture

Intel Xeon E5-2699 v3 18 Core 2.3 GHz 45MB SR1XD LGA 2011-3 B Grade

$15.95



Dell PowerEdge FX2s + 8x FC430 Blades 16x E5-2630v4 160 Cores Rails No PSU/RAM picture

Dell PowerEdge FX2s + 8x FC430 Blades 16x E5-2630v4 160 Cores Rails No PSU/RAM

$699.00



DELL Precision T3420 | Xeon 1240v6 | 525GB SSD |16GB RAM |Nvidia GPU |Win11 picture

DELL Precision T3420 | Xeon 1240v6 | 525GB SSD |16GB RAM |Nvidia GPU |Win11

$149.00