Re: F25: How to force fsck at boot?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



/forcefsck is obsolete

Modern file systems are expected to determine themselves if fsck is
needed. XFS, ext4, btrfs, all can do log replay at mount time and that
fixes the vast majority of problems. On XFS and Btrfs, if log replay
has problems, mount will fail and it's expected the user manually runs
repair.

So right off the bat, /forcefsck would apply only to ext4 on Fedora.
But there's another gotcha which is the file system has to be
consistent enough to mount ro in order to find the forcefsck hint. So
it's kinda unreliable. Next it required the use of preen on a read
only mounted volume, which upstream doesn't recommend. From e2fsck man
page.

"Note that in general it is not safe to run e2fsck on mounted
filesystems.  The only exception is if the -n option is specified"

In a somewhat recent systemd, it just pre-emptively runs the generic
fsck on rootfs before ro mount. On ext4 this causes e2fsck to get run
prior to ro mount which if the file system state is clean, it's a no
op. On XFS and Btrfs fsck is always a no op.


Chris Murphy
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux