LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 01-16-2011, 09:49 PM   #1
Polymorph
LQ Newbie
 
Registered: Dec 2010
Location: NSW, Australia
Distribution: Xubuntu 12.40
Posts: 18

Rep: Reputation: 1
Disk Defragmentation


In Windows it was recommended that the hard disk(s) be defragmented regularly. I have not heard of anything about defragmenting on Linux. Does it apply in Linux? If so, how? If not, why not?

TIA

Alan
 
Old 01-16-2011, 10:32 PM   #2
zer0signal
Member
 
Registered: Oct 2010
Location: Cleveland
Distribution: Slackware, Fedora, RHEL (4,5), LFS 6.7, CentOS
Posts: 258

Rep: Reputation: 29
Here is a good article! =)
http://geekblog.oneandoneis2.org/ind..._defragmenting
 
Old 01-16-2011, 10:44 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
Defragmentation is generally not an issue on Linux.

Some defragmentation happens, but, by and large, Linux journaling file systems deal with it in a manner transparent to the user (that is a fancy way of saying "behind the scenes").

I read somewhere--several years ago and I don't have the link--that, with or without defragmentation utilities--the percentage defragmentation on Linux disks is pretty much steady.

Here's a link that might help:

http://www.ehow.com/how_4473590_defrag-linux.html

(Defragmentation is not really much of a performance issue on an NTFS file system either, at least as regards performance, because the NTFS MFT remembers the location of all the pieces of a file and loads them simultaneously. On FAT, the file allocation table remembers only the location of the the beginning of each file, then each successive piece of the file points to the next piece, so a heavily fragmented file system slows performance noticeably. But NTFS does not natively manage defragmentation as well as Linux journaling file systems. The preceding tidbit is courtesy of my Windows 2000 server class in 2001.)
 
1 members found this post helpful.
Old 01-17-2011, 05:02 AM   #4
Polymorph
LQ Newbie
 
Registered: Dec 2010
Location: NSW, Australia
Distribution: Xubuntu 12.40
Posts: 18

Original Poster
Rep: Reputation: 1
Thanks for your replies

Alan
 
Old 01-17-2011, 05:16 AM   #5
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Rep: Reputation: 30
haha, linux is better interms of file system
 
Old 01-17-2011, 05:48 AM   #6
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
I would say that you don't really need to defragment your HDD in Windows if you have a modern hardware because you probably won't notice any speed improvement. I noticed some speed improvements on Pentium 166 MMX system back in 90's (running Windows 98 SE). But not today.
 
Old 01-17-2011, 06:41 AM   #7
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Rep: Reputation: 30
Quote:
Originally Posted by Mr. Alex View Post
I would say that you don't really need to defragment your HDD in Windows if you have a modern hardware because you probably won't notice any speed improvement. I noticed some speed improvements on Pentium 166 MMX system back in 90's (running Windows 98 SE). But not today.
Not true, Windows Vista run faster after defrag
 
Old 01-17-2011, 07:29 AM   #8
DragonSlayer48DX
Registered User
 
Registered: Dec 2006
Posts: 1,454
Blog Entries: 1

Rep: Reputation: 75
Quote:
Originally Posted by TigerLinux View Post
Not true, Windows Vista run faster after defrag
I think what Mr.Alex was implying is that it's not nearly as noticeable on NTFS as it was with FAT32, and I have to agree. FrankBell's writeup (post#3) gives an excellent explanation on that very subject.

IMHO, FAT32 was a miserable POS, that's why it was only released with one OS (Win98) and replaced 2 years later (Win ME). The way files were (mis)handled created fragmentation simply by booting the system, and fragmentation caused serious performance issues as well as file system errors. That simply does not happen with NTFS.

Back to the subject of Linux fragmentation, after 2-1/2 years running Ubuntu 8.04, my HDD was only 2% fragmented. You won't do that with any version of Windows.

Cheers
 
Old 01-17-2011, 07:56 AM   #9
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
I normally don't run defrag on Windows machines with one exception: before installing a dual boot of Linux so that the windows files are all compacted towards the start of the partition that I need to shrink down.
 
  


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
Disk Defragmentation nirmalya2006 Linux - Newbie 2 04-29-2009 12:42 AM
disk defragmentation? okok Linux - Newbie 2 06-06-2006 03:38 AM
Disk Defragmentation simke Red Hat 1 07-28-2004 11:30 PM
disk defragmentation ekoome Red Hat 8 04-22-2004 07:22 AM
disk defragmentation like windowzzzzz ashley75 Linux - General 1 09-12-2003 03:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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