I have an embedded device that on extremely rare occasions will have a dirty root filesystem. System-D will halt boot with:
Give root password for maintainence
(or type control-D to continue):
These situations are very rare and can be solved by doing the following after entering the root password:
# mount -o remount,ro /
# fsck /dev/mmcblk1p3
Is there anyway to automate this or even try to perform the cleaning when the filesystem is in use?