[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[MiNT] Easymint filesystem checks
Hi all,
Happy New Year.
When Easymint boots, it runs fscheck.sh to check the filesystems
based on fstab.
The test part of the script is:
for drv in $ext2drives; do
echo; echo "Checking filesystem on drive $drv."
fsck.ext2 -p -C - $drv:
if [ $? -ge 2 ]; then
echo
echo "Warning: e2fsck FAILED ($?)"
echo " Starting single user shell. Fix the"
echo " filesystem on drive $drv by running fsck.ext2"
echo " and REBOOT!"
echo
sh -si < /dev/console > /dev/console 2>&1
fi
done
If a drive isn't present then the script chucks you into the shell.
Would it be sensible to modify it so that if a drive isn't there
it tries to boot anyway ?
I am considering plugging in a CF card adapter and I wondered what
would happen when there is no CF card present.
This might be an area that will change with USB drives.
Peter