I have managed to successfully mount a WD Livebook share (called tv with Public access) using the following command:
sudo mount -t cifs -o credentials=/smb-credentials,dir_mode=0777,file_mode=0777,rw,soft,sec=ntlm,vers=1.0 //192.168.0.18/tv /home/pi/livebookHowever, I would like to do this automatically by amending /etc/fstab. But doing that just doesn't seem to work. Here is the line I added to the fstab file:
//192.168.0.18/tv /home/pi/livebook cifs credentials=/smb-credentials,dir_mode=0777,file_mode=0777,rw,soft,sec=ntlm,vers=1.0 0 0Help would be much appreciated. I'm new to this but have got shares on a WDMirror mounting automatically but not with the WDLiveBook? Seems very odd.
Cheers
Andre
91 Answer
I now have this working.
There were two things which I changed:
- A typo in the /etc/fstab file .. the line in the question above is correct. however ...
- More importantly after some testing I created a new directory /wdmirror changed its ownership to the user I log in with pi. Changed permissions to read and write as well. Using the /wdmirror directory instead of /home/pi/livebook worked fine. It may something about the home directory it doesn't like - I'm no expert so will need to read more about that.
The correct line in fstab is now:
//192.168.0.18/tv /wdmirror cifs credentials=/smb-credentials,dir_mode=0777,file_mode=0777,rw,soft,sec=ntlm,vers=1.0 0 0