Add _netdev to /etc/fstab like so...drhoeh wrote:Thanks for the help but I am not entirely sure how to do that. Do I just put "mount -a" in "sudo nano /etc/network/if-up.d/" or is there more to it? You will have to forgive me I am still very new at all of this.
I think there's also a problem with some of the current network updates. I seem to remember having the same issue after a recent update. I switched to NetworkManager and that fixed the problem as well as some others for me.drhoeh wrote:Thanks for the suggestion but when I tried _netdev but it did not auto mount at boot up. I still have to go in and type "sudo mount -a" to get the NAS on the PI.
put the following in /etc/network/if-up.d/mount_all_hack:drhoeh wrote:Thanks for the help but I am not entirely sure how to do that. Do I just put "mount -a" in "sudo nano /etc/network/if-up.d/" or is there more to it?
Code: Select all
#!/bin/bash /bin/mount --all &
Almost.drhoeh wrote:3. I am then going to execute the script with, "sudo chmod +x /etc/network/if-up.d/mount_all_hack"
4. Then sudo /etc/network/if-up.d/mount_all_hack
Did I get this right?
This is a known issue with the May 2015 release and another solution is given here.drhoeh wrote:I have a pi2 running raspbian and I have mapped it to a wd mycloud NAS. I entered the following in /etc/fstab
//myIP/public /home/pi/mynas/myshare cifs guest,workgroup=WORKGROUP, users,auto,user_xattr 0 0
I save and exit.
Then I enter sudo mount -a. Everything works just fine and all of my drives are mounted, however when I reboot the system nothing. I have to enter sudo mount -a every time I reboot the system.
Why do I have to remount the NAS after every reboot?
Any help would be greatly appreciated.
(missing leading "/", but nevermind)drhoeh wrote:thanks, I am still learning this stuff but, if I understand you right I am going to write a script. I want to be certain before I get myself into trouble.
I am going to create a file called
1. sudo mkdir etc/network/if-up.d