Defragment Ubuntu, Fedora, ext3, ext4
Defragmentation is not necessary on Ubuntu, Fedora, or other Linux implementations when you use the ext3 file system. This is because it is designed to reduce fragmentation, it tries to allocate a free block nearest to others blocks for the same file.
Wikipedia says there are user space tools for defragmenting ext3, however, “A true defragmentation tool does not exist for ext3“.”
There are userspace defragmentation tools like Shake and defrag. Shake works by allocating space for the whole file bolt upright and hoping that it will make the newly allocated file less fragmented. It also tries to write files used at the same time next to each other. Defrag works by copying each file over itself. However they only work if the filesystem is reasonably empty. A true defragmentation tool does not exist for ext3.
How to find out if ext3 file system is fragmented?
- Overview: Fragmentation and Unix file systems
- Measuring fragmentation on ext3 in Linux
- Determining file fragmentation on ext3 file systems
- Measuring ext3 fragmentation – Tools and Techniques
ext4 : The next generation of the ext3 filesystem
- ext4 supports online defragmentation
- How to get ext4 for Ubuntu and Fedora
- Tools: ext4 defragemntation with e4defrag
Reiserfs
Wikipedia says
There are no programs to specifically defragment a ReiserFS file system, although tools have been written to automatically copy the contents of fragmented files hoping that more contiguous blocks of free space can be found. However, Reiser4 will have a repacker that optimizes file fragmentation
I was going to mention ext4. Most people have ext3, especially if they did the default install of Ubuntu. You can mount an ext3 as ext4, defrag, and then go back to business as usual with a nice clean filesystem.
Shiny.
Diwant Vaidya
December 17, 2008 at 4:59 am
[...] Defragment Ubuntu, Fedora, ext3, ext4 « Share Virtual Machines [...]
how to run xp on Ubuntu 8.04 - the Hardy Heron ? | ubuntuforge
January 3, 2009 at 2:22 pm
[...] Defragment Ubuntu, Fedora, ext3, ext4 [...]
Top 10 Posts and Searches for Q4 2008 « Share Virtual Machines
January 8, 2009 at 10:08 am
Interesting discussion on support or lack there of in ext3, and ext4 filesystems.
http://thunk.org/tytso/blog/2008/08/08/fast-ext4-fsck-times/
RS
January 15, 2009 at 6:09 am
[...] Defragment Ubuntu, Fedora, ext3, ext4 (2247) [...]
Top 10 Posts for Q1 2009 « Share Virtual Machines
March 31, 2009 at 2:45 pm