LinuxQuestions.org
Review your favorite Linux distribution.
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 08-23-2005, 11:23 AM   #1
logicalfuzz
Member
 
Registered: Aug 2005
Distribution: Arch Linux
Posts: 291

Rep: Reputation: 48
defrag in linux?


we have a fsck in linux to check the filesystem. this can be considered similar to $candi$k in Micro$oft. but i was wondering do we have a defrag for linux? recently i was reducing the size of an LVM partition.... if no defrag is present.. is ext2/3 intelligent enough to relocate the fragments that were written during I/O operations? if no such thing is present then my action is dangerous for my data.... isn't it?
 
Old 08-23-2005, 11:41 AM   #2
NetRAVEN5000
Member
 
Registered: May 2005
Distribution: Ubuntu 9.04
Posts: 320

Rep: Reputation: 30
Re: defrag in linux?

Quote:
Originally posted by logicalfuzz
we have a fsck in linux to check the filesystem. this can be considered similar to $candi$k in Micro$oft. but i was wondering do we have a defrag for linux? recently i was reducing the size of an LVM partition.... if no defrag is present.. is ext2/3 intelligent enough to relocate the fragments that were written during I/O operations? if no such thing is present then my action is dangerous for my data.... isn't it?
Linux generally doesn't need to be defragmented - most Linux filesystems prevent fragmentation from happening in the first place.

Also, I believe Linux checks how fragmented your hard drive is when you boot up every once in a while (even though the FS's prevent fragmentation - just in case) and it'll auto-defrag if fragmentation is over 1% or so. Although I've never seen it go beyond 0.2%.

Look here if you wanna know more (or don't believe me ).
 
Old 08-23-2005, 02:46 PM   #3
apachedude
Member
 
Registered: Aug 2004
Location: California
Distribution: SuSE 10.0 (SUPER)
Posts: 356

Rep: Reputation: 31
Can you defrag a FAT32 filesystem from Linux?
 
Old 08-23-2005, 03:11 PM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
The usual Linux filesystems are resistant to excessive fragmentation.

For that matter, so is Windows-NT's NTFS...
 
Old 08-23-2005, 08:23 PM   #5
NetRAVEN5000
Member
 
Registered: May 2005
Distribution: Ubuntu 9.04
Posts: 320

Rep: Reputation: 30
Quote:
Originally posted by sundialsvcs
The usual Linux filesystems are resistant to excessive fragmentation.

For that matter, so is Windows-NT's NTFS...
Yes, but from my experience, the Linux FSs do a much better job of resisting excessive fragmentation than NTFS.

As for whether or not you can defrag FAT32 partitions in Linux. . . I don't know. I'm sure there's a tool to do it, but I've never heard of anyone doing this before.
 
Old 08-23-2005, 09:01 PM   #6
lectraplayer
Member
 
Registered: Mar 2003
Location: a little west of Birmingham, AL, USA.
Distribution: Porteus 3.1
Posts: 934

Rep: Reputation: 32
I have wanted to do the same. I'll check on a tool while I'm here at Freshmeat.
 
  


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 on Linux ashley75 Linux - General 27 02-05-2009 04:21 PM
Defrag in Linux? fedivh Linux - General 4 02-09-2004 04:02 PM
How Can i Defrag Linux??? FearPasion710 Linux - General 9 10-29-2003 04:45 PM
Does Linux have defrag... kjp_72 Linux - Software 7 04-19-2003 12:57 PM
Defrag in Linux? orange400 Linux - General 7 03-15-2003 02:32 AM

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

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