At Raspbian, there is a
/boot/cmdline.txt file where the option
fsck.repair can be defined.
As far as I know, the valid values are:
- yes (always repair)
- no (never repair)
- preen (default; repair if it is safe)
What I actually want is "ask/interactive mode" before a repair.
This is what I am doing at the moment:
- At the moment, I have the setting "fsck.repair=preen".
- If the system won't boot due to an error, I have to go into the emergency console.
- But when I am inside the emergency console, I cannot run
fsck, because I am working on the mounted filesystem, and checking it while it is mounted, would damage it. Raspbian does not seem to have a real emergency mode that works "outside" the file system (e.g. in an RAM disk).
- So I have to set
fsck.repair=yesin the emergency console, then reboot, wait for the repair, and then when the system is booted again, I set
Is there anything that I can do better? Any way to make the system asking me before doing repairs?