LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-16-2008, 08:11 PM   #1
lectraplayer
Member
 
Registered: Mar 2003
Location: a little west of Birmingham, AL, USA.
Distribution: Porteus 3.1
Posts: 934

Rep: Reputation: 32
Full defrag under Linux?


Is there a program that will fully defragment my hard disk under Linux? I know with today's journalized file systems (like efs3 and reiser), it keeps everything sorta defragmented by putting all of the file in one place, but can I occasionally rearrange all those files to where they are all in the same section of the disk? I've googled and freshmeated and found nothing.
 
Old 02-16-2008, 08:36 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by lectraplayer View Post
Is there a program that will fully defragment my hard disk under Linux? I know with today's journalized file systems (like efs3 and reiser), it keeps everything sorta defragmented by putting all of the file in one place, but can I occasionally rearrange all those files to where they are all in the same section of the disk? I've googled and freshmeated and found nothing.
Modern file systems don't try to put all of the files in one place. They try to space files out intelligently across the file system which is how they avoid fragmentation. Because fragmentation is not a problem there is no incentive to write defrag programs.

You can defrag any file system by copying the files to another partition, formating the file system, and copying the files back. If you do that the only file systems that will put the files all in one spot are the ones that have chronic fragmentation problems like FAT32.

----------------
Steve Stites
 
Old 02-16-2008, 08:43 PM   #3
lectraplayer
Member
 
Registered: Mar 2003
Location: a little west of Birmingham, AL, USA.
Distribution: Porteus 3.1
Posts: 934

Original Poster
Rep: Reputation: 32
It would be hard to do that with my system partition that also includes my home folder. I was hoping for something I could run occasionally to spruce up my file system in single user mode.
 
Old 02-16-2008, 09:03 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
As jailbait said: you don't need to. Unless you made a
conscious effort to write many little files first (and
almost fill the partition to the brim) and then started
deleting many of those and adding large files after that
(still assuming the file-system is nearly full) there's
NO NEED for de-fragmentation.



Cheers,
Tink
 
  


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
defrag in linux? logicalfuzz Linux - Software 5 08-23-2005 09:01 PM
Defrag in Linux? fedivh Linux - General 4 02-09-2004 04:02 PM
Linux Defrag Hero Doug Linux - General 9 01-23-2004 08:24 PM
Defrag in Linux? orange400 Linux - General 7 03-15-2003 02:32 AM
Defrag in Linux? glitch Linux - Newbie 2 09-02-2002 06:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:48 AM.

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