Page 1 of 1
[SOLVED] How do I disable automatic fsck check?
Posted: Mon Apr 30, 2007 6:55 am
by impulse()
I'm currently in the process of setting up a Linux server and creating a login app for a company. The server is still at my house and we had a power cut the other day and I noticed the server was stuck on a prompt for a root password so it could do an fsck check on the HDD. This isn't going to be a good thing because the server will be 100 miles away from me and not in the company of any IT people. I was hoping I could disable automatic fsck checks in the event of the server not being powered down properly.
Would anybody here know how to do this?
Regards,
Posted: Mon Apr 30, 2007 7:11 am
by volka
Use a journaling filesystem that ensures the consistency of the filesystem without the need of single user mode/fsck.
feedback would be nice.
Posted: Mon Apr 30, 2007 10:48 am
by impulse()
I started reading Wiki about journaling filesystems but I'm not sure this would be the easiest and quickest way to achieve what I want. I've read that altering /etc/fstab and modifying the last digit on the end of the line from '1' to '0' disable force FSCK checking.
Posted: Mon Apr 30, 2007 10:57 am
by impulse()
I can confirm changing last digit on the end of the root filesystem in /etc/fstab to '0' disables forced FSCK check of drives.
http://lists.debian.org/debian-laptop/2 ... 00338.html
Posted: Mon Apr 30, 2007 11:38 am
by AKA Panama Jack
Let's just put it this way...
It's not a good thing to disable the File System Check. If a partition has problems and they aren't fixed you could end up losing critical data from a database, like clients, orders or even the entire site over time. Leaving it off is like playing Russian Roulette.
Posted: Mon Apr 30, 2007 11:40 am
by impulse()
I understand but it's a risk I'll have to take.
EDIT:
If I notice the uptime of the system has reset then I'll run an FSCK check from an SSH connection.
Posted: Mon Apr 30, 2007 2:04 pm
by volka
Just out of curiosity: What filesystem do you use? (and why?

)
I'm asking because I though common linux distributions use journaling fs by default. And I haven't seen the single user mode fsck ever since.
Posted: Mon Apr 30, 2007 4:16 pm
by impulse()
I'm using EXT3.
I think I was mistaken about journaling filesystems. I read a few sentences from the Wiki and assumed it would mean I would have to change file systems.