Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-04-2007, 11:54 PM   #1
LQ Newbie
Registered: Dec 2005
Location: Hyderabad
Posts: 17

Rep: Reputation: 0


for performance maintenance, i used to do defragmentation in windows. but how to do it in linux? I am using FC4 any one tell me how to do this.

Old 01-05-2007, 12:02 AM   #2
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,138

Rep: Reputation: 168Reputation: 168
I don't know of any file system in Linux that needs defragmenting. The fsck tool is designed to look for errors and check file system consistency, but I don't know of or use any defrag tools for Linux.
Old 01-05-2007, 12:25 AM   #3
LQ Guru
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
There are no defrag utilities in Linux. After a few years of use about 1% is fragmented. However, the only way of fixing this is backing up the data and format the partition. Then put the data back.

Games actually loads faster in Linux than in Windows because of the efficiency.
Old 01-05-2007, 12:26 AM   #4
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
Linux file systems are specifically designed to avoid the need to defrag.

A pretty good explanation
Old 01-05-2007, 08:40 AM   #5
LQ Guru
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,317

Rep: Reputation: Disabled
There is a black sheep. Reiser suffers from fragmentation quite badly. But why use Reiser (which has plenty of other disadvantages) if there are ext3, XFS and JFS. And ext4 is expected to be ready for production use soon.
Old 01-05-2007, 09:30 AM   #6
Robert Diggs
Registered: Dec 2006
Location: Florida
Distribution: The ones that come in magazines and books.
Posts: 136

Rep: Reputation: 15
It certainly doesn't help that the man who created the Reiser file system is being tried for murder. Since everyone else stated that you don't need to defragment, one thing you might want to do periodically is delete the files from your temp folder. It kind of works like your temp folder in Windows. The FS will create files and dump them there. I've heard of people losing up to a gig's worth of space in that one folder.


Old 01-05-2007, 05:26 PM   #7
Registered: May 2006
Location: Kalispell, Montana
Distribution: Kubuntu, Mepis
Posts: 36

Rep: Reputation: 15
No defrag another reason to use Linux

Somewhere once I read a great explanation of why Linux does not need a defrag. Since I can't find it, all I can say is that you don't need to defrag in Linux. That's just one more thing that makes Linux great.


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
defragmenting ttilt Linux - Software 11 12-28-2003 09:34 AM
Defragmenting in linux? wiggywag Mandriva 7 11-25-2003 01:22 AM
Defragmenting cucolin@ Linux - Software 2 11-25-2003 01:10 AM
Defragmenting files.. udayan Programming 2 07-19-2002 09:15 AM
defragmenting otaku9876 Linux - Software 4 09-24-2001 04:38 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:43 AM.

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