Hi all,
I’m using the following systemd units to mount a NAS device on start up:
[Unit]
Description=Automount daten share using SMB
ConditionPathExists=/ds/Daten
[Automount]
Where=/ds/Daten
TimeoutIdleSec=10
[Install]
WantedBy=multi-user.target
and:
[Unit]
Description=NAS SMB data share
#-Requires=dbus-org.freedesktop.nm-dispatcher.service
After=network-online.target
Wants=network-online.target
[Mount]
What=//192.168.0.7/Daten
Where=/ds/Daten
Type=cifs
Options=_netdev,iocharset=utf8,rw,file_mode=0777,dir_mode=0777,credentials=/home/andreash/smb.cred,vers=3.0
TimeoutSec=30
[Install]
WantedBy=default.target
this worked fine until a few weeks.
The mount works fine, until i open Dolphin. At this point the share is unmounted, mounted and unmounted again and so on.
Addition it is not longer possible to open any files with an application which is not Dolphin itself. Copy a file from the NAS to the local disk works, open a PDF from the NAS doesn’t work. Open the file on command line works.
Dolphin shows me the error:
Unit dbus-org.freedesktop.nm-dispatcher.service not found.
The status of the automount shows the following;
● ds-Daten.automount - Automount daten share using SMB
Loaded: loaded (/etc/systemd/system/ds-Daten.automount; enabled; preset: disabled)
Active: active (waiting) since Thu 2024-09-05 09:23:27 CEST; 17min ago
Invocation: 33ec24c07d7b4519bbf8e4963baa70b1
Triggers: ● ds-Daten.mount
Where: /ds/Daten
Sep 05 09:36:11 linux-pc systemd[1]: ds-Daten.automount: Got automount request for /ds/Daten, triggered by 2192 (Thread (pooled))
Sep 05 09:36:41 linux-pc systemd[1]: ds-Daten.automount: Got automount request for /ds/Daten, triggered by 2192 (Thread (pooled))
Sep 05 09:37:11 linux-pc systemd[1]: ds-Daten.automount: Got automount request for /ds/Daten, triggered by 2192 (Thread (pooled))
Sep 05 09:37:41 linux-pc systemd[1]: ds-Daten.automount: Got automount request for /ds/Daten, triggered by 2192 (Thread (pooled))
Sep 05 09:38:11 linux-pc systemd[1]: ds-Daten.automount: Got automount request for /ds/Daten, triggered by 2192 (Thread (pooled))
Sep 05 09:38:31 linux-pc systemd[1]: ds-Daten.automount: Got automount request for /ds/Daten, triggered by 3208 (dolphin)
Sep 05 09:39:11 linux-pc systemd[1]: ds-Daten.automount: Got automount request for /ds/Daten, triggered by 2192 (Thread (pooled))
Sep 05 09:39:41 linux-pc systemd[1]: ds-Daten.automount: Got automount request for /ds/Daten, triggered by 2192 (Thread (pooled))
Sep 05 09:40:02 linux-pc systemd[1]: ds-Daten.automount: Got automount request for /ds/Daten, triggered by 3234 (KIO::WorkerThre)
Sep 05 09:40:22 linux-pc systemd[1]: ds-Daten.automount: Got automount request for /ds/Daten, triggered by 3474 (KIO::WorkerThre)
the mount unit shows:
● ds-Daten.mount - NAS SMB data share
Loaded: loaded (/etc/systemd/system/ds-Daten.mount; enabled; preset: disabled)
Active: active (mounted) since Thu 2024-09-05 09:43:11 CEST; 2s ago
Invocation: f07cf0be0943458d9ae9d87ba48b3bfc
TriggeredBy: ● ds-Daten.automount
Where: /ds/Daten
What: //192.168.0.7/Daten
Tasks: 0 (limit: 38241)
Memory: 28K (peak: 1.5M)
CPU: 5ms
CGroup: /system.slice/ds-Daten.mount
Sep 05 09:43:11 linux-pc systemd[1]: Mounting NAS SMB data share...
Sep 05 09:43:11 linux-pc systemd[1]: Mounted NAS SMB data share.
I have tried to add the nm-dispatcher.service to the mount unit
Requires = dbus-org.freedesktop.nm-dispatcher.service
but the error is still the same.
I would be happy to get a solution or a hint to solve my problem. Even google was not able to help me ( or I am googleing for the wrong topic xD). I hope I have provided all information needed to understand the problem, if not feel free to ask.
Thanks in advanced.
Leonerd