Mount units must be named after the mount point directories they control. Example: the mount point /home/lennart must be configured in a unit file home-lennart.mount . For details about the escaping logic used to convert a file system path to a unit name, see systemd.unit(5) .
That means you need to name your mount unit file in this way: home-alastair-NFS_from_ibmserv_134_alastair.mount
Hi Karl,
Not sure about enable but could not start automount. I now have result:-
alastair@HP-Z640-1:~> journalctl -xe
Hint: You are currently not seeing messages from other users and the system.
Users in the 'systemd-journal' group can see all messages. Pass -q to
turn off this notice.
Nov 27 19:37:24 HP-Z640-1 plasmashell[2214]: Could not find the Plasmoid for Plasma::FrameSvgItem(0x5632958e4fa0) >
Nov 27 19:39:10 HP-Z640-1 sudo[5028]: pam_kwallet5(sudo:auth): pam_kwallet5: pam_sm_authenticate
Nov 27 19:39:10 HP-Z640-1 sudo[5028]: pam_kwallet5(sudo:auth): pam_kwallet5: Refusing to do anything for the root >
Nov 27 19:39:15 HP-Z640-1 sudo[5028]: alastair : TTY=pts/1 ; PWD=/home/alastair ; USER=root ; COMMAND=/usr/bin/sys>
Nov 27 19:39:15 HP-Z640-1 sudo[5028]: pam_kwallet5(sudo:setcred): pam_kwallet5: pam_sm_setcred
Nov 27 19:39:15 HP-Z640-1 sudo[5028]: pam_unix(sudo:session): session opened for user root(uid=0) by alastair(uid=>
Nov 27 19:39:15 HP-Z640-1 sudo[5028]: pam_kwallet5(sudo:session): pam_kwallet5: pam_sm_open_session
Nov 27 19:39:15 HP-Z640-1 sudo[5028]: pam_kwallet5(sudo:session): pam_kwallet5: not a graphical session, skipping.>
Nov 27 19:39:16 HP-Z640-1 sudo[5028]: pam_unix(sudo:session): session closed for user root
Nov 27 19:39:16 HP-Z640-1 sudo[5028]: pam_kwallet5(sudo:session): pam_kwallet5: pam_sm_close_session
Nov 27 19:39:16 HP-Z640-1 sudo[5028]: pam_kwallet5(sudo:setcred): pam_kwallet5: pam_sm_setcred
Nov 27 19:39:35 HP-Z640-1 plasmashell[2214]: qml: PlasmaExtras.ScrollArea is deprecated. Use PlasmaComponents3.Scr>
Nov 27 19:39:35 HP-Z640-1 plasmashell[2214]: file:///usr/share/plasma/plasmoids/org.kde.plasma.kicker/contents/ui/>
Nov 27 19:39:35 HP-Z640-1 plasmashell[2214]: libpng warning: iCCP: known incorrect sRGB profile
Nov 27 19:39:35 HP-Z640-1 plasmashell[2214]: libpng warning: known incorrect sRGB profile
Nov 27 19:39:35 HP-Z640-1 plasmashell[2214]: libpng warning: profile matches sRGB but writing iCCP instead
Nov 27 19:39:37 HP-Z640-1 systemd[1987]: Started Konsole - Terminal.
░░ Subject: A start job for unit UNIT has finished successfully
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit UNIT has finished successfully.
░░
░░ The job identifier is 352.
Nov 27 19:40:19 HP-Z640-1 sudo[5208]: alastair : TTY=pts/1 ; PWD=/home/alastair ; USER=root ; COMMAND=/usr/bin/sys>
Nov 27 19:40:19 HP-Z640-1 sudo[5208]: pam_kwallet5(sudo:setcred): pam_kwallet5: pam_sm_setcred
Nov 27 19:40:19 HP-Z640-1 sudo[5208]: pam_unix(sudo:session): session opened for user root(uid=0) by alastair(uid=>
Nov 27 19:40:19 HP-Z640-1 sudo[5208]: pam_kwallet5(sudo:session): pam_kwallet5: pam_sm_open_session
Nov 27 19:40:19 HP-Z640-1 sudo[5208]: pam_kwallet5(sudo:session): pam_kwallet5: not a graphical session, skipping.>
Nov 27 19:40:20 HP-Z640-1 sudo[5208]: pam_unix(sudo:session): session closed for user root
Nov 27 19:40:20 HP-Z640-1 sudo[5208]: pam_kwallet5(sudo:session): pam_kwallet5: pam_sm_close_session
Nov 27 19:40:20 HP-Z640-1 sudo[5208]: pam_kwallet5(sudo:setcred): pam_kwallet5: pam_sm_setcred
Nov 27 19:40:27 HP-Z640-1 sudo[5243]: alastair : TTY=pts/1 ; PWD=/home/alastair ; USER=root ; COMMAND=/usr/bin/sys>
Nov 27 19:40:27 HP-Z640-1 sudo[5243]: pam_kwallet5(sudo:setcred): pam_kwallet5: pam_sm_setcred
Nov 27 19:40:27 HP-Z640-1 sudo[5243]: pam_unix(sudo:session): session opened for user root(uid=0) by alastair(uid=>
Nov 27 19:40:27 HP-Z640-1 sudo[5243]: pam_kwallet5(sudo:session): pam_kwallet5: pam_sm_open_session
Nov 27 19:40:27 HP-Z640-1 sudo[5243]: pam_kwallet5(sudo:session): pam_kwallet5: not a graphical session, skipping.>
Nov 27 19:40:27 HP-Z640-1 sudo[5243]: pam_unix(sudo:session): session closed for user root
Nov 27 19:40:27 HP-Z640-1 sudo[5243]: pam_kwallet5(sudo:session): pam_kwallet5: pam_sm_close_session
Nov 27 19:40:27 HP-Z640-1 sudo[5243]: pam_kwallet5(sudo:setcred): pam_kwallet5: pam_sm_setcred
lines 1487-1526/1526 (END)
alastair@HP-Z640-1:~> sudo journalctl -b -u 'home-alastair-NFS_from_ibmserv_134_alastair*'
[sudo] password for root:
Nov 27 19:40:19 HP-Z640-1 systemd[1]: Mounting nfs mount for 134 /home/alastair...
Nov 27 19:40:20 HP-Z640-1 systemd[1]: Mounted nfs mount for 134 /home/alastair.
Nov 27 19:40:27 HP-Z640-1 systemd[1]: home-alastair-NFS_from_ibmserv_134_alastair.automount: Path /home/alastair/N>
Nov 27 19:40:27 HP-Z640-1 systemd[1]: Failed to set up automount nfs automount for 134 /home/alastair.
alastair@HP-Z640-1:~>
I have something new now which seems correct but why I have no idea:-
alastair@HP-Z640-1:~> sudo journalctl -b -u 'home-alastair-NFS_from_ibmserv_134_alastair*'
Nov 27 19:40:19 HP-Z640-1 systemd[1]: Mounting nfs mount for 134 /home/alastair...
Nov 27 19:40:20 HP-Z640-1 systemd[1]: Mounted nfs mount for 134 /home/alastair.
Nov 27 19:40:27 HP-Z640-1 systemd[1]: home-alastair-NFS_from_ibmserv_134_alastair.automount: Path /home/alastair/N>
Nov 27 19:40:27 HP-Z640-1 systemd[1]: Failed to set up automount nfs automount for 134 /home/alastair.
Nov 27 20:35:23 HP-Z640-1 systemd[1]: home-alastair-NFS_from_ibmserv_134_alastair.automount: Path /home/alastair/N>
Nov 27 20:35:23 HP-Z640-1 systemd[1]: Failed to set up automount nfs automount for 134 /home/alastair.
lines 1-6/6 (END)...skipping...
Nov 27 19:40:19 HP-Z640-1 systemd[1]: Mounting nfs mount for 134 /home/alastair...
Nov 27 19:40:20 HP-Z640-1 systemd[1]: Mounted nfs mount for 134 /home/alastair.
Nov 27 19:40:27 HP-Z640-1 systemd[1]: home-alastair-NFS_from_ibmserv_134_alastair.automount: Path /home/alastair/NFS_from_ibmserv_134_alastair is already a mount point, refusing start.
Nov 27 19:40:27 HP-Z640-1 systemd[1]: Failed to set up automount nfs automount for 134 /home/alastair.
Nov 27 20:35:23 HP-Z640-1 systemd[1]: home-alastair-NFS_from_ibmserv_134_alastair.automount: Path /home/alastair/NFS_from_ibmserv_134_alastair is already a mount point, refusing start.
Nov 27 20:35:23 HP-Z640-1 systemd[1]: Failed to set up automount nfs automount for 134 /home/alastair.
However the mount is now working. I have no idea why there was a delay but fingers crossed I should be OK.
Hi Karl,
After two reboots, both of which were successful in enabling my NFS mount I think I can sigh with relief on NFS. However when running the two reboots I found I am still getting the 90 second delay before shut down completes, which was the reason for my starting this thread.
Since I do no longer have any problems with NFS now I need to find out what is not shutting down.
On all the previous shut downs since I started this thread all have a delay of 1m 30s count down while Session 3 of User alastair is named as the cause. Would it be possible to find out what Session 3 is?
alastair@HP-Z640-1:~> journalctl -b -1 -u 'session*' -g Session
Hint: You are currently not seeing messages from other users and the system.
Users in the 'systemd-journal' group can see all messages. Pass -q to
turn off this notice.
-- No entries --
alastair@HP-Z640-1:~>
Good point. Never sure when to run this as sudo but the command now tells me what seems to reflect my experience:-
alastair@HP-Z640-1:~> sudo journalctl -b -1 -u 'session*' -g Session
[sudo] password for root:
Nov 27 20:58:51 HP-Z640-1 systemd[1]: Started Session 1 of User sddm.
Nov 27 20:58:57 HP-Z640-1 systemd[1]: Started Session 3 of User alastair.
Nov 27 21:04:47 HP-Z640-1 systemd[1]: Stopping Session 3 of User alastair...
Nov 27 21:06:17 HP-Z640-1 systemd[1]: Stopped Session 3 of User alastair.
alastair@HP-Z640-1:~>
What I need to know is more about what is running Session 3. It looks to me like one of my autostart commands. I now only have KeePassXC and pCloud. I shall remove these from my autostart folder and see if that pins it down.
You have several autostart services, which may cause issues. Infamous host erlangen has:
karl@erlangen:~> systemctl --user list-units --all '*@autostart.service'
UNIT LOAD ACTIVE SUB DESCRIPTION
app-at\x2dspi\x2ddbus\x2dbus@autostart.service loaded inactive dead AT-SPI D-Bus Bus
app-geoclue\x2ddemo\x2dagent@autostart.service loaded active running Geoclue Demo agent
app-kaccess@autostart.service loaded active running Accessibility
app-klipper@autostart.service loaded inactive dead Klipper
app-konqy_preload@autostart.service loaded inactive dead Konqueror preloading during desktop environment startup
app-org.kde.kalendarac@autostart.service loaded inactive dead Calendar Reminders
app-xprop\x2dkde\x2dfull\x2dsession@autostart.service loaded inactive dead Set KDE_FULL_SESSION=1
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
7 loaded units listed.
To show all installed unit files use 'systemctl list-unit-files'.
karl@erlangen:~>
The above services don’t cause issues here. You may compare your list of services to the above. For troubleshooting temporarily disable the additional services.