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

Re: "Run fsck manually"..?



On Tue, Feb 02, 2021 at 10:01:30PM -0600, David Wright wrote:
> > # touch /forcefsck
> 
> I think this is somewhat out of date, is it not.

It is, yes.  That no longer works in systemd.

> I force fsck by adding   forcefsck   in grub, ie press e in
> the grub menu, move the cursor to the end of the linux line,
> type forcefsck and press Ctrl-X or F10 to boot. For example,
> 
>   linux /boot/vmlinuz-4.19.0-14-amd64 root=LABEL=toto04 ro systemd.show_status=true quiet forcefsck

The instructions from the bot in #debian say to add fsck.mode=force
to the kernel parameters.  Perhaps your variant is some sort of alias.

I am not aware of any one-shot variant that can be used *before*
rebooting, without being physically present at the console.  Sadly.
The closest approximation would be to permanently edit the grub menu,
reboot, and then restore your backup copy of the grub menu.


Reply to: