Celeb Glow
news | March 15, 2026

cant get cifs to mount network drive during boot using fstab

Im trying to get a network share to mount on startup using cifs. I can get the share to mount after linux boots, but for some reason I cant get it to work when editing the /etc/fstab file.

Here's the line that works after the system boots

sudo mount -t cifs -o username=user,password=password //mycloud/drive//media/drive

Here's the line in the fstab file

//mycloud/drive /media/drive cifs username=user,password=password,_netdev

1 Answer

Figured out that cifs doesn't use _netdev so I found this post which uses x-systemd.automount instead

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy