Re: how to fsck at boot?

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

 



On 10/26/24 6:01 PM, ToddAndMargo via users wrote:
On 10/26/24 17:55, Samuel Sieb wrote:
On 10/26/24 5:40 PM, ToddAndMargo via users wrote:
On 10/26/24 17:29, ToddAndMargo via users wrote:
The tune2fs command is used to modify the filesystem mount options and settings for ext2, ext3, and ext4 file systems. The option -E force_fsck enables forced filesystem checks (fsck) on every reboot, while the repair option specifies that fsck should attempt to automatically repair any issues found during the check.


# tune2fs -E force_fsck repair /dev/mapper/luks-903bc691-a0f0-42bc- aa96-4233a7edc0e9
tune2fs 1.47.0 (5-Feb-2023)
Usage: tune2fs ...

What did I do wrong?

Where did that "repair" thing come from?  The flag you're setting is called "force_fsck".



https://search.brave.com/search?q=tune2fs+- E+force_fsck+repair&summary=1&summary_og=5ad6fac8ba3b05432c1504

Tune2fs Force FSCK Repair

The tune2fs command is used to modify the filesystem mount options and settings for ext2, ext3, and ext4 file systems. The option -E force_fsck enables forced filesystem checks (fsck) on every reboot, while the repair option specifies that fsck should attempt to automatically repair any issues found during the check.

AI answers... Apparently I got a slightly different one than you.
"The repair part of the command is not a separate option, but rather a concept."

In an earlier message you said "it did run".  What was "it" that took 10 seconds?

fsck ran at boot, but only took about 10 seconds for a
1TB drive.  I am doubtful it tried tp do a repair.

If it found something, it would have repaired it or indicated a problem.

That command just sets the flag.  You either need to reboot or remount the filesystem after setting it.  Although if you can unmount it, then you don't need to set the flag.  You could just run "e2fsck" directly.


It is my / partition.  I suppose I could run a live usb and do
a repair from there?

I would recommend that if you are doubting the current situation.

I am not having any luck finding for to tell e2fsck I want a
repair too.

Because there is no distinction. That flag marks the filesystem as having errors, so it needs to be checked when mounted. However, I'm not sure that the mounting fsck is as thorough as a manually run one. I actually think that if it finds any non-trivial issue that it will just fail the mount. So do try that live boot.

--
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[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