Hi
I have two machines, one NUC 12th gen pro “wall street canyon” with an 1240P CPU/GPU and a B550 AMD platform Ryzen 5600 machine. Both are running Fedora 38 KDE (the only diff is that the AMD machine is using X11 because while color profiles can be applied in Wayland, they don’t apply gamma / brightness correctly and as such photo editing is being done on the AMD machine).
The AMD machine is connected via ethernet. On the NUC it doesn’t matter, I’ve tried both and the difference is: using wifi the network shares are never mounted, using ethernet they are on about half of the boots. The AMD machine has never failed in mounting the network share.
Both originally had this line in /etc/fstab
:
//192.168.50.2/obsvault /home/to/hrod_obsvault cifs uid=1000,gid=1000,credentials=/home/to/.smb,iocharset=utf8,vers=3.0 0 0
(Now only the AMD machine has it) . For the NUC I’ve tried altering the line to include _netdev
(does nothing for this issue) and x-systemd.requires=network-online.target
though NetworkTarget indicates fstab will employ it automatically.
sudo systemctl is-enabled NetworkManager-wait-online.service systemd-networkd-wait-online.service
replies enabled, disabled.
I tried this whole thing nofail,x-systemd.automount,x-systemd.requires=network-online.target,x-systemd.device-timeout=10 0 0
but it doesn’t make a difference to the NUC machine, if on wifi it will 100% of the time say mount error(101): Network is unreachable
and if on ethernet around half times.
I tried making a systemd service unit that has
After=network-online.target
Wants=network-online.target
and it yields the same result, mount does not wait until the NUC has established a network connection properly.
I’ve currently “solved” it by a systemd service unit with a timer that runs 30 secs after boot (and then unmounts on power off) but I feel it would be nice if the NUC could work as flawlessly as the AMD machine. I suspect that the AMD machine is as incapable of waiting for the network to be online and is merely faster at getting online, partially because the NUC sometimes succeeds when using ethernet, but I don’t know that.
I’ve also tried to use nfs instead of samba, it makes no difference. If one samba share and one nfs share they will always both work or both fail (due to network unavailable when mount attempts to happen).
What words of wisdom have thee? : )