Quantcast
Channel: Active questions tagged mount+fstab - Ask Ubuntu
Viewing all articles
Browse latest Browse all 699

Why ubuntu server does not mount fstab samba share on boot?

$
0
0

Ciao,

I've a Raspberry Pi 4 running Ubuntu Server 22.04.2 LTS.

I need to mount a samba share at boot time, and I've followed instructions on this site at sections Mount password protected network folders: MountWindowsSharesPermanently

sudo apt-get install cifs-utilsnano ~/.smbcredentials # there i've added my credentialschmod 600 ~/.smbcredentialssudo nano /etc/fstabsudo mkdir /media/windowsshare

And I've added this line of code:

//{samba-share-ipaddress}/sharename /media/windowsshare cifs credentials=/home/{my-ubuntu-username}/.smbcredentials,iocharset=utf8 0 0 

When I execute the command sudo mount -a, the share is mounted correctly, but if I reboot, the folder is not mounted.

I've tried to add _netdev but without success:

//samba-share-ipaddress/sharename /media/windowsshare cifs credentials=/home/{my-ubuntu-username}/.smbcredentials,iocharset=utf8,_netdev 0 0 

How can I resolve this problem?

Thanks


Viewing all articles
Browse latest Browse all 699

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>