Maximal mount count warning

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 [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Tony Gogoi [ Fr, 26 März 2004 16:19 ] [ ID #63993 ]

Re: Maximal mount count warning

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 <glynn.clements [at] virgin.net>
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Glynn Clements [ Fr, 26 März 2004 16:56 ] [ ID #63994 ]

Re: Maximal mount count warning

>
> > 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 [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Tony Gogoi [ Fr, 26 März 2004 17:31 ] [ ID #63995 ]
Linux » gmane.linux.admin » Maximal mount count warning

Vorheriges Thema: Question about sendmail.
Nächstes Thema: readdir and checksecurity