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

Re: Skipping fsck during boot with systemd?



On 12/11/2014 05:57 AM, Andrei POPESCU wrote:
On Mi, 10 dec 14, 15:32:55, Jape Person wrote:

But that information plus the linked items (in the info output) grub-reboot
and grub-editenv may get me started toward a solution.

I just thought of a different approach, using the fact that one can
manipulate the "Maximum mount count" without having to umount the
filesystem: write a script that always sets the "Maximum mount count" to
'0' or '-1' late during the boot (e.g. via rc.local or @reboot in the
crontab).

With this one can easily trigger a manual check on the next reboot with
a simple:

     tune2fs -c 1 /dev/sdXY

and the script will reset "Maximum mount count" immediately after, so
you don't get a check on every reboot ;)

Kind regards,
Andrei


Whoa! And I get the answer just handed to me!

Now how am I supposed to learn anything when you just spoon-feed me?

;)

You know, I had been staring at tune2fs for a while and didn't come up with such a possibility -- mainly, I suppose, because I'm not used to using home-made scripts. I do almost everything by hand these days.

You have to love the power of scripting.

And the power of subscribing to a list with folks like you on it.

Many, many thanks, Andrei!

Best regards,
JP


Reply to: