I dont understand the systemd part, but am I correct in guessing that your music filesystem is on another computer and you are doing some sort of mount like nfs across a network?
If so, I would be looking at whether it is spending a lot of time getting dhcp up on that network.
You may get some clues if you look at dmesg
[ 124.533686] CIFS: No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3.1.1), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3.1.1 (or even SMB3 or SMB2.1) specify vers=1.0 on mount.
[ 124.533688] CIFS: enabling forceuid mount option implicitly because uid= option is specified
[ 124.533689] CIFS: enabling forcegid mount option implicitly because gid= option is specified
[ 124.533690] CIFS: Attempting to mount //192.168.68.15/Music
The timestamps show that is not consuming much time.
I wonder where else we can look to try and see what is going slow?
Systemd logs maybe?
Or, when the computer is sitting there taking 2 mins to get to the login screen, can you ssh into it and look at what processes are consuming time ( eg with top)
I had modified the .mount and .automount files so I put them back the way I started with and now I don’t have the delay is starting the computer but the delay happens if I start dolphin right away. If I wait a couple of minutes dolphin starts right up.
Here are the files as they exist now.
[demo@Manjaro ~]$ cat /etc/systemd/system/home-demo-mnt-server-music.automount
[Unit]
Descripion=server music mount
[Automount]
Where=/home/demo/mnt/server/music
TimeoutIdleSec=10
[Install]
WantedBy=multi-user.target
[demo@Manjaro ~]$
[demo@Manjaro ~]$
[demo@Manjaro ~]$ cat /etc/systemd/system/home-demo-mnt-server-music.mount
[Unit]
Description=server music mount
After=network-online.target
Wants=network-online.target
[Mount]
What=//192.168.68.15/Music
Where=/home/demo/mnt/server/music
Type=cifs
Options=rw,file_mode=0700,dir_mode=0700,uid=1000,gid=1000,iocharset=utf8,_netdev,vers=3.0
TimeoutSec=30
[Install]
WantedBy=multi-user.target
All my music and movies and stuff are on a NAS share…
But I use NFS…
I just export the “parent” and mount it on my Ubuntu 24.04 via /etc/fstab…
I never see any delays… In some older versions of Ubuntu - the mount argument in /etc/fstab didn’t work for some reason… but it does on 24.04 and it worked on Pop!_OS 22.04 when I was running that…
I’d always favour NFS over SMB/CIFS anyway… Unless your file server is a Windows machine I guess - you’re stuck with CIFS?
I’m lazy - how I usually format my /etc/fstab is I manually mount the NFS share first time, then “tail -1” my /etc/mtab - then append that last line to /etc/fstab - and it mounts on boot :
How long before the SystemD twonks disable /etc/fstab and do it all through SystemD? That’s probably the day I opt for a non SystemD focussed distro!