Re: systemd automount

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.

On Wed, 30 Dec 2020 23:28:11 +0800 Ed Greshko wrote:

> On 30/12/2020 22:09, François Patte wrote:

>> 192.168.1.16:/data /home/patte/data nfs noauto,rw,user,nofail,x-systemd.automount,x-systemd.mount-timeout=30 0 0

>> It works. If the server is down, no problem, the boot of the computer is OK.

>> But if the server gets down while the computer is working, this turns in an awful way: everything on the computer becomes very slow, opening a file manager takes ages, the ls command does no work and it is impossible to unmount the directory on which the server is mounted.

>> Did I forgot an option in the fstab? Is there a way to solve this problem without shuting down the computer (which also takes ages...).

> Try adding "soft"  to the options.

That will help yes, but you will still have timeouts.

A better choice would be to do the mount not directly under your homedir or
totally elsewhere, for example:

  /home/patte/net/data
  /data

Do not put a symlink ~/data pointing to the mountpoint: you will have the
same problem: 'ls --color=auto" and the file managers (as far as I know)
follow symlinks.

gvfsd (the gnome virtual filesystem) used to do its mount under ~/.gfvs,
but do it now under /run/user/$UID/gvfs

Using autofs instead of systemd-automount would have the advantage to
unmount automatically after some delay.

You can perhaps force the umount with: sudo umount --lazy /home/patte/data

-- 
francis
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux