Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
is defragmentation required in the linux filesystem ext2/ext3
because i read it somewhere in the forum that defragmentation is not required in these filesystem
as it is required in windows for fat32 and ntfs
but recently i checked out this url which tell about defragmenting the linux fileysystem
AFAIK the swap partition has nothing to do with fragmentation. Normally one does not need to defragment a linux filesystem. When an ext2/ext3 filesystem is created 5% (by default) is reserved for root. From what I have read this helps keep fragmentation down and allow root to login in case the filesystem becomes full.
hi
yes,swap has nothing to do with defragmentation
we have swap in differemnt partiton whiule we have a swap(virtula memory) in windows too but there is not a different partiton,so then too winsows FS get defragmented
i
i think it is because of the nature of the FS that files get fragmented on a particular FS
and is not the nature of the exct3/ext2 FS to get fragmented
also is the above mentioned link usefulll or not????
Disk drives in windows get fragmented because
(1) the Virtual memory/Swapfile is not permanent by default
(2) The fat/fat32/NTFS filesystems do not implement any code to minimise fragmentation.
(3) When you save a file in windows, the OS starts to save it in the first available space on the disk, and when it gets full, it jumps to the next available space.
As far as I know, (which might not be that far, please correct me if i'm wrong...) the ext2/ext3 filesystem drivers for Linux contain code that checks to see if writing a file to disk will cause it to become fragmented. If it would be split into pieces then the code checks for another contiguous space on the disk which means that the filesystem will become more fragmented the fuller it gets, but not to the same extent as fat/fat32/NTFS. There isn't really much need of a defragmenter for an ext2/ext3 disk.
there really is no need to defragment on linux although, that's not to say that the linux filesystem doesn't fragment - it does, just not to the extent as windows filesystems do. those proggies seem to already be included in linux distros. they're dangerous to run on a fully mounted filesystem. if you're using an ext3 filesystem, just power down your computer using the power button and do a filesystem check on the reboot (which is prompted automatically, you just have press the 'Y' key). i've personally have never seen anymore than 2% file fragmentation on my linux box after extended use - windows (running winME) on the other hand fragments at about 6-8% (c: drive) for the same amount of use.
Seeing how your running FC2 you probably already have the latest version installed. The website does not mention defragmenting a linux partition from windows. The driver is for read / write to an ext2 partition.
BTW I wouldn't intentionally remove power from the computer just to run fsck.
Originally posted by michaelk
BTW I wouldn't intentionally remove power from the computer just to run fsck. [/B]
neither would i. but if you're really anal and using a journaled filesystem, it doesn't hurt anything at all to do a hot power down. the chances of you corrupting your filesystem are slim to none.
Originally posted by megaspaz neither would i. but if you're really anal and using a journaled filesystem, it doesn't hurt anything at all to do a hot power down. the chances of you corrupting your filesystem are slim to none.
on the journalling FS i think i have support for that in the kernel 2.6 and the FC2
and i have also compiled my kernel with that also
so no worries for me
i guess!!!!!!!!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.