You are not logged in.
Hi all,
New here. Hoping someone here can point out my potential fault with my fstab. When I shutdown, I have to wait 1m30s for a stop-job to run through. It's always the NAS mounts)
Have I made a mistake? I thought they were supposed to unmount when unused. The shares mount fine, they just don't seem to be letting go before shutdown (even if i wait a few minutes before shutdown). Any help is appreciated
Lines in /etc/fstab
//192.168.0.2/Videos /mnt/nas-videos cifs credentials=/home/matt/.smbcredentials,noauto,x-systemd.automount,x-systemd.device-timeout=30,x-systemd.requires=network-online.target,_netdev 0 0
//192.168.0.2/Music /mnt/nas-music cifs credentials=/home/matt/.smbcredentials,noauto,x-systemd.automount,x-systemd.device-timeout=30,x-systemd.requires=network-online.target,_netdev 0 0
Thanks in advance.
Last edited by itsmattson (2018-12-10 22:24:44)
Offline
I thought they were supposed to unmount when unused.
Nope, try "x-systemd.idle-timeout=5min"
However they should unmount before the network goes does, what raises the question how you configure the network.
Offline
Thanks for your thoughts, seth. I've added the idle timeout flag to my fstab entries.
So those flags aside, network shares I've mounted are supposed to automatically unmount when the network goes down during shutdown? Any chance you can point me in the right direction to figure out why that doesn't seem to occur?
Offline
Journal of the boot and again: "the question how you configure the network"
Offline
Thanks seth. Couldn't seem to figure it out so I went with the autofs package and it seems to be working quite well
Offline