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.
Linux (at least RedHat) doesn't seem to come with a disk defragmentation utility; As I understand fragmentation, it's not a phenomena specific to Windows filesystems--Does defragmentation software exist for Linux? Is it necessary? (For all I know, Linux handles fragmentation at the OS level)
I should probably run fsck every week in lieu of ScanDisk...but is that necessary?
This is a pretty common question Yes, there do exist defragging utilities for Linux, but for the most part, it's not necessary. Search these forums for 'defrag' to turn up a lot of previous questions on this topic.
fsck stands for FileSystem ChecK. Usually you don't need to use it unless something goes wrong with your filesystem (after a bad shutdown, for example). Read the man page for details.
What does that command do (FSCK?? I tried to run it and it told me there are no devices to check? Thanks.
And to add what wapcaplet mentioned... when running fsck, you have to specify the device to fsck, by just typing fsck you will recieve that error cause it doesn't know what to fsck.
Well always unmount a device before running fsck but it would go something like this:
fsck /dev/hda3
man fsck for more flags and options to run during fsck though.
And you can repartition without losing data. Search for a program called FIPS I believe is called. Not totally sure but try searching and you'll find one that might suit you.
Location: United States of America and damn proud of it!
Distribution: Windows 10 prior Red Hat User
Posts: 473
Rep:
Does someone know how to unmount the drive currently in use? Sorry, I've just been waiting patiently for a reply here. I know it's very easy to do, but I just don't know how to do it. Thank you.
Last edited by scottpioso; 04-10-2003 at 11:28 AM.
I'm using a ext3 filesystem. Can fsck be used on this as well as ext2 ?
Reading above, is it cruical to umount the drive in question before this? ie, chance of corruption due to other processes possibly having a go at blocks on the device at the same time?
I haven't tried it yet but is it possible to just check specify directories or do they have to be mount points? ie /usr/local ?
Location: United States of America and damn proud of it!
Distribution: Windows 10 prior Red Hat User
Posts: 473
Rep:
Okay, you bring up a valid point about the device needing to be unmounted prior to running that command. Can someone please tell me how to unmount a drive that I'm currently using? Thank you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.