LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-29-2012, 08:32 AM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Rep: Reputation: 51
defragment EXT4?


Hi

Normally, linux file system don't need to be defragment, but what you think about this defrag tool?

https://apps.ubuntu.com/cat/applications/hdd-ranger/
 
Old 10-29-2012, 09:02 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
interesting discussion on reddit about it... http://www.reddit.com/r/Ubuntu/comme...ftware_center/

I'd certainly never go near it. At this basic level, you're never going to get a useful paid tool that you won't get for free, indeed this presumably IS a e4defrag gui and nothing else.
 
Old 10-29-2012, 09:05 AM   #3
shefla
Member
 
Registered: Oct 2012
Location: France
Distribution: Archlinux
Posts: 36

Rep: Reputation: 5
Hi,

I would not pay for tool which is maybe useless.

Extract from wikipedia:
Quote:
https://en.wikipedia.org/wiki/Defrag...le-system_type
Linux ext2, ext3, and ext4: Much like UFS, these filesystems employ allocation techniques designed to keep fragmentation under control at all times. As a result, defragmentation is not needed in the vast majority of cases. ext2 uses an offline defragmenter called e2defrag, which does not work with its successor ext3. However, other programs, or filesystem-independent ones, may be used to defragment an ext3 filesystem. ext4 is somewhat backward compatible with ext3, and thus has generally the same amount of support from defragmentation programs. In practice there are no stable and well-integrated defragmentation solutions for Linux, and thus no defragmentation is performed.
Anyway, I know a trick to unfragment a non system partition and which is working almost all the time:
- copy the whole content of the fragmented partition to another one (you need enough space)
- copy back data to the previously fragmented partition

Regards
 
Old 10-29-2012, 09:10 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally Posted by shefla View Post
Hi,

I would not pay for tool which is maybe useless.

Extract from wikipedia:


Anyway, I know a trick to unfragment a non system partition and which is working almost all the time:
- copy the whole content of the fragmented partition to another one (you need enough space)
- copy back data to the previously fragmented partition

Regards
Why use "tricks" when there are proper ways to achieve this largely pointless objective?
 
Old 10-29-2012, 09:32 AM   #5
shefla
Member
 
Registered: Oct 2012
Location: France
Distribution: Archlinux
Posts: 36

Rep: Reputation: 5
Hi,

Quote:
Originally Posted by acid_kewpie View Post
Why use "tricks" when there are proper ways to achieve this largely pointless objective?
From what I know this tool was still buggy (at least until the middle of this year).
After maybe I am wrong and it is not the case anymore.
In such case, it would be a good news for me.

Regards
 
Old 10-29-2012, 10:19 AM   #6
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
BTW Fragmentation can be check using e2fsprogs

Another defragmenting tool is e4defrag:

http://prefetch.net/blog/index.php/2...tion-near-you/
 
Old 10-29-2012, 10:27 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
yes, I already said that
 
Old 10-29-2012, 10:31 AM   #8
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by acid_kewpie View Post
yes, I already said that
Yep, sorry, I didn't read carefully before.
 
Old 10-29-2012, 11:43 AM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
The old way was to tar it off and back.
 
Old 10-29-2012, 12:53 PM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
the very few and far in between fragments ( they do happen but not often)
are solved by taring up the files and then extracting them


they are now continuous files

there is no need for anything
 
Old 10-29-2012, 03:01 PM   #11
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Quote:
Originally Posted by shefla View Post
Hi,

I would not pay for tool which is maybe useless.

Extract from wikipedia:


Anyway, I know a trick to unfragment a non system partition and which is working almost all the time:
- copy the whole content of the fragmented partition to another one (you need enough space)
- copy back data to the previously fragmented partition

Regards
This is similar to what I would do if I had defragmentation worth worrying about.

Edit;
I didn't look at the link in the OP before posting.

If you run Ubuntu this would be the tool for you. The average Ubuntu user will never understand that there is a difference between a Linux OS and a MS OS. They NEED to defrag to be comfortable.

Let them enjoy themselves.

Copying someplace and back would work. Resizing the partition by any amount (1mB) will achieve the same thing.

You should have no trouble with defragmentation if you make sure your partition is not over 80% full.

Last edited by widget; 10-29-2012 at 03:04 PM.
 
Old 10-29-2012, 05:32 PM   #12
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: No distribution. OpenBSD operating system
Posts: 1,711
Blog Entries: 8

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
Quote:
Originally Posted by widget View Post
The average Ubuntu user will never understand that there is a difference between a Linux OS and a MS OS. They NEED to defrag to be comfortable.

Let them enjoy themselves.
That is a dubious argument. Perhaps a better solution would be for Shuttleworth and his Canonical to focus more energy on educating their users, instead of trying to sell them things? At least, that is the way I see it.
 
Old 10-30-2012, 12:12 AM   #13
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Quote:
Originally Posted by Randicus Draco Albus View Post
That is a dubious argument. Perhaps a better solution would be for Shuttleworth and his Canonical to focus more energy on educating their users, instead of trying to sell them things? At least, that is the way I see it.
Don't hold your breath.
 
Old 10-30-2012, 01:45 AM   #14
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
The only time I have defraged my Linux installs is when I have done a re-install. I back up my /home, do the install, and then copy back what I need. Walla new install totally clean and defraged.

Quote:
Originally Posted by Randicus Draco Albus View Post
That is a dubious argument.
Not really when you consider what posts are made about Ubuntu in various forums.

Quote:
Originally Posted by Randicus Draco Albus View Post
Perhaps a better solution would be for Shuttleworth and his Canonical to focus more energy on educating their users, instead of trying to sell them things? At least, that is the way I see it.
Totally agree but, and this is just my opinion, Canonical seems to want Ubuntu users to be uneducated and Ubuntu users tend to like being that way. The ones who ask questions often move to other distros and are often told in places like Ubuntu forums "if you don't like it then use another distro."

Last edited by k3lt01; 10-30-2012 at 02:07 AM.
 
Old 10-30-2012, 03:33 AM   #15
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Can this sort of nonsense be kept off the Debian forum? The newbies or Ubuntu forum would be better for this.

Evo2.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it safe to format USB flash to ext4 or ext4? joham34 Linux - Newbie 2 01-08-2011 11:58 AM
Defragment Dovid Linux - Software 4 04-26-2005 01:46 PM
should i be concerned (defragment?)... marsques Slackware 6 01-13-2005 12:10 AM
Defragment Anmar Linux - Hardware 2 09-09-2003 11:30 PM
defragment nautilus_1987 Linux - Software 45 12-11-2002 07:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration