Mounting a CIFS share at boot via /etc/fstab can often lead to issues if the network isn't ready.
A more reliable solution is to create a systemd mount unit that ensures the network is online before attempting to mount.
The process involves creating a credentials file, creating the mount point, creating a systemd mount unit, enabling the mount, and verifying the mount.
Using this method ensures your CIFS mounts only attempt to initialize when the network is available, solving common boot-time issues.