Maximal mount count warning

Maximal mount count warning

am 26.03.2004 16:19:45 von Tony Gogoi

Hello,

What can cause an "EXT2-fs warning: maximal mount count reached, running
e2fsck is recommended" ?

I mounted "mount /dev/fd0 /mnt/floppy" and,
unmounted "umount /mnt/floppy"
repeatedly as I was tranferring files from one computer to another.

If a floppy was normally unmounted each time after mounting it, why should
the "mount count" keep increasing ?

The problem where this occured is on "RedHat 7.1" and kernel 2.4.2

Thanks,
Tony
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Maximal mount count warning

am 26.03.2004 16:56:19 von Glynn Clements

Tony Gogoi wrote:

> What can cause an "EXT2-fs warning: maximal mount count reached, running
> e2fsck is recommended" ?

Exceeding the filesystem's maximum mount count.

> I mounted "mount /dev/fd0 /mnt/floppy" and,
> unmounted "umount /mnt/floppy"
> repeatedly as I was tranferring files from one computer to another.

Yep, that will do it.

> If a floppy was normally unmounted each time after mounting it, why should
> the "mount count" keep increasing ?

Because it is incremented whenever the filesystem is mounted, and it
*isn't* decremented when the filesystem is unmounted.

The purpose of the maximum mount count setting is to ensure that the
filesystem gets checked occasionally. There is also a maximum check
interval, which operates according to elapsed time rather than the
total number of mount operations.

If you want to avoid this warning, use "tune2fs -c -1 /dev/fd0";
similarly, use "tune2fs -i 0 /dev/fd0" to disable the maximum check
interval. In either case, tune2fs should only be run on unmounted
filesystems.

--
Glynn Clements
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Maximal mount count warning

am 26.03.2004 17:31:02 von Tony Gogoi

>
> > If a floppy was normally unmounted each time after mounting it, why should
> > the "mount count" keep increasing ?
>
> Because it is incremented whenever the filesystem is mounted, and it
> *isn't* decremented when the filesystem is unmounted.
>

Strange ! I wrongly assumed that there'd be a MOD_DEC_COUNT whenever the
floppy is umounted.
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html