Testing ext4 and auto fix

Jerry Geis jerry.geis at gmail.com
Wed Dec 6 19:13:49 UTC 2023


On Wed, Dec 6, 2023 at 1:54 PM Jose Luis Alarcon Sanchez <
jlalarcon at planetmail.net> wrote:

> On dic. 6 2023, at 7:06 pm, Jerry Geis <jerry.geis at gmail.com> wrote:
>
> > How do I enable "auto fix" no matter what on ext4 ?
> > Then how do I simulate that ?
> >
> >
> > I just tried doing on 22.04:
> > touch  /forcefsck
> > shutdown -r now
> >
> > I did not see any file system check,
> > when I log back in the file is still present.
> >
> > When power goes out on my remote computer - I want it to come back up
> > no matter what.
> >
> > Thanks,
> >
> > Jerry
> >
>
> Hi Jerry.
>
> Isn´t with a dot in the instruction?. something like:
> touch  /.forcefsck
>
> Try it. Nothing to loose.
>
> Regards.
> Jose Luis.
>
> --
> https://lordofunix.org/
>
> Not Registered GNU/Hurd User.
> Registered BSD User 51101.
> Registered Linux User #213309.
> Memories..... You are talking about memories.
> Rick Deckard. Blade Runner.
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


Seems I had a typo on such a simple command. :)
I created /forcefsck   (not /forcefsk)
I rebooted and the file is gone. OK.

How then to just go ahead "fix" any issue. This is on a remote computer -
and just need it to "fix" and boot.
I did find /fsckoptions  and I could put a -y in there - but how do I
"simulate" a file system issue - so the fix will happen ?

Thanks

Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20231206/14b7b1b1/attachment.html>


More information about the ubuntu-users mailing list