LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 03-24-2005, 10:46 AM   #1
linuxbh
LQ Newbie
 
Registered: Aug 2004
Distribution: FC1,redhat9.-0,mandrake9.0
Posts: 10

Rep: Reputation: 0
defragmentation in linux


hello friends

can yu please tell me how to do defragmentation in linux
 
Old 03-24-2005, 10:49 AM   #2
trevelluk
Member
 
Registered: Nov 2003
Location: Bristol, UK
Distribution: Debian Lenny, Gentoo (at work)
Posts: 388

Rep: Reputation: 32
For a native Linux filesystem (ext2, ext3, reiser etc.) you don't need to. These filesystems are implemented in a way that means they don't get fragmented.
 
Old 03-24-2005, 12:31 PM   #3
KimVette
Senior Member
 
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
They actually can get fragmented (I could post instructions on how to do it) but in general only when dealing with very large files which are frequently created and deleted. You'd encounter it when doing things like rendering large video files. Even in those cases, though, you'd typically render out to a separate partition, so even then your root partition is unlikely to get fragmented, unless you're doing [i]everything[i] on your /-mounted partition.

However: Under typical use, the mainstream Linux filesystems tend to not get fragmented and defragging typically is totally unnecessary. There are some defrag utilities which you can run on an unmounted partition, but since fragmentation is so infrequent on Linux you really don't need to worry about it. You might have a small handful of fragmented files and if you cleaned that small number up you'd never notice any improvement in performance because it's so negligible.
 
  


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??? janhouse00 Linux - Newbie 1 03-16-2005 10:16 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


All times are GMT -5. The time now is 07:57 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration