After Krypton update, the raspi was stuck on the addons update process, after that I get an error every time I boot the raspi about SD card errors. It seems it is asking for a manual fsck but I can not do it as it is mounted, so I am not sure how to fixit aside of formating and reinstalling everything.
My system is a windows desktop, not sure if windows will be able to fix the SD.
I must say that even with the error everything works, but I have fear that it may stop working anytime soon.
If the system works, you should be ok. If you want to run fsck then you must do so before the system is mounted. If you add recovery to the end of the line of text in /boot/cmdline.txt and add a keyboard to your pi before then rebooting you will be able to run fsck manually in the recovery shell and then remove the recovery option to reboot normally.
From the logs /bin/e2fsck -f -y -C 0 /dev/mmcblk0p2 is the command you would need to run to clean up the errors.
At this point the partition with all the data on /dev/mmcblk0p2 (if you have a standard install) will not be mounted and so you can run fsck in whatever mode you need.
OSMC should automatically do a filesystem check if it detects an unclean filesystem.
How do you power off your system?
Just pulling the plug will trigger the check but should be avoided at any cost.
You can also force a filesystem check on reboot.
Please search the forum to find out how.
I think you need to create a file in the boot partition.
Ok, the recovery method did not work (it boots the same way) and in fact the file appear without recovery after the reboot (I did a sudo and checked the file was changed twice after saving it).
And trying to fix it with windows did not fix anything, I will probably go with a reinstall as the raspi probably was installed almost 2 years ago with the firsts osmc versions, so it not a bad idea to restart everything.
Is it not possible to run fsck in busybox at the recovery console either before it mounts or unmount and run there?
Your SD card is failing (or one of the ones that reports fake capacity). I think you would be wise to look at replacing it. The OSMC store sells good quality cards at an affordable price.