Windows shares and supend/resume
I put this in my fstab which works fine and mounts the drive:
//192.168.0.2/Media3/recordings /home/billy/oscar cifs username=Billy,password=inserthere,billy,uid=1000,gid= 1000,iocharset=utf8,mode=0777,dir_mode=0777 0 0
But both my windows server and ubuntu machine are set to sleep. My ubuntu wakes my windwows server via a wake on lan command when it resumes from sleep.
Is there another way I should be mounting this other than using the fstab.
Since I added fstab entry sometimes the ls command stops working and winscp stops working and I have to reboot. I presume this is due to the server not being ready after I resume when fstab is run.
Maybe I should be mounting/unmounting with a suspend resume script? How could I do this