Mounting a WD Livebook share on raspberry Pi using fstab

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/livebook

However, 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 0

Help 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

9

1 Answer

I now have this working.

There were two things which I changed:

  1. A typo in the /etc/fstab file .. the line in the question above is correct. however ...
  2. 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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like