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 04-07-2003, 09:19 PM   #1
futurist
Member
 
Registered: Mar 2002
Location: malaysia
Distribution: Mandriva 2006 RC1
Posts: 486

Rep: Reputation: 30
Red face Dowe need disk defragmentation fo linux ?


you need it for FAT16 or FAT32 in windows.

how about linux?
 
Old 04-07-2003, 09:40 PM   #2
miknight
Member
 
Registered: Oct 2002
Location: Sydney, Australia
Distribution: Gentoo, Ubuntu, Debian
Posts: 184

Rep: Reputation: 30
Lightbulb

I'm not very sure on this topic but from what I've heard, you don't need to defrag linux filesystems.

I think it's related to the fact that generally files can be overwritten while they're still in use, and that the ext3, reiserFS filesystems are pretty well done.

Again I really have no idea, that's just a guess - I would like some correcting on this
 
Old 04-07-2003, 09:42 PM   #3
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
You don't need it. EXT2 was designed to be smarter than FATs, so it doesn't fragment anywhere near as bad. It's the same reason there isn't a defrag shipped with Windows NT/2000/XP. Not sure about the last, but since it's still NTFS, I doubt it has a defragger.

Besides not needing it, some sites say you can mess up your filesystem trying to run a defragger.
 
Old 04-07-2003, 09:45 PM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
It does frag. However, it's so slight even after many many many files moving around, adding and removing, it's still so slight that it's not worth it. You could, and there are some tools (suggestions rather) out there to do it, however really, it's not worth it. After 10 years you might need to, but I think at that point you might consider an upgrade of some sort

Cool
 
Old 04-07-2003, 09:50 PM   #5
miknight
Member
 
Registered: Oct 2002
Location: Sydney, Australia
Distribution: Gentoo, Ubuntu, Debian
Posts: 184

Rep: Reputation: 30
Yes I remember reading somewhere that one of the methods was to simply copy your entire / somewhere, do a rm -Rf / and then copy them back

If it was really that worthwhile, surely some passionate open source programmers would have written many programs to do it.
 
Old 04-07-2003, 10:05 PM   #6
BruceCadieux
Member
 
Registered: Apr 2002
Location: Wales MA.
Distribution: openSuSE 11.1
Posts: 409

Rep: Reputation: 32
Quote:
Originally posted by ranger_nemo
You don't need it. EXT2 was designed to be smarter than FATs, so it doesn't fragment anywhere near as bad. It's the same reason there isn't a defrag shipped with Windows NT/2000/XP. Not sure about the last, but since it's still NTFS, I doubt it has a defragger.

Besides not needing it, some sites say you can mess up your filesystem trying to run a defragger.
Ummmm, NT,2000,and XP all have built in defrag utilities.
 
Old 04-07-2003, 10:57 PM   #7
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
Quote:
If it was really that worthwhile, surely some passionate open source programmers would have written many programs to do it.
freshmeat -> they're there.
; )

Quote:
Yes I remember reading somewhere that one of the methods was to simply copy your entire / somewhere, do a rm -Rf / and then copy them back
yes, this is actually used as a method (believe it or not). This is usually applied only to heavily used corporate disks (eg. constantly updated databses, etc.) With such things as heavily used databases, defrag happens more than usual, so one does indeed have to rewrite the data to the disk (whcih puts everything order)

For all you curious people, fsck will tell you non-contingency of a partition
 
Old 04-08-2003, 04:00 AM   #8
miknight
Member
 
Registered: Oct 2002
Location: Sydney, Australia
Distribution: Gentoo, Ubuntu, Debian
Posts: 184

Rep: Reputation: 30
Golly you're right:

http://freshmeat.net/projects/defrag/


Hehe, that should fix my 0.7% non-contiguous partition!
 
  


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
defragmentation in linux linuxbh Linux - Newbie 2 03-24-2005 12:31 PM
Disk Defragmentation simke Red Hat 1 07-28-2004 11:30 PM
disk defragmentation ekoome Red Hat 8 04-22-2004 07:22 AM
defragmentation in linux ramu_ak Linux - General 6 01-27-2004 06:18 PM
disk defragmentation like windowzzzzz ashley75 Linux - General 1 09-12-2003 03:27 PM

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

All times are GMT -5. The time now is 10:33 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration