I am running Ubuntu 20.04 Server on my Raspberry Pi 4B 8GB. I have migrated to usb hdd boot but I still need the SD card as it houses the firmware (if somebody found a workaround, let me know :)). The SD card is prone to corruption.
The reboot failes ocasionally and I am required to manually run fsck for the failed partition. I would like to automate this step so that the server does not need to wait for my intervention to continue booting.
I understand that fsck will not fix certain issues and that the only fix is to replace the SD card. I am looking for an automatic solution for those cases where it can work.
I am copying this question from the Ubunut stackexchange. It was not answered there and I am the author of the question.
EDIT: I want clarify one commenters statement that an SD card is not necessary for USB boot. There is a bug on the 20.04 Ubuntu OS ARM64 version that prevents booting without an SD card. You need to leave the boot partition on the SD card while moving only the system partition to the USB HDD. For more information, please check this guide I made here.