LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-20-2012, 04:53 AM   #1
sparkyhall
Member
 
Registered: Nov 2009
Location: Chatteris---UK
Distribution: Slackware 13.0 & 14.0
Posts: 42

Rep: Reputation: 8
Are ext4 file system checks disabled by default on 14.0?


I have installed Slackware 14.0 on three different systems and if I run tune2fs -l /dev/sdx "Maximum mount count" = -1 and "Check interval" = 0. According to man tune2fs this means that both mount count and time based file system checking is disabled, it also gives warnings about disabling these features.

It is easy to fix this using tune2fs but is this correct, a bug or something I have done during install?
 
Old 10-20-2012, 10:38 PM   #2
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
I suspect you or somebody else once upon a time made those changes, but I don't imitate Columbo very well.
 
Old 10-20-2012, 11:01 PM   #3
speck
Member
 
Registered: Nov 2001
Location: US
Distribution: Slackware 14.2
Posts: 375

Rep: Reputation: 115Reputation: 115
I noticed the same thing a couple days ago on the new ext3 partitions (/, /usr) I created during the 14.0 install.

Code:
tune2fs -l /dev/sdb1
.
.
Maximum mount count:      -1
Last checked:             Fri Sep 28 16:03:33 2012
Check interval:           0 (<none>)
.
.
I'll probably update the maximum mount count to 60, but I was surprised as well that it was disabled.
 
1 members found this post helpful.
Old 10-21-2012, 02:05 AM   #4
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,783

Rep: Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460
It's a change made upstream.

Quote:
From: Eric Sandeen <sandeen@redhat.com>
Date: Thu, 17 Feb 2011 15:55:15 -0600
Subject: [PATCH] e2fsprogs: turn off enforced fsck intervals by default

The forced fsck often comes at unexpected and inopportune moments,
and even enterprise customers are often caught by surprise when
this happens. Because a filesystem with an error condition will
be marked as requiring fsck anyway, I submit that the time-based
and mount-based checks are not particularly useful, and that
administrators can schedule fscks on their own time, or tune2fs
the enforced intervals if they so choose. This patch disables the
intervals by default, and I've added a new mkfs.conf option to
turn on the old behavior of random, unexpected, time-consuming
fscks at boot time.
...
He refers to the option "enable_periodic_fsck" in /etc/mke2fs.conf.
 
1 members found this post helpful.
Old 10-21-2012, 09:33 AM   #5
sparkyhall
Member
 
Registered: Nov 2009
Location: Chatteris---UK
Distribution: Slackware 13.0 & 14.0
Posts: 42

Original Poster
Rep: Reputation: 8
Ahhh...now I understand although the patch comments don't seem to match those in man tune2fs which suggests that relying on the kernel to detect file system errors may lead to data loss:
Quote:
You should strongly consider the consequences of disabling
mount-count-dependent checking entirely. Bad disk drives,
cables, memory, and kernel bugs could all corrupt a filesystem
without marking the filesystem dirty or in error. If you are
using journaling on your filesystem, your filesystem will never
be marked dirty, so it will not normally be checked. A filesys‐
tem error detected by the kernel will still force an fsck on the
next reboot, but it may already be too late to prevent data loss
at that point.
It seems strange to me that the default behavior wasn't left alone (periodic fsck checks enabled) as this seems much safer than just disabling this feature for everyone.

I think I'll re-enable in /etc/mk2fs.conf just to be safe.

A big thank you to all who replied
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OS-X and Linux ext4 file system deadbug Other *NIX 3 07-25-2009 06:11 AM
LXer: The Ext4 Linux file system LXer Syndicated Linux News 0 05-29-2009 05:51 PM
Ext4 File System - Out or Not?? QueenZ Linux - Newbie 12 02-12-2009 04:52 AM
By default is url file access disabled? got_nix Linux - Server 6 07-04-2007 10:46 AM
Fast Question: SWAP-file in Ubuntu disabled by default? Waerner Ubuntu 2 07-14-2005 09:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration