← Back to team overview

touch-packages team mailing list archive

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

 

interfaces.d is empty

Here is the content of /etc/network/interfaces :
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

# local network
iface eth1 inet static
  address 192.168.2.2
  netmask 255.255.255.0

# wireless wlan0
#allow-hotplug wlan0
iface wlan0 inet static
  address 192.168.4.1
  netmask 255.255.255.0


NetworkManager is not installed on my system (I removed it using apt-get).
This system acts as WiFi Access Point and NetworkManager prevented me from configuring the wifi card in the proper mode.

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

Title:
  Samba shares in fstab fail to mount on boot

Status in systemd package in Ubuntu:
  Incomplete

Bug description:
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1458100/+subscriptions


References