Hello. I am trying to mount a NAS drive that is connected to the local network. I can mount it manually using sudo mount -t command but that is not good since I need the drive to automatically mount when raspberry PI is powered.
I have read this article:
https://help.ubuntu.com/community/MountWindowsSharesPermanently
and I have modified my /etc/fstab
I have tried to reboot the raspberry PI a few times but it does not sucessfully mount the share after the startup.
However, when I type sudo mount -a, it mounts and I can see all my files in /nfs/temp-share folder.Shouldnt the mount -a be called after the startup??
Could the problem be that in order to connect to network drive I need to be connected to wifi (I use wifi instead of ethernet cable). and since the WIFI takes some time to connect, the fstab mount happens before the wifi manages to connect to the local network therefore failing to mount the network drive? Is that a possibility? If so, what are the options to solve this
I have read this article:
https://help.ubuntu.com/community/MountWindowsSharesPermanently
and I have modified my /etc/fstab
Code:
proc /proc proc defaults 0 0
PARTUUID=645ce3d5-01 /boot vfat defaults 0 2
PARTUUID=645ce3d5-02 / ext4 defaults,noatime 0 1
//192.168.50.230/share_name /nfs/temp-share cifs username=name,password=pass,iocharset=utf8 0 0
# a swapfile is not a swap partition, no line here
# use dphys-swapfile swap[on|off] for that
However, when I type sudo mount -a, it mounts and I can see all my files in /nfs/temp-share folder.Shouldnt the mount -a be called after the startup??
Could the problem be that in order to connect to network drive I need to be connected to wifi (I use wifi instead of ethernet cable). and since the WIFI takes some time to connect, the fstab mount happens before the wifi manages to connect to the local network therefore failing to mount the network drive? Is that a possibility? If so, what are the options to solve this