[SOLVED] dmesg indicates maximum mounts are exceeded

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
ineuw
Level 5
Level 5
Posts: 825
Joined: Sun Nov 13, 2016 12:27 am
Location: Montreal, Canada

[SOLVED] dmesg indicates maximum mounts are exceeded

Post by ineuw »

dmesg indicated that the number of disk mounts are exceeded and the partitions need to be checked. This used to be a reminder after an x number of boots. Can I reactivate this feature?

Is the disk check of the recovery menu sufficient to perform this check?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Desktop: Linux Mint Cinnamon 21.3 English Edge - Desktop: Linux Mint Cinnamon 21.3 French
Laptop: Linux Mint Cinnamon 21.3 English - as of 24-04-15
t42
Level 11
Level 11
Posts: 3746
Joined: Mon Jan 20, 2014 6:48 pm

Re: dmesg indicates maximum mounts are exceeded

Post by t42 »

tune2fs -l gives you the information, for eg.

Code: Select all

sudo tune2fs -l /dev/sdd2
tune2fs 1.45.5 (07-Jan-2020)
Filesystem volume name:   4T6-1
Last mounted on:          /media/USER/4T6-1
...
...
Mount count:              160
Maximum mount count:      -1
Last checked:             Sat Aug  1 00:17:03 2020
Check interval:           0 (<none>)
Lifetime writes:          80 GB
or sudo tune2fs -l /dev/sdd2 |grep "Maximum mount count"

the -c max-mount-counts option will adjust the number of mounts after which the filesystem will be checked by e2fsck. If max-mount-counts is 0 or -1, the number of times the filesystem is mounted will be disregarded by e2fsck and the kernel.

man tune2fs
man e2fsck


Also note the -i interval-between-checks[d|m|w] option.
-=t42=-
User avatar
ineuw
Level 5
Level 5
Posts: 825
Joined: Sun Nov 13, 2016 12:27 am
Location: Montreal, Canada

Re: dmesg indicates maximum mounts are exceeded

Post by ineuw »

t42 wrote: Tue May 18, 2021 7:34 am tune2fs -l gives you the information, for eg.

Code: Select all

sudo tune2fs -l /dev/sdd2
or [c]sudo tune2fs -l /dev/sdd2 |grep "Maximum mount count"[/c]

the [c]-c max-mount-counts[/c] option will adjust the number of mounts after which the filesystem will be checked by e2fsck. If max-mount-counts is 0 or -1, the number of times the filesystem is mounted will be disregarded by e2fsck and the kernel.

[c]man tune2fs
man e2fsck[/c]

Also note the [c]-i interval-between-checks[d|m|w][/c] option.
Amazing, thank you! The max-mount-counts is set to 0, and the actual count was 193. The drive is clean and I use fsck from the recovery menu regularly, but I will set up a plan because a linux data drive was mounted 500 times.
Desktop: Linux Mint Cinnamon 21.3 English Edge - Desktop: Linux Mint Cinnamon 21.3 French
Laptop: Linux Mint Cinnamon 21.3 English - as of 24-04-15
Locked

Return to “Beginner Questions”