LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-26-2005, 10:02 AM   #1
Dovid
LQ Newbie
 
Registered: Sep 2003
Posts: 24

Rep: Reputation: 0
Defragment


Hello All,
As you can tell from my name I am a newbie. I want to know the command to defrag in linux. Thanks.
Dovid
 
Old 04-26-2005, 10:05 AM   #2
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
Re: Defragment

Quote:
Originally posted by Dovid
Hello All,
As you can tell from my name I am a newbie. I want to know the command to defrag in linux. Thanks.
Dovid
You do not need to do defragment in linux. No one does.
 
Old 04-26-2005, 11:15 AM   #3
Padma
Member
 
Registered: Aug 2003
Location: Omaha, NE, USA
Distribution: PCLinuxOS 2007
Posts: 808

Rep: Reputation: 30
To put it more fully, the Linux Filesystem (ext2/ext3 at least) is designed more sensibly than the FAT filesystem used by Windows (and even better than ntfs, for that matter ). By its very nature, it doesn't have the fragmentation problems that Windows filesystems have. Since there is no fragmentation problem, there is no need for a defragger.
 
Old 04-26-2005, 12:12 PM   #4
Rªdical_£D
Member
 
Registered: Oct 2004
Location: New Jersey
Distribution: SuSE 10.0
Posts: 69

Rep: Reputation: 15
But can you defrag from Linux? Or does Linux write to FAT partitions more efficiently than Windows? You see, I have a storage drive formated in FAT32 and I've been using it to store all of my torrent downloads. But the drive is almost topped off and I want to save as much space that I can. So can I (or do I have to) defrag from Linux? Or do I have to reboot under Windows and run Disc Defrag?
 
Old 04-26-2005, 01:46 PM   #5
Harmaa Kettu
Member
 
Registered: Apr 2005
Location: Finland
Posts: 196

Rep: Reputation: 30
Here is a trick that does the job but requires a lot of extra disk space. This works also in Windows and is often faster than running defrag on a badly fragmented drive.

1. Move all files from the partition to somewhere else.
2. Reset the filesystem by umounting and then mounting it again. In Windows, you need to reboot the computer.
3. Move the files back. They will be arranged to the beginning of the partition without any fragmentation.
 
  


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
should i be concerned (defragment?)... marsques Slackware 6 01-13-2005 12:10 AM
defragment linux glock19 Linux - General 11 09-14-2004 06:22 PM
Looking for defragment software. sjia Linux - Software 8 02-22-2004 10:51 PM
Defragment Anmar Linux - Hardware 2 09-09-2003 11:30 PM
defragment nautilus_1987 Linux - Software 45 12-11-2002 07:29 PM

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

All times are GMT -5. The time now is 06:55 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
Open Source Consulting | Domain Registration