Mounting network drive at boot fails but manually works

Hi all,

I try to mount a network drive for NCP backup purposes. My /etc/fstab looks like the following:

// /media/fritznas cifs defaults,credentials=/home/pi/.smbcredentials,uid=1000,gid=1000,_netdev,vers=1.0 0 0

when manually mounting with

sudo mount -av

it works properly.

But when rebooting the share is not mounted. I don’t understand why…

I made the experience, that very often a required network connection hasn’t been established at the time the fstab file is processed, so that the drive couldn’t be mounted. Check the boot log of your server and make sure that the external file system is mounted right after a working network connection has been confirmed.