Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
The short (and I'm sure overly simplistic) answer is that Linux filesystems don't become fragmented the way they do in Windows, so defrag is not needed.
I thought there is a defrag command in Linux which does the same as the Microsoft.
There may be another way of checking file disarray in Linux.
You don't suffer from "file disarray" in Linux, at least not the the way you're thinking of it. There are no 'defrag' tools, because there's never a NEED to 'defrag' your disk.
I/O schedulers render defragers useless, mostly. Most file systems do not have an issue with fragmentation, not a noticeable one anyway (as long as you don't use reiser 3.x). You can always backup, format and restore if you are really interested.
There have been a number of attempts to create such tools in the past, but all the projects I knew of have been discontinued, no real interest in them besides academic interest. There are also plans for such a tool for ext4, and also for an on-line defragmenter, maybe also for btrfs. However this might very well be also a project that will die before it's born as the rest of them in the past.
In Windows the command defrag makes the hard drive somewhat effective-
How do I do the defrag in Linux?
Hi,
perhaps the most simular tool is fsck, but it do no defrag: it checks
filesystem concintency. Anyway it is automattically strated from time
to time: no need for you to start
bye
giammy
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
Thanks everybody.
Our friend giammy touched on the command 'fsck'. It is different; nothing to do with de-fragmentation. However, repo had given us an interesting link.
I use or rather people use ext3 file system. I don't know about 'reiser' file system. This must be something new.
Thanks everybody.
Our friend giammy touched on the command 'fsck'. It is different; nothing to do with de-fragmentation. However, repo had given us an interesting link.
I use or rather people use ext3 file system. I don't know about 'reiser' file system. This must be something new.
Reiser has its age, it's no longer a young critter. It has its own set of lovers and haters around it just like every other fs around. There are quite a lot of fs's that are compatible with linux to a given extent. Ext2/3 is considered the standard linux fs though. The wikipedia is full of articles about the many linux fs's. You can start researching around there if you feel curious, they are not hard to find.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.