Sometime my external hard drive is dismounted even though I had configure ftsab correctly and using powered usb hub for the drive. I usually solve this this by rebooting the system.
Can someone provide a script to automatically reboot the Raspberry Pi if the drive is not mounted, or other solution to keep the drive mounted?