You are not logged in.

#1 2014-11-22 15:13:33

Gumper
Member
From: U.S.A.
Registered: 2009-10-26
Posts: 132

[Solved] Fsck Maximum mount count set to -1

I just noticed that fsck has not been running on my system and found the following:

dumpe2fs -h /dev/sda2 | grep -i 'mount count'
dumpe2fs 1.42.12 (29-Aug-2014)
Mount count:              110
Maximum mount count:      -1
 

and

dumpe2fs -h /dev/sda3 | grep -i 'mount count'
dumpe2fs 1.42.12 (29-Aug-2014)
Mount count:              110
Maximum mount count:      -1

My fstab is as follows:


/         	ext4      	rw,noatime,data=ordered,discard	0 1
/home     	ext4      	rw,noatime,data=ordered,discard	0 2

My understanding is that the "-1" for the maximum mount count means the file system doesn't get checked at all.

What would cause the maximum mount count to be set to -1?

One thing that I did do in the past was to remove the fsck hook from mkinitcpio and copy the appropriate systemd files per the wiki on quiet boot.

Last edited by Gumper (2014-11-23 15:01:28)


Ready yourselves, ready yourselves
Let us shine the light of Jesus in the darkest night
Ready yourselves, ready yourselves
May the powers of darkness tremble as our praises rise .... Casting Crowns-Until The Whole World Hears.

Offline

#2 2014-11-22 15:39:36

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: [Solved] Fsck Maximum mount count set to -1

I'm pretty sure that is something you specify when creating the filesystem. Maybe it's because you defined an interval instead? You can use tune2fs to adjust both settings.

Offline

#3 2014-11-23 02:39:46

Gumper
Member
From: U.S.A.
Registered: 2009-10-26
Posts: 132

Re: [Solved] Fsck Maximum mount count set to -1

After adjusting the max mount count with tune2fs, everything is good.

Thanks!


Ready yourselves, ready yourselves
Let us shine the light of Jesus in the darkest night
Ready yourselves, ready yourselves
May the powers of darkness tremble as our praises rise .... Casting Crowns-Until The Whole World Hears.

Offline

#4 2014-11-23 02:44:44

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] Fsck Maximum mount count set to -1

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2014-11-23 09:16:08

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,655
Website

Re: [Solved] Fsck Maximum mount count set to -1

Mine is also set to -1:

% sudo dumpe2fs -h /dev/sda3|grep -i 'mount count'
dumpe2fs 1.42.12 (29-Aug-2014)
Mount count:              3
Maximum mount count:      -1

The mount count is wrong; it has been mounted more than 3 times.

Is the  -1 is the value due to /etc/mke2fs.conf's setting of:

enable_periodic_fsck = 0

??


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#6 2014-11-23 15:10:18

Gumper
Member
From: U.S.A.
Registered: 2009-10-26
Posts: 132

Re: [Solved] Fsck Maximum mount count set to -1

I marked this post as solved, but I'm seeing this when I check my boot partition.

dumpe2fs -h /dev/sda1 | grep -i 'mount count'
dumpe2fs 1.42.12 (29-Aug-2014)
dumpe2fs: Bad magic number in super-block while trying to open /dev/sda1
NAME   FSTYPE   SIZE LABEL
sda             477G 
├─sda1 vfat     512M 
├─sda2 ext4      25G 
└─sda3 ext4   451.4G 

Do I need to be concerned with this, or is this normal for an EFI system boot partition?


Ready yourselves, ready yourselves
Let us shine the light of Jesus in the darkest night
Ready yourselves, ready yourselves
May the powers of darkness tremble as our praises rise .... Casting Crowns-Until The Whole World Hears.

Offline

#7 2014-11-23 17:24:42

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,073

Re: [Solved] Fsck Maximum mount count set to -1

dumpe2fs description :  dump ext2/ext3/ext4 filesystem information

your efi partition sda1 has vfat as filesystem, dumpe2fs doesn't handle fat systems (or zfs, btrfs, ntfs, reiser etc).


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB