![](https://seccdn.libravatar.org/avatar/77cb4da5f72bc176182dcc33f03a18f3.jpg?s=120&d=mm&r=g)
On 2024-07-18 11:23, mh@mike.franken.de wrote:
On Mittwoch, 17. Juli 2024 15:11:28 MESZ mh@mike.franken.de wrote:
On Dienstag, 16. Juli 2024 02:14:24 MESZ Rodney Baker wrote:
On Tuesday, 16 July 2024 02:10:43 ACST mh@mike.franken.de wrote:
On Montag, 15. Juli 2024 12:45:54 MESZ mh@mike.franken.de wrote:
On Samstag, 13. Juli 2024 22:44:23 MESZ mh@mike.franken.de [...]
Have you tried doing on-demand nfs mounts with systemd-mountd instead? I have that working here and it is seamless. It mounts the nfs shares when file/ folder access is requested by a user, and then unmounts them after a configurable period of time when no files are open (or when the system is shutting down). The same can be done with remote samba shares (I have both types of shares mounted that way). Yep, that is, what I am testing at the moment - but not with self created automount files. Instead I modified the entries in fstab and let systemd create the appropriate mount files. Found the solution in ArchWiki.
Nevertheless I wonder, what caused my setup to fail, though it had worked for a long time, i.e. what changed to cause the problem.
If users' home directories are mounted via nfs, it should still work because it will (or at least should) auto-mount at the appropriate time.
My home dir isn't on nfs, because this is a notebook, which is not always connected to the network, where my nfs server lives.
It needs the appropriate .mount and .automount files created in /etc/systemd/ system, but the syntax of those is straightforward and it seems to "Just Work".
It might be worth trying.
See above.
doesn't work for me - the system doesn't go to sleep (suspend.target: Job suspend.target/start failed with result 'dependency'), if any file is open on one of the mounted filesystems, because the share can't be unmounted in this case. And one of the reasons I send the system to sleep is, that I can seamlessly continue working after resume.
Try "umount --lazy" perhaps. It returns fast. -l, --lazy Lazy unmount. Detach the filesystem from the file hierarchy now, and clean up all references to this filesystem as soon as it is not busy anymore. -- Cheers / Saludos, Carlos E. R. (from Elessar, using openSUSE Leap 15.5)