What is "enable fsck hook" in architect?

I've red arch wiki, and some other sites.
If I'm correct this will enable checking my disk (or maybe only root partition?) while booting.
Does it mean that if I do not choose to to enable fsck hook during m-a installation than my disk/partition would not be checked for errors?

yes it does but you can setup systemd to do it instead. go back on the Arch Wiki and look up silent boot. the instructions to configure systemd checks are in that article.

3 Likes

Manual says that I have to replace udev hook with systemd
in
in /etc/mkinitcpio.conf

In this file there are few lines with HOOKS

This setup will autodetect all modules for your system and should
work as a sane default
HOOKS=(base udev autodetect block filesystems)

This setup will generate a 'full' image which supports most systems.
No autodetection is done.
HOOKS=(base udev block filesystems)

This setup assembles a pata mdadm array with an encrypted root FS.
Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
HOOKS=(base udev block mdadm encrypt filesystems)

This setup loads an lvm2 volume group on a usb device.
HOOKS=(base udev block lvm2 filesystems)

NOTE: If you have /usr on a separate partition, you MUST include the
usr, fsck and shutdown hooks.
HOOKS="base udev autodetect modconf block keyboard keymap filesystems"

So should I make it look like this:

This setup will autodetect all modules for your system and should
work as a sane default
HOOKS=(base systemd fsck autodetect block filesystems)

This setup will generate a 'full' image which supports most systems.
No autodetection is done.
HOOKS=(base systemd fsck block filesystems)

This setup assembles a pata mdadm array with an encrypted root FS.
Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
HOOKS=(base systemd fsck block mdadm encrypt filesystems)

This setup loads an lvm2 volume group on a usb device.
HOOKS=(base systemd fsck block lvm2 filesystems)

NOTE: If you have /usr on a separate partition, you MUST include the
usr, fsck and shutdown hooks.
HOOKS="base systemd fsck autodetect modconf block keyboard keymap filesystems"

1 Like

you only need change the HOOKS= line that is not commented out e.g. the one without the # symbols in front of it.

1 Like

And one more thing.
What is the default setting when using calamares? fsck hook is enabled or disabled and mkinitcpio is modified with systemd?

I'm not entirely sure, @philm made some changes to make Manjaro boot silently after installation but I don't recall if the current ISO still uses fsck to check drives at every startup or the systemd unit. I presume the latter is the case now. I installed from an old ISO pre-silent boot so made the changes manually on my laptop.

So I'll try ask in a little different way/
Let say that I'll install manjaro without enabling fsck hook. Is it bad for system/files.anything else safety?