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

AntAgna AntoineW at Campagna.org
Sun Aug 2 22:57:48 UTC 2015


Here is the requested journal
Normal boot with original fstab

** Attachment added: "journal.txt"
   https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1458100/+attachment/4437941/+files/journal.txt

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, 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



More information about the foundations-bugs mailing list