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.
yeah, you can run fsck on a mounted partition/file system, but you can lose data, ruin your parition...
acid responded with the correct and safe way to run fsck..
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,600
Rep:
I think that "ext2 does not get fragmented" is a common misconception. It *does* get fragmented. It just does not suffer the huge performance decrease that FAT file systems do, so most people do not bother. Someone (I think from SuSE) did write a defrag util from ext2, but in most cases you do not need it. I know ReiserFS plans to have a utility for this starting with v4.1 (which is quite a ways off).
Actually, most all UNIX type filesystems do a decent job of defragmenting on-the-fly so to speak. As opposed to windoze which pretty much writes randomly on the drive
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,600
Rep:
Good point, one that I forgot to mention. *NIX file systems do a much better job of writing files in contiguous blocks. The fragmentation comes in when the final size of a file is not known by the filesystem layer at write time making it impossible to allocate space in one contiguous block. Files such as logs and MySQL DB files are good examples of this.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.