Re: how to fsck at boot?

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

 



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.


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.

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 am not having any luck finding for to tell e2fsck I want a
repair too.

--
_______________________________________________
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