LinuxQuestions.org
Review your favorite Linux distribution.
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 05-20-2006, 02:11 PM   #1
mac1234mac
Member
 
Registered: Sep 2005
Posts: 183

Rep: Reputation: 30
defragmentation in Linux: is it needed?


Hello

My question is this: is there a need to defragment hard drives in Linux?. If yes what progs do it?.

Cheers
 
Old 05-20-2006, 02:21 PM   #2
pdeman2
Member
 
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413

Rep: Reputation: 30
Linux file systems are designed to avoid fragmentation. I have heard that some filesystems do get a little bit of fragmentation after a while. I've never had to defragment, but you might want to check out the debugfs command for some filesystem tools.
 
Old 05-20-2006, 04:10 PM   #3
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
Umm ... debugfs won't let you defragment a file-system, and I wouldn't
recommend to a newbie (someone who obviously didn't know that Linux
FS' are "fragmentation-repellant") to play with it.


You're right that Linux commonly doesn't get fragmented file-systems;
it is indeed hard to force fragmentation (a safe way would be to fill
a partition up with many small files, delete several non-neighbouring
ones and write some big files)


Cheers,
Tink
 
Old 05-20-2006, 09:56 PM   #4
pdeman2
Member
 
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413

Rep: Reputation: 30
Quote:
Originally Posted by Tinkster
Umm ... debugfs won't let you defragment a file-system...
Sorry, I've only used debugfs once. I wasn't sure if that would work or not.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
why no defragmentation in linux daedalusonlinux Linux - General 5 12-02-2005 03:56 AM
defragmentation in linux linuxbh Linux - Newbie 2 03-24-2005 12:31 PM
Does Linux partitions need no defragmentation? kornerr Linux - General 7 01-09-2005 06:08 PM
defragmentation in linux ramu_ak Linux - General 6 01-27-2004 06:18 PM
Dowe need disk defragmentation fo linux ? futurist Linux - Software 7 04-08-2003 04:00 AM

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

All times are GMT -5. The time now is 08:00 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