[SOLVED] How do I disable automatic fsck check?

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
impulse()
Forum Regular
Posts: 748
Joined: Wed Aug 09, 2006 8:36 am
Location: Staffordshire, UK
Contact:

[SOLVED] How do I disable automatic fsck check?

Post 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,
Last edited by impulse() on Mon Apr 30, 2007 10:57 am, edited 1 time in total.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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.
impulse()
Forum Regular
Posts: 748
Joined: Wed Aug 09, 2006 8:36 am
Location: Staffordshire, UK
Contact:

Post 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.
impulse()
Forum Regular
Posts: 748
Joined: Wed Aug 09, 2006 8:36 am
Location: Staffordshire, UK
Contact:

Post 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
User avatar
AKA Panama Jack
Forum Regular
Posts: 878
Joined: Mon Nov 14, 2005 4:21 pm

Post 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.
impulse()
Forum Regular
Posts: 748
Joined: Wed Aug 09, 2006 8:36 am
Location: Staffordshire, UK
Contact:

Post 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.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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.
impulse()
Forum Regular
Posts: 748
Joined: Wed Aug 09, 2006 8:36 am
Location: Staffordshire, UK
Contact:

Post 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.
Post Reply