Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.


  Search this Thread
Old 09-17-2003, 03:44 AM   #1
Registered: Sep 2003
Location: Denmark
Distribution: Slackware 9.1
Posts: 36

Rep: Reputation: 15
Defragmenting in linux?

Is there any way to defragment a hardisk in linux, is it necesarry, and if not, why not? Just curios!
Old 09-17-2003, 03:57 AM   #2
Registered: Nov 2000
Location: A Mid-Atlantic state
Distribution: SuSE 8.1,Knoppix 3.2,Mandrake 9.1
Posts: 388

Rep: Reputation: 30
No need to defrag in Linux.
Old 09-17-2003, 04:12 AM   #3
Registered: Sep 2003
Location: Utah, USA
Distribution: Mandrake 9.1
Posts: 66

Rep: Reputation: 15
There is a way, I don't know what it is though. But unless your installation is several years old you shouldn't need it at all.
Old 09-17-2003, 05:04 AM   #4
Senior Member
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
The partitions get fragmented when they fill up.How bad depends on the file system.There is a defrag programm for ext2/3 but it comes with a bunch of warnings.
Old 09-20-2003, 06:58 PM   #5
Registered: Aug 2003
Location: Tucson, AZ
Distribution: Red Hat 8
Posts: 62

Rep: Reputation: 15
I've heard that ext3 file systems don't get nearly as "jacked up" as FAT32 or NTFS. Plus, doesn't the Linux swap file have it's own partition? Windows just throws swap files where ever there is room. If I'm not mistaken swaping (or virtual memory) fragments the drive more than anything.
Old 09-22-2003, 10:08 PM   #6
Registered: Jun 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
linux doesn't need a defrag, and it automatically start at booting.
If i am not maybe it call fsck or something like that.
Just be aware Linus doesnot like Bill gates, need to be defrag anytime
Old 11-24-2003, 11:52 PM   #7
Registered: Nov 2003
Location: USA
Distribution: Ubuntu, CentOS, RedHat
Posts: 416

Rep: Reputation: 31
I'm not an expert in Linux, so my question is: Does Linux perform compaction as well? Does it happen automatically or you have to do it manually?
Old 11-25-2003, 12:22 AM   #8
LQ Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Advanced filesystem implementor's guide (requires registration)


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
Does NTFS ever need defragmenting? servnov General 19 10-13-2004 11:27 AM
defragmenting ttilt Linux - Software 11 12-28-2003 08:34 AM
Defragmenting cucolin@ Linux - Software 2 11-25-2003 12:10 AM
Defragmenting files.. udayan Programming 2 07-19-2002 08:15 AM
defragmenting otaku9876 Linux - Software 4 09-24-2001 03:38 PM > Forums > Linux Forums > Linux - Distributions > Mandriva

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