Re: Strane remount behaviour with ext3-2.4-0.9.4

From: Andreas Dilger (adilger@turbolinux.com)
Date: Fri Jul 27 2001 - 12:15:39 EST


Sean writes:
> servers. Since the server in question is a farily security-sensitive box, my
> /usr partition is mounted read only except when I remount rw to install
> packages.

If it is a security-sensitive box, you need to at least use data=ordered or
data=journal. Using data=writeback allows the possibility that after a crash
one user might be able to read data from deleted files of another user (note
that reiserfs currently only runs the equivalent of data=writeback).

> When I try to remount it r/w I get a log message saying:
> Jul 27 09:54:29 henry kernel: EXT3-fs: cannot change data mode on remount
>
> ...even if I give the full mount option list (including data=writeback) with
> the remount instruction.

You _could_ leave out the data=writeback from /etc/fstab (default is ordered),
and you will be able to remount OK. Also, Andrew made a patch which allowed
you to specify the data= mode on remount, as long it is the same.

> I can, however, remount it as ext2 read-write, but when I try to remount as
> ext3 (even read only) I get the same problem.

You can't change filesystem types via remount (ext2 and ext3 are different
filesystem drivers). In the future, you might be able to use the ext3
driver to mount a filesystem in totally unjournaled (ext2) mode.

Cheers, Andreas

-- 
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Jul 31 2001 - 21:00:33 EST