I am only guessing. When you try to mount, the sd is not yet recognized by the system. You could trying make the script wasting some time before it tries to mount. Or maybe you could use a loop until the mount was successful, with a limited number of trials (in case this does not work).
|