I am using 24.04 with Ext4 file systems and every time I boot I get this option which suggest filesystem errors.

I tried to use fsck from recovery mode with the following result:

/lib/recovery-mode/recovery-menu: line 80: /etc/default/rxS: No such file or directory
fsck from util-linux 2.39.3
dev/nvme2nip5 is mounted.
e2fsck: Cannot continue, aborting

Contents of /lib/recovery-mode:

Code:
  GNU nano 7.2                           recovery-menu                                      if [ "$choice" = "resume" ]; then
    box_text=$(eval_gettext "You are now going to exit the recovery mode and continue the>
If that's the case, simply reboot from the login screen and then perform a standard boot.>
    whiptail --msgbox "$box_text" 12 70
    clear
    touch /run/friendly_recovery.resume
    systemctl daemon-reload
    systemctl --no-block isolate default.target
    exit
  fi


  /lib/recovery-mode/options/$choice test mode >/dev/null 2>&1
  retval=$?


  # Hack for the fsck case (needs to be cosidered read/write only when
  # in read-only mode and read-only only when in read/write mode)
  if [ "$choice" = "fsck" ] && [ "$READONLY" = "false" ]; then
    retval=1
  fi


  case "$retval" in
    0)
      # 0 => requires read/write
      if [ "$READONLY" = "true" ]; then
        box_text=$(eval_gettext "Continuing will remount your / filesystem in read/write >
Do you wish to continue?")
        whiptail --yesno "$box_text" 10 70 || continue


        if [ "$choice" = "fsck" ]; then
            FSCHECK="true"
        fi


        . /etc/default/rcS
        if [ -d /run/systemd/system ]; then
            [ "$FSCKFIX" = "yes" ] && fsck_mode="-y" || fsck_mode='-a'
            [ "$FSCHECK" = "true" ] || [ -f /forcefsck ] && fsck $fsck_mode
            systemctl start --job-mode=ignore-dependencies systemd-remount-fs.service
            mount -a
        else
            [ "$FSCHECK" = "true" ] || [ -f /forcefsck ] && force_fsck="--force-fsck"
            [ "$FSCKFIX" = "yes" ] && fsck_fix="--fsck-fix"
            mountall $force_fsck $fsck_fix --no-events
        fi
        rm -f /forcefsck


        if [ "$choice" = "fsck" ]; then
          echo ""
          echo $(eval_gettext "Finished, please press ENTER")
          read TMP
        fi


        READONLY=false
      fi
    ;;


    1)
      # 1 => read-only only
      if [ "$READONLY" = "false" ]; then
        box_text=$(eval_gettext "The option you selected requires your filesystem to be in read-only mode. Unfortunately another option you selected earlier, made you exit this mode.
The easiest way of getting back in read-only mode is to reboot your system.")
        whiptail --msgbox "$box_text" 12 70
        continue
      fi
    ;;


    2)
      # 2 => works in all cases
      # nothing to do
    ;;
  esac


  export READONLY
  /lib/recovery-mode/options/$choice
done
Code:
makem@makem-22:~$ sudo grub-install --version[sudo] password for makem: 
grub-install (GRUB) 2.12-1ubuntu7
makem@makem-22:~$
Searching the net for this missing file . /etc/default/rcS returns:

. /etc/default/rcs
/etc/default/rcS is a configuration file in older Ubuntu releases (pre-Systemd) that controls the behavior of the /etc/rcS</span>.d directory, which contains scripts executed during the boot process. This file is no longer relevant in Ubuntu 17.04 and later, as Systemd replaced Upstart and Initscripts.

That suggests that there is a problem elsewhere. Can I get assistance please?