On 5/21/24 08:28, Stuart Henderson wrote:
On 2024-05-21, Nick Holland <n...@holland-consulting.net> wrote:
...

When I remove that disk the boot sequence stops and asks for a fsck
I would like that this disk is mounted when it's present, but when it's not 
installed I don't want the boot sequence to stop

Make it also "noauto" in fstab and mount it in rc.local.

Last I tried this, it didn't do what I wanted -- "noauto" still expects
to have the disk there and will fsck it on boot.  Failure to be able to
do this stops the boot.  It's been a while since I last tried this, so
perhaps something has changed (including my recollection?)

See fstab(5) about fs_passno.

ah, so "0" or blank. cool. learned something.
That will simplify a few things!

And this might be a solution for the OP's problem:
make /usr and /usr/* "ro" during normal operation

reorder_kernel is run in the background from /etc/rc; for RO /usr
you need to wait for that to finish.

And I forgot that. d'oh.
So yes, file my tidbit under "REALLY BAD ADVICE" and ignore it.

For reasons of multi-hour fsck's on a few systems, I'm looking at
remounting the problem file systems as "rw" when writing is actually
needed and "ro" after the writing is complete (IN THIS APPLICATION, this
is known) to reduce my "at risk of power outage" window a lot, but I
suspect this will fall deeply within the category of "when I break
things, I get to keep all the pieces". :)

Nick.

Reply via email to