Page 1 of 1

Automount SMB share fails, manual mount ok (Solved)

Posted: Thursday 04 April 2024 17:30
by njlammerts
I run 3 RPI with a smb mount/share to external NAS to make backup of SD Card and Domoticz Database/Scripts
RPI 4 (Bullseye) and RPI 3 (Buster) mount the share during boot.

RPI Zero 2W (Buster) has the same script, but does not mount during boot, but when I run "sudo mount -a" manual the share is mounted.

//172.16.10.120/Backup/Pi246 /mnt/WDCloud cifs credentials=/home/pi/.smbcredits 0 0

The Zero 2W has an Pi hat With 4xUSB and NIC to have 100Mb Nic access.

why does the RPI Zero 2W won't mount the share at boot and why does manual mount is ok?

Re: Automount SMB share fails, manual mount ok

Posted: Thursday 04 April 2024 19:15
by azonneveld
Is the line "//172.16.10.120/Backup/Pi246 /mnt/WDCloud cifs credentials=/home/pi/.smbcredits 0 0" in /etc/fstab ?

It is probably in the permissions of ".smbcredits"

Re: Automount SMB share fails, manual mount ok

Posted: Thursday 04 April 2024 21:47
by njlammerts
As I wrote in the in the first post,
i have 3 RPI's from who 2 make the connection and only one does not make a connection at boot, only manual with "sudo mount -a"
The mount cmd also uses the same line as in fstab, so it is not permission and/or in .smbcredits

Re: Automount SMB share fails, manual mount ok

Posted: Thursday 04 April 2024 22:53
by azonneveld
njlammerts wrote: Thursday 04 April 2024 21:47 As I wrote in the in the first post,
i have 3 RPI's from who 2 make the connection and only one does not make a connection at boot, only manual with "sudo mount -a"
The mount cmd also uses the same line as in fstab, so it is not permission and/or in .smbcredits
Is the difference in network connection, rpi3 wired, zero wireless?
Mounting might fail because network is not yet available.

Wait for network might help

Re: Automount SMB share fails, manual mount ok

Posted: Thursday 04 April 2024 23:14
by njlammerts
All the RPI's are wired connected
The option in raspi-config, system, network at boot = yes (Wait until network connection) did the trick, Big Thanks!!