* [gentoo-user] noatime option is ignored for /
@ 2007-05-13 13:48 Robert Cernansky
2007-05-13 14:00 ` Florian Philipp
2007-05-13 19:28 ` Benno Schulenberg
0 siblings, 2 replies; 4+ messages in thread
From: Robert Cernansky @ 2007-05-13 13:48 UTC (permalink / raw
To: gentoo-user
Hello,
I just found out that 'noatime' mount option is ignored on my system for
/ (root) partition. In /etc/fstab I have entry for /:
/dev/sda6 / ext3 noatime,usrquota,grpquota
and 'mount' command shows:
/dev/sda6 on / type ext3 (rw,noatime,usrquota,grpquota)
but /proc/mounts does not show noatime option:
/dev/root / ext3 rw,data=ordered,usrquota,grpquota 0 0
When I do 'cat <some_file>', 'ls -lu' shows that its access time _is_
modified. However I can do 'mount -o remount /' and filesystem is then
remounted correctly (access time is not modified anymore), I want to
ask if this is normal behaviour and remounting / after boot is common
solution.
The root of problem is probably the fact, that /etc/fstab is not
available when / is about to mount. But I did not find it mentioned in
any ext3 tweaking guide or so. Everywhere is just "add noatime option
to fstab and you're fine". In Gentoo Handbook is also nothing about
it (and noatime option is used for /).
I think initrd could solve this problem but I do not want it.
Is noatime for / working for you?
Robert
--
Robert Cernansky
E-mail: hslists2@zoznam.sk
Jabber: HS@jabber.sk
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] noatime option is ignored for /
2007-05-13 13:48 [gentoo-user] noatime option is ignored for / Robert Cernansky
@ 2007-05-13 14:00 ` Florian Philipp
2007-05-13 19:28 ` Benno Schulenberg
1 sibling, 0 replies; 4+ messages in thread
From: Florian Philipp @ 2007-05-13 14:00 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 627 bytes --]
Am Sonntag 13 Mai 2007 15:48 schrieb Robert Cernansky:
> Hello,
>
> I just found out that 'noatime' mount option is ignored on my system for
> / (root) partition. In /etc/fstab I have entry for /:
>
> /dev/sda6 / ext3 noatime,usrquota,grpquota
>
> and 'mount' command shows:
>
> /dev/sda6 on / type ext3 (rw,noatime,usrquota,grpquota)
>
> but /proc/mounts does not show noatime option:
>[...]
> /dev/root / ext3 rw,data=ordered,usrquota,grpquota 0 0
>
> Is noatime for / working for you?
>
>
> Robert
less /proc/mounts | grep /dev/root
/dev/root / ext3 rw,noatime,data=ordered 0 0
So, it's working for me.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] noatime option is ignored for /
2007-05-13 13:48 [gentoo-user] noatime option is ignored for / Robert Cernansky
2007-05-13 14:00 ` Florian Philipp
@ 2007-05-13 19:28 ` Benno Schulenberg
2007-05-13 20:49 ` Robert Cernansky
1 sibling, 1 reply; 4+ messages in thread
From: Benno Schulenberg @ 2007-05-13 19:28 UTC (permalink / raw
To: gentoo-user
Robert Cernansky wrote:
> and 'mount' command shows:
>
> /dev/sda6 on / type ext3 (rw,noatime,usrquota,grpquota)
>
> but /proc/mounts does not show noatime option:
>
> /dev/root / ext3 rw,data=ordered,usrquota,grpquota 0 0
Hmm, same thing here:
# grep "/ " /etc/mtab
/dev/hda9 / reiserfs rw,noatime 0 0
# grep "/ " /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / reiserfs rw 0 0
# mount -o remount /
# grep "/ " /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / reiserfs rw,noatime 0 0
During a normal boot an ext2/ext3 root partition gets remounted:
first it gets mounted read-only in case it needs to be fschecked,
and then remounted read-write.
I've changed the bootscripts to skip this double step, with the
unintended effect of not getting all options applied. (Fixed now.)
Maybe you did too?
Benno
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] noatime option is ignored for /
2007-05-13 19:28 ` Benno Schulenberg
@ 2007-05-13 20:49 ` Robert Cernansky
0 siblings, 0 replies; 4+ messages in thread
From: Robert Cernansky @ 2007-05-13 20:49 UTC (permalink / raw
To: gentoo-user
On Sun, 13 May 2007 21:28:41 +0200 Benno Schulenberg <benno.schulenberg@gmail.com> wrote:
> Robert Cernansky wrote:
> > and 'mount' command shows:
> >
> > /dev/sda6 on / type ext3 (rw,noatime,usrquota,grpquota)
> >
> > but /proc/mounts does not show noatime option:
> >
> > /dev/root / ext3 rw,data=ordered,usrquota,grpquota 0 0
>
> Hmm, same thing here:
[...]
> During a normal boot an ext2/ext3 root partition gets remounted:
> first it gets mounted read-only in case it needs to be fschecked,
> and then remounted read-write.
>
> I've changed the bootscripts to skip this double step, with the
> unintended effect of not getting all options applied. (Fixed now.)
> Maybe you did too?
I didn't modified the init scripts. But now I looked what is starting
at boot and found out that / is remounted also during quotacheck - and
this is the one that causes the problem.
I've booted into single user mode and / was mounted correctly. Then
ran quotacheck and after that it was mounted without noatime. So it is
probably quotacheck bug. For now I added 'mount -o remount /' command
to /etc/local.start as a workaround.
Thank you all for your replies.
Robert
--
Robert Cernansky
E-mail: hslists2@zoznam.sk
Jabber: HS@jabber.sk
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-05-13 20:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-13 13:48 [gentoo-user] noatime option is ignored for / Robert Cernansky
2007-05-13 14:00 ` Florian Philipp
2007-05-13 19:28 ` Benno Schulenberg
2007-05-13 20:49 ` Robert Cernansky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox