touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #83618
[Bug 1458100] Re: Samba shares in fstab fail to mount on boot
With the original (failing) fstab, can you please do a boot, log in, do
sudo journalctl -b > /tmp/journal.txt
and attach /tmp/journal.txt here? Thanks!
** Changed in: systemd (Ubuntu)
Status: New => Incomplete
--
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