← Back to team overview

kernel-packages team mailing list archive

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

 

Public bug reported:

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

** Package changed: linux (Ubuntu) => systemd (Ubuntu)

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1458100

Title:
  Samba shares in fstab fail to mount on boot

Status in systemd package in Ubuntu:
  New

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


Follow ups

References