← Back to team overview

touch-packages team mailing list archive

[Bug 1458100] [NEW] Samba shares in fstab fail to mount on boot

 

You have been subscribed to a public bug:

I recently upgraded Ubuntu from 14.10 to 15.04.
I have 2 samba shares in /etc/fstab that used to be mounted automatically during boot.
After the upgrade, the shares are no longer mounted after boot.

Content of /etc/fstab :
//192.168.2.3/Data /media/Data cifs guest,uid=htpc,gid=htpc,iocharset=utf8,dir_mode=0777,noperm 0 0
//192.168.2.3/Backups /media/Backups cifs guest,uid=htpc,gid=htpc,iocharset=utf8,dir_mode=0777,noperm 0 0

When booting with the default options (systemd), these two shares are not mounted after boot.
But they mount properly when manually doing : mount -a

The shares get mounted properly when booting if I select Upstart in
GRUB.

It seems that systemd does not wait for the network to be up before
trying to establish the shares (and I imagine Upstart does wait for the
network).

Adding the option _netdev in /etc/fstab  did not solve the problem.

I fixed the problem by setting the shares as automount in /etc/fstab :
//192.168.2.3/Data /media/Data cifs guest,uid=htpc,gid=htpc,iocharset=utf8,dir_mode=0777,noperm,auto,x-systemd.automount 0 0
//192.168.2.3/Backups /media/Backups cifs guest,uid=htpc,gid=htpc,iocharset=utf8,dir_mode=0777,noperm,auto,x-systemd.automount 0 0

** Affects: systemd (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Samba shares in fstab fail to mount on boot
https://bugs.launchpad.net/bugs/1458100
You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu.


References