Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
Is there a command I can use to tell me if any volumes/drives/whatever are marked as dirty and will automatically run an e2fsck when I reboot the server?
Well a volume should only be marked as such if it wasn't properly unmounted at shutdown, and if it is dirty, then the system would have already checked it at boot.
So you wouldn't have dirty filesystems on a running system unless you had previously mounted a filesystem that wasn't in fstab and the system had a hard crash.
OK. I have a RAID 5 (setup in the BIOS) array which had one of the drives fail over to the hot spares because one of the other drives failed and threw a bunch of errors in the messages log. so i thought it might have marked it as dirty because of that. I know how to check if a volume is marked as dirty on a Windows server, thought there might be an equivolent command in linux, since i've had server automatically do a check upon reboot before, which i thought was because of hard drive problems. maybe not.
If you'd like to check manually, try `tune2fs -l`. It spits out a lot of useful info about your filesystem, including whether it's clean or dirty. As MS3FGX said, though, Linux systems check this at every boot, so if you reboot reasonably often, this isn't something you need to worry about often.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.