Morning
i have a pi 2 running Rasbian.
i have a windows 10 box with 3tb usb drive which is shared with no credentials needed
i mount this on my pi in fstab on boot using cifs
//192.168.1.15/nas /media/nas cifs guest,uid=1000,iocharset=utf8 0 0
after booting up this work great. i can navigate to /media/nas and get all the files on my windows usb drive.
The problem
after a certain amount of time. Not sure how long, if i ssh back onto my pi i can no longer access the usb drive, in fact if i even try to run an ls -l in the /media directory the pi just sits there, i can't control-x out or anything? i can quit the shell and reconnect and can browse anywhere else, the pi is totally responsive apart from the mount point. apache still running, openvpn still running. The share is still accessible on the network from my mac and my nexus 7
things I've tried.
umount /media/nas this says the drive is busy
umount -l /media/nas this unmount works ok
mount -a this then just sits there like when i try and list the contents, i have to quit the terminal and connect again
a reboot fixes the problem, I can browse the mount again straight away...it just seems to timeout after a certain amount of time...not even sure how long
what i m currently trying.
I've added a cronjob to echo a textfile that is on the mount, every 10 minutes...really don't want to do this, would prefer to know what the problem is...not even sure its going to work either...
Im not an expert by any means....
any help would be appreciated
Thanks
Phil
****SOLVED thanks to JimmyN
USB hard drive was 'selective sleeping' on windows 10 machine
To change individual items (custom plan) go to Control Panel>System and Security>Power Options and see which plan is selected. Click on the "Change plan settings" link for it.
When the "Change Settings" dialog box comes up click on the "Change advanced power settings" link. Scroll down the list to "USB Settings>USB selective suspend setting". It will likely show "Setting: Enabled". Click on that and change it to "Disabled". Click "Apply" then "OK" your way back out of everything and you should be set, it will no longer power down the USB root hubs.