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?
Automount SMB share fails, manual mount ok (Solved)
Moderators: leecollings, remb0
-
- 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)
Last edited by njlammerts on Thursday 18 April 2024 12:23, edited 1 time in total.
-
- 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
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"
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
-
- 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
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
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
-
- 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
Is the difference in network connection, rpi3 wired, zero wireless?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
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
-
- 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
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!!
The option in raspi-config, system, network at boot = yes (Wait until network connection) did the trick, Big Thanks!!
Who is online
Users browsing this forum: Google [Bot] and 1 guest