shareVM- Share insights about using VM's

Simplify the use of virtualization in everyday life

Defragment Ubuntu, Fedora, ext3, ext4

with 5 comments

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?

ext4 : The next generation of the ext3 filesystem

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

Written by paule1s

December 16, 2008 at 4:30 pm

5 Responses

Subscribe to comments with RSS.

  1. 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

  2. [...] Defragment Ubuntu, Fedora, ext3, ext4 « Share Virtual Machines [...]

  3. [...] Defragment Ubuntu, Fedora, ext3, ext4 [...]

  4. 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

  5. [...] Defragment Ubuntu, Fedora, ext3, ext4 (2247) [...]


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: