So I have been banging my head against a brick wall on this one for a couple of months so I though that I would ask for help.
After a while one of my network drives gets a stale file handle. I cannot unmount and mount it. The only thing I can do is reboot.
Its not an issue with the network drive since this does not happen on the windows or mac computers on the network.
The exact error message is:
"Unhandled error message: Error when getting information for the file "/-media/Myindex": Stale file handle."
The way I set up mounting the network drive:
sudo apt-get install cifs-utils
sudo mkdir /media/Myindex
sudo chown -R nobody:nogroup /media/Myindex
sudo chmod -R 0777 /media/Myindex
sudo apt-get install cifs-utils
sudo mkdir /media/Ulaw
sudo chown -R nobody:nogroup /media/Ulaw
sudo chmod -R 0777 /media/Ulaw
Then I edited the fstab file by adding the following
//192.168.1.xxx/Myindex /media/Myindex cifs auto,uid=1000,username=[myuser],password=[mypass],iocharset=utf8,noperm 0 0
//192.168.1.xxx/Myindex/ULaw /media/ULaw cifs auto,uid=1000,username=[myuser],password=[mypass],iocharset=utf8,noperm 0 0
Results
I don't really understand why the share "Myindex" gets stale file handles and "Ulaw" does not. Interestingly when I boot or reboot, the drives don't mount and I have to enter this to get them to mount:
sudo mount -a
All I really want is for my drives to automatically mount when I boot up and stay mounted. That way I can use my ubuntu system for my school work rather than my Macbook. I have edited to fstab file so many times to get this to work but with no success.
Does anyone have an easier way to 'map a network drive' in ubuntu? or some sort of fix?