Cannot mount network share on boot
Posted: Thu Jun 14, 2018 1:24 pm
I have tried multiple walkthroughs on adding lines to fstab and on editing rc.local but so far nothing I have tried works. Even tried it as a chrontab task at one point.
I am trying to make it so that my raspberry pi mounts a folder from an external hard drive attached to my router's USB port (so not a NAS) on boot.
When I run the following command (password edited out obviously) after boot everything mounts up fine:
sudo mount -t cifs -o username=Plex,password=XXXXXXXX,vers=1.0 //192.168.1.1/Plex /home/pi/Plex/Library
But no matter what I do in terms of adding that command to fstab or rc.local it will not mount on boot. I always have to open a terminal and run it manually.
Any specific advice? I feel like there's probably just some "Duh!" thing I'm missing.
I am trying to make it so that my raspberry pi mounts a folder from an external hard drive attached to my router's USB port (so not a NAS) on boot.
When I run the following command (password edited out obviously) after boot everything mounts up fine:
sudo mount -t cifs -o username=Plex,password=XXXXXXXX,vers=1.0 //192.168.1.1/Plex /home/pi/Plex/Library
But no matter what I do in terms of adding that command to fstab or rc.local it will not mount on boot. I always have to open a terminal and run it manually.
Any specific advice? I feel like there's probably just some "Duh!" thing I'm missing.