On Tue, May 19, 2015 at 1:24 AM, Russell Coker <russell@xxxxxxxxxxxx> wrote: > Do you have a reference for fsck on a ro mounted ext4 filesystem being dangerous? The standard behavior of Linux systems has been to fsck a ro mounted ext* root filesystem since long before an initrd was invented. Actually, slight confusion. XFS has a repair dangerously mode explicitly for repairing ro mounted XFS file systems. The man page for e2fsck says it's unsafe to fsck a mounted fs. It doesn't explicitly distinguish between ro and rw mounts, but from this list I've learned ro mounts aren't guaranteed to be ro, even if they should be ro. The e2fsck man page says even if it's safe, it's unreliable. Anyway, it seems worse to me to have a system where you have to ro mount a file system that you suspect might be inconsistent so that the fsck binary can be read and then operated on that same file system. Ancient madness. -- Chris Murphy -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
