Hi, I’am using Transmission for downloading movies on my WDMyCloud system. To ease the job, I am use (on Raspberry Pi3) to:
Create the following folder /mnt/wdmycloud/Public in /mnt
Add the following line in /etc/fstab
//WDMYCLOUD/Public /mnt/wdmycloud/Public cifs guest,iocharset=utf8,gid=100,uid=1000,_netdev 0 0
Create some symbolic links in /home/osmc/Downloads to ease path entering on the Transmission web page
e.g. ln -s /mnt/wdmycloud/Public Public
e.g. ln -s “/mnt/wdmycloud/Public/Shared Movies” Movies
e.g. ln -s “/mnt/wdmycloud/Public/Shared Movies/Thriller” Thriller
With my new Vero 4K, I did not manage to get AutoMounting throught the above line instruction in fstab. It seems that there is a conflict with initramfs and the sequence…
Any idea ?
Best regards,
Olivier
Line change as follows:
/WDMYCLOUD/Public /mnt/wdmycloud/Public cifs guest,iocharset=utf8,gid=1000,uid=1000,_netdev 0 0,noauto,x-systemd.automount
But no automount. See below.
Line changes as follows but no improvement.
//WDMYCLOUD/Public /mnt/wdmycloud/Public cifs noauto,x-systemd.automount,guest,iocharset=utf8,gid=1000,uid=1000,_netdev 0 0
To summarie the situation, no automount at boot.
After a “sudo mount -a” everything is fine (in other words, fstab instructions are correct) So, how to make sure that fstab file is proceesed during boot process?
A look around suggests that this is a common issue. The general consensus seems to be that, even with the _netdev option, systemd is running the mount before the network is up.
The above thread offers a number of workarounds.
I think it might be down to a quirk of systemd. I’ll see if I can find out more.
So just to ensure once more, the automount is not designed to mount on boot but only when you access the folder.
So have you tried a ls /mnt/wdmycloud/Public after booting?
Also to make reading and verifying your fstab easier please use the “preformatted” text button when you post it
Here is what works on my setup without an issue //<IP of Server>/media /mnt/server_media cifs x-systemd.automount,noauto,iocharset=utf8,user,username=<user on server>,password=<your server password>,uid=osmc,gid=osmc,iocharset=utf8,file_mode=0770,dir_mode=0770 0 0