Latest LQ Deal: Latest LQ Deals
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 03-10-2006, 06:28 AM   #1
Registered: Nov 2005
Posts: 112

Rep: Reputation: 15
How do I defragment a hard drive?

To defragment the hard drive, is there a program available with Linux by default, or do I need to download an application to handle such a task?

Any help would be appreciated
Old 03-10-2006, 06:30 AM   #2
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 76
You don't need to defragment your hard drive in Linux.
Old 03-10-2006, 06:32 AM   #3
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,138

Rep: Reputation: 168Reputation: 168
You don't have to do this - the first pages of googling on "linux defragment hard disk" returns mostly hits about defragmenting windows drives in preparation for installing linux.

Are you having a problem with your hard disk?
Old 03-10-2006, 06:56 AM   #4
Registered: Nov 2005
Posts: 112

Original Poster
Rep: Reputation: 15
Thanks for the help

My problem is I need a screenshot to show I'm able to defragment a hard drive for a college assignment, though security policys stop me from doing it at college and not having windows installed means I can't do it otherwise.

For some reason it doesn't matter which operating system I use. My sister has just got a mac, do you think you would need to defragment a hardrive on the mac?

Last edited by Gogul; 03-10-2006 at 06:59 AM.
Old 03-10-2006, 07:10 AM   #5
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Just a thought, but, would it satisfy the requirements of the course if the screenshot only shows the windows defrag application screen setup to defrag (even though you can't complete the operatio n on the school lab)?

That would at least indicate that you know which application to use and how to set it up to defrag.
Old 03-10-2006, 07:17 AM   #6
Senior Member
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
If you had searched you'd have found many threads on the subjects covering the fact that drive defragmentation is not necessary in Linux. Linux filesystems can become defragmented, but typically you would only run into this if you edit many large files and are running low on space (doing things such as nonlinear video editing) and even in those extreme cases a *nix filesystem will outperform a Windows filesystem (be it FAT or NTFS).

However, there is a defrag program for ext2 filesystems (google for it!) but a way to ensure the filesystem is defragged is to back everything up to another drive (or partition) and then copy everything back.

Or, you could go to your school lab and take a screenshot of defrag there.

Worst case? You can write a quick paper explaining why *nix filesystems are so much more efficient and better-engineered, and educate your professor and classmates on some of the benefits of *nix over Windows.

Last edited by KimVette; 03-10-2006 at 07:20 AM.
Old 03-10-2006, 07:24 AM   #7
Registered: Nov 2005
Posts: 112

Original Poster
Rep: Reputation: 15
Thanks for that.

I could probably get away with getting a screenshot off google, so there should not be a problem with that (I hope).

In my defence KimVette I did search for similar threads though I came up with HDD problems, so I didn't really notice any on defragmentation. Well thanks for the help anyway..



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
external enclosure for an internal hard drive vs external USB hard drive powah Linux - Hardware 1 03-10-2006 09:03 AM
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
2 hard drive in system mirror 1st hard drive sburns76247 Linux - General 2 12-21-2004 01:47 AM
Grub to access new hard drive and old multi os hard drive ? gedi1 Linux - Hardware 0 06-03-2004 12:01 PM
STUCK--Trying to copy old Hard Drive to new Hard Drive. Please Help tsw Linux - Newbie 8 05-26-2004 02:47 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:31 PM.

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
Open Source Consulting | Domain Registration