Automount SMB share fails, manual mount ok (Solved)

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
njlammerts
Posts: 149
Joined: Wednesday 12 August 2020 17:13
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Fryslan
Contact:

Automount SMB share fails, manual mount ok (Solved)

Post 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?
Last edited by njlammerts on Thursday 18 April 2024 12:23, edited 1 time in total.
azonneveld
Posts: 160
Joined: Wednesday 02 October 2019 7:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands
Contact:

Re: Automount SMB share fails, manual mount ok

Post 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"
rpi4 - zigbee2mqtt - roborock - espeasy - rfxcom - homewizard p1 - otgw - homebridge - surveillance station - egardia - goodwe - open weather map - wol - BBQ detection - rsync backup
njlammerts
Posts: 149
Joined: Wednesday 12 August 2020 17:13
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Fryslan
Contact:

Re: Automount SMB share fails, manual mount ok

Post 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
azonneveld
Posts: 160
Joined: Wednesday 02 October 2019 7:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands
Contact:

Re: Automount SMB share fails, manual mount ok

Post 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
rpi4 - zigbee2mqtt - roborock - espeasy - rfxcom - homewizard p1 - otgw - homebridge - surveillance station - egardia - goodwe - open weather map - wol - BBQ detection - rsync backup
njlammerts
Posts: 149
Joined: Wednesday 12 August 2020 17:13
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Fryslan
Contact:

Re: Automount SMB share fails, manual mount ok

Post 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!!
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest