LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-31-2005, 11:48 AM   #16
cavalier
Member
 
Registered: Feb 2005
Location: Denver, CO
Distribution: Slack 12, tweaked just so (though I'm also a fan of Ubuntu)
Posts: 198
Blog Entries: 1

Rep: Reputation: 30

You will sometimes find software out there that claims to "defragment" Linux filesystems. What they tend to do, however, is to reorganize files on the disk so that commonly used files are located in quickly accessable locations.

What others have said is true. ext2,ext3 and reiserfs filesystems are designed to essentially defragment on the fly, given enough free space on the disk. If you find yourself with a relatively full disk (90% +), you can "defragment" by backing up the entire filesystem, and then restoring from the backup, but that's pretty time-intensive.

It's just another one of those free things that you get when you switch to Linux from Windows. No more defragging!
 
Old 09-29-2005, 03:57 PM   #17
usaf_sp
Member
 
Registered: Jul 2005
Location: Tennessee
Distribution: openSUSE
Posts: 419

Rep: Reputation: 30
The excessive fragmentation in NTFS/FAT/FAT32 volumes is a result of how MS places files on the system combined with the fact that the PageFile (system swap) is on the same volume as the system and most applications. A typical configuration of MS Windows (WinXP) is set to allow the Pagefile to grow and shrink as deemed necessary by the OS. Also MS just dumps its data into the largest available space. NTFS does some block buffering and some block filtering (defrag?), but it is not equivelent to an actual defrag.

An interesting observation of NTFS is that when copying files from one volume to the next, there is little fragmentation. When installing many diferent applications, the system fragments alot. I am not sure why this happens, but it is strange. This kinds of leads me to wonder if the volume management is affected by system load, ie. processes and memory availability. Who knows, MS just sucks. Too bad MS is closed source, otherwise we would have an answer.

Something I found out the other day about NTFS that really chaps my A** is the concept of Multiple Data Streams. This is the ability of either a user, administrator or code to associate a file with another, hide the data and execute code when the file is requested. The biggest problem: MS recognizes this as a security threat, but has not patched it. There is the possibilty of viruses attaching themselves to these Data Streams and executing. Unless you have the right software to check, these Data Streams go undetected. To fix it you have to use a FAT file system or better yet start using Linux. Makes you wonder don't it?

Last edited by usaf_sp; 09-29-2005 at 04:05 PM.
 
Old 05-14-2006, 12:44 AM   #18
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
See here for a link to fragmentation utilities for ext2:

http://www.linuxquestions.org/questi...ghlight=defrag
 
  


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? dna9 Linux - Software 3 11-18-2004 06:55 PM
defrag dreakon Linux - Newbie 1 11-13-2004 05:29 PM
Is it necessary to defrag? simsjr Linux - Newbie 7 04-27-2004 02:33 AM
How to defrag arsham Linux - General 2 04-01-2004 12:05 AM
Defrag dunmarie Linux - General 4 10-27-2003 02:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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