Comment 3 for bug 361023

Revision history for this message
Benjamin Mako Hill (mako) wrote : Re: Jaunty: jfs filesystem being mounted read-only

This bug is not actually a duplicate of #219382.

#219382 is a generic bug about filesystem checks on boot based on on_ac_power. This bug is about behavior in relation to JFS which should be handled separately.

If a JFS FS is ever unmounted unclearly, the filesystem needs to be checked. If the FS is mounted without a fsck, the FS will be read only. The effect is that if an install with a JFS root FS ever crashes, looses power, or otherwise shuts down uncleanly and the system is then booted up without AC power, the system will silently and without warning mount the root FS read only and fail to start a variety of applications, most notably GDM. If a user does not know how to fsck their root by hand, the system will become unusable until the system is booted with AC power present.

A fsck on JFS takes well under a minute to run so concerns about battery power are less important than they might be in ext3. I see no reason to have the checkroot.sh script always run the fsck if the system is JFS. This will address fix this issue for JFS laptop users.

I've included a patch that does this. It may not be the right place (I don't know the codebase well) but it fixes the issue and should explain roughly what needs to happen