Hi Team,
Is it possible to validate the linux root file system before booting from eMMC memory?
Please provide any suggestions regarding this scenario.
Thanks and Regards,
Sainath
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Team,
Is it possible to validate the linux root file system before booting from eMMC memory?
Please provide any suggestions regarding this scenario.
Thanks and Regards,
Sainath
Hi Karan,
We have seen an issue where, fsck failed to fix the corrupted rootfs and the system wont boot and reboots always.
We need to implement a solution for this problem.
As per our knowledge, below are the possible solutions:
1. Run fsck in initramfs, based on the result send an error message/take appropriate actions.
2. Create two partitions:
a.) Read Only partition for Root file system
b.) Read Write partition for data writing
3. Have a backup partition in eMMC and boot from backup partition in case of fsck failure.
4. Is it possible to detect file system corruption in Uboot stage? If yes, please share the details if you have.
Do you have any suggestions for above methods or any other methods to recover from this problem?
Thanks and Regards,
Sainath
Hi Sainath,
I don' think it's possible to detect filesystem corruption from u-boot.
Your suggestions are all valid.
- You can keep a separate partition for rw data and keep the rootfs as readonly. Similar approach is taken in Android file system partitions.
- Back up partition is also fine, I am not sure how would you switch to backup partition if the first partition doesn't boot.
Regards,
Vishal