Bug 13992
Summary: | ext3 data=ordered in fstab prevents booting | ||
---|---|---|---|
Product: | File System | Reporter: | Roger (rogerx.oss) |
Component: | ext3 | Assignee: | Jan Kara (jack) |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | jack, rogerx.oss, sandeen |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.30.4 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Roger
2009-08-16 00:46:12 UTC
Oh, I see what's the problem: You cannot change journalling mode on remount. So if by default a filesystem gets mounted as data=writeback, then mount remounting the fs rw fails because it specifies data=ordered from /etc/fstab. Sorry, this is a userspace issue - either you have to specify rootflags=data=ordered or you should use initrd and initially mount the filesystem with proper options. I understand this might be nasty to users but there's no better solution... FWIW, the kernel does at least hint at what the error is: EXT3-fs: cannot change data mode on remount though it won't be obvious to everyone that root gets remounted at boot time. -Eric Jan Kara: Ditto. Nasty to naive users, which pretty much means every ext3 user who believes in the safety of data=ordered option, but who are likely not extfs developers. Yes, the kernel at least hints, but this means users need to also know how to read dmesg output. IMO, stuff should be the other way around and CONFIG_EXT3_DEFAULTS_TO_ORDERED should default to yes, rather then cutting something & breaking box configurations. Printing repetative warnings during mounting with options could also be extremely effective. Another option, would be to deactivate or rename the filesystem mount option, avoiding the remount in that mode. <shrugs> OTOH, to hit this problem, you have to a) explicitly specify data=ordered in your /etc/fstab b) compile your own kernel without CONFIG_EXT3_DEFAULTS_TO_ORDERED c) don't use initrd So b) and c) pretty much rules out naive users of a distro and a) rules out most of users as well. I'd at least hope that users able to do b) are also able to read kernel messages, although I agree with you and Eric that understanding what to do based on the ext3 error message is non-trivial. Maybe we could improve the message to write something like: "EXT3-fs: Cannot change data mode on remount. Current mode is data=<foo> and you try to remount with data=<bar>." I'd hope that user seeing this would be able to inspect his /etc/fstab / kernel configuration and act accordingly... Regarding CONFIG_EXT3_DEFAULTS_TO_ORDERED, I also feel it should be on by default but I don't have the guts to argue with Linus about this. |