Eric Sandeen schrieb:
>
> "D. Stimits" wrote:
>
> > I noticed one other thing during the process that is definitely a bug,
> > but not necessarily xfs...it could be a mount bug. While in single user
> > mode, after remounting the partition read-only, it was falsely listed as
> > read/write when the mount command was run to see current mounts. I know
> > it was incorrect becase I tried intentionally to write to a file as a
> > test, and it correctly told me the file could not be saved because the
> > partition was read-only.
>
> I've seen this before... I think it's a result of /etc/mtab not being
> updated before the / partition is made read-only. (ext2 root does this
> for me, too, at least on RH7.1) Try cat /proc/mounts and see what you
> get - it should say "ro".
>
> -Eric
Even worse, when you expext the mount command really shows what and how
it
is mounted. Not so, try booting with something like 'linux init=/bin/sh'
and check with mount, it will falsely tell you / is mounted rw. Of
course
mount can not read from /proc/mounts cos it is not mounted already.
Simon
|