public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] How can I reset mount-count?
@ 2011-02-01 20:05 Jarry
  2011-02-01 21:00 ` Alan McKinnon
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Jarry @ 2011-02-01 20:05 UTC (permalink / raw
  To: gentoo-user

Hi,
I use one drive just for backup, co I mount/unmount it only when
I need it (quite frequently). Since some time I started getting
these messages in /var/log/kernel.log:

kernel: kjournald starting.  Commit interval 5 seconds
kernel: EXT3-fs warning: maximal mount count reached, running e2fsck is 
recommended
kernel: EXT3 FS on sda1, internal journal
kernel: EXT3-fs: mounted filesystem with ordered data mode.

So I unmounted /dev/sda1 and checked partition as recommended:
e2fsck -f /dev/sda1

All tests passed, no errors reported, output seems normal.
But when I mount it, I get the above mentioned message again.
Apparently, mount-counter has not been reset. So how can I
reset it?

I think, that message indicate that fsck will check that
partition while doing next backup. I would like to avoid
it, as it is rather large partition (2TB) with a lot of
files, and fsck takes quite long time...

Jarry

-- 
_______________________________________________________________
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] How can I reset mount-count?
  2011-02-01 20:05 [gentoo-user] How can I reset mount-count? Jarry
@ 2011-02-01 21:00 ` Alan McKinnon
  2011-02-01 21:16 ` Dale
  2011-02-03  2:20 ` [gentoo-user] " walt
  2 siblings, 0 replies; 7+ messages in thread
From: Alan McKinnon @ 2011-02-01 21:00 UTC (permalink / raw
  To: gentoo-user

Apparently, though unproven, at 22:05 on Tuesday 01 February 2011, Jarry did 
opine thusly:

> Hi,
> I use one drive just for backup, co I mount/unmount it only when
> I need it (quite frequently). Since some time I started getting
> these messages in /var/log/kernel.log:
> 
> kernel: kjournald starting.  Commit interval 5 seconds
> kernel: EXT3-fs warning: maximal mount count reached, running e2fsck is
> recommended
> kernel: EXT3 FS on sda1, internal journal
> kernel: EXT3-fs: mounted filesystem with ordered data mode.
> 
> So I unmounted /dev/sda1 and checked partition as recommended:
> e2fsck -f /dev/sda1
> 
> All tests passed, no errors reported, output seems normal.
> But when I mount it, I get the above mentioned message again.
> Apparently, mount-counter has not been reset. So how can I
> reset it?
> 
> I think, that message indicate that fsck will check that
> partition while doing next backup. I would like to avoid
> it, as it is rather large partition (2TB) with a lot of
> files, and fsck takes quite long time...

tune2fs -C

The command you used just forces a proper check regardless of what the count 
says. it doesn't actually affect the count.

-- 
alan dot mckinnon at gmail dot com



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] How can I reset mount-count?
  2011-02-01 20:05 [gentoo-user] How can I reset mount-count? Jarry
  2011-02-01 21:00 ` Alan McKinnon
@ 2011-02-01 21:16 ` Dale
  2011-02-02 21:00   ` Nils Holland
  2011-02-03  2:20 ` [gentoo-user] " walt
  2 siblings, 1 reply; 7+ messages in thread
From: Dale @ 2011-02-01 21:16 UTC (permalink / raw
  To: gentoo-user

Jarry wrote:
> Hi,
> I use one drive just for backup, co I mount/unmount it only when
> I need it (quite frequently). Since some time I started getting
> these messages in /var/log/kernel.log:
>
> kernel: kjournald starting.  Commit interval 5 seconds
> kernel: EXT3-fs warning: maximal mount count reached, running e2fsck 
> is recommended
> kernel: EXT3 FS on sda1, internal journal
> kernel: EXT3-fs: mounted filesystem with ordered data mode.
>
> So I unmounted /dev/sda1 and checked partition as recommended:
> e2fsck -f /dev/sda1
>
> All tests passed, no errors reported, output seems normal.
> But when I mount it, I get the above mentioned message again.
> Apparently, mount-counter has not been reset. So how can I
> reset it?
>
> I think, that message indicate that fsck will check that
> partition while doing next backup. I would like to avoid
> it, as it is rather large partition (2TB) with a lot of
> files, and fsck takes quite long time...
>
> Jarry
>


Check out tune2fs's man page.  I think one of the options there will 
help you.  Also, you can use dumpe2fs to see the count.  That is also 
shown with the tune2fs command tho.

One more thing, if you just want it to print certain info, grep would be 
your friend.  ;-)  It spits out a lot here.

I also googled a bit and it does appear that the booting check resets 
the counter.  At least that was what one poster said.  May not be the 
case now but thought I would mention it.

Hope that helps.

Dale

:-)  :-)



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] How can I reset mount-count?
  2011-02-01 21:16 ` Dale
@ 2011-02-02 21:00   ` Nils Holland
  2011-02-04 20:42     ` Enrico Weigelt
  0 siblings, 1 reply; 7+ messages in thread
From: Nils Holland @ 2011-02-02 21:00 UTC (permalink / raw
  To: gentoo-user

On 15:16 Tue 01 Feb     , Dale wrote:
 
> I also googled a bit and it does appear that the booting check resets 
> the counter.  At least that was what one poster said.  May not be the 
> case now but thought I would mention it.

Yep, the check at boot that gets executed after the specified maximum
mount count has been reached definitely resets the mount count to 0
again, I've probably witnessed that millions of times myself in my
life. ;-)

Observation(tm): From the e2fsck man page: "e2fsck -p: Automatically
repair ("preen") the file system. This option will cause e2fsck to
automatically fix any filesystem problems that can be safely fixed
without human intervention. [...] This option is normally run by the
system's boot scripts".

The "-p" option to e2fsck acutually resets the mount count back to 0,
even when executed manually (and not as part of a script at boot time).

Greetings,
Nils


-- 
Nils Holland * Ti Systems, Wunsorf-Luthe (Germany)
Powered by GNU/Linux since 1998



^ permalink raw reply	[flat|nested] 7+ messages in thread

* [gentoo-user] Re: How can I reset mount-count?
  2011-02-01 20:05 [gentoo-user] How can I reset mount-count? Jarry
  2011-02-01 21:00 ` Alan McKinnon
  2011-02-01 21:16 ` Dale
@ 2011-02-03  2:20 ` walt
  2011-02-03 22:32   ` Nils Holland
  2 siblings, 1 reply; 7+ messages in thread
From: walt @ 2011-02-03  2:20 UTC (permalink / raw
  To: gentoo-user

On 02/01/2011 12:05 PM, Jarry wrote:

> I would like to avoid
> it [fsck], as it is rather large partition (2TB) with a lot of
> files, and fsck takes quite long time...

The ext4 wiki site claims that fsck runs 2 to 20 time faster than
ext3, depending on the number and size of the files contained in
the ext4 filesystem.

I have no experience with ext4 (yet), but I would welcome comments
from those who do.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] Re: How can I reset mount-count?
  2011-02-03  2:20 ` [gentoo-user] " walt
@ 2011-02-03 22:32   ` Nils Holland
  0 siblings, 0 replies; 7+ messages in thread
From: Nils Holland @ 2011-02-03 22:32 UTC (permalink / raw
  To: gentoo-user

On 18:20 Wed 02 Feb     , walt wrote:
> 
> The ext4 wiki site claims that fsck runs 2 to 20 time faster than
> ext3, depending on the number and size of the files contained in
> the ext4 filesystem.
> 
> I have no experience with ext4 (yet), but I would welcome comments
> from those who do.

Well, on one of my machines, I have converted all my filesystems to
ext4 recently. Basically, I did a backup of the data on the machine,
reformated all my partitions as ext4 (except for /boot, which always
remains ext2 here) and copied back the data. The largest of these "now
ext4 and previously ext3" partitions is a 30% full, ~500 GB /home
partitition (but don't ask me for the current number of files).

While I'm not really one of those benchmark type of guys sitting in
front of their computers with a watch and raving like mad about every
0.0001 second saved during some process, I would say that an fsck on
that ext4 filesystem certainly works faster than it did when it still
was a ext3 filesystem. Probably not really 20 times faster, but
noticably faster.

On the other hand, the ext3 incarnation of that fs was in use for
years, the ext4 is a fresh copy of it, without any significant
fragmentation (yet), so this might also play a role in leading to
faster fsck performance.

In any case, besides that I can say that at least on that one system
of mine, ext4 works really well and I've not yet had any problems with
it.

Greetings,
Nils


-- 
Nils Holland * Ti Systems, Wunstorf-Luthe (Germany)
Powered by GNU/Linux since 1998



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] How can I reset mount-count?
  2011-02-02 21:00   ` Nils Holland
@ 2011-02-04 20:42     ` Enrico Weigelt
  0 siblings, 0 replies; 7+ messages in thread
From: Enrico Weigelt @ 2011-02-04 20:42 UTC (permalink / raw
  To: gentoo-user

* Nils Holland <nhg@tisys.org> wrote:

> Observation(tm): From the e2fsck man page: "e2fsck -p: Automatically
> repair ("preen") the file system. This option will cause e2fsck to
> automatically fix any filesystem problems that can be safely fixed
> without human intervention. [...] This option is normally run by the
> system's boot scripts".
> 
> The "-p" option to e2fsck acutually resets the mount count back to 0,
> even when executed manually (and not as part of a script at boot time).

Apropos: is it somehow possible to get e2fsck to correct some more
errors (eg. lost files - at least if /lost+found is okay) ?
I just had an unpleasantly long downtime with manual intervention
required.


cu
-- 
----------------------------------------------------------------------
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weigelt@metux.de
 mobile: +49 151 27565287  icq:   210169427         skype: nekrad666
----------------------------------------------------------------------
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-02-04 20:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-01 20:05 [gentoo-user] How can I reset mount-count? Jarry
2011-02-01 21:00 ` Alan McKinnon
2011-02-01 21:16 ` Dale
2011-02-02 21:00   ` Nils Holland
2011-02-04 20:42     ` Enrico Weigelt
2011-02-03  2:20 ` [gentoo-user] " walt
2011-02-03 22:32   ` Nils Holland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox