You could trying putting your question on the Ask Ubuntu site...
More eyes on the problem, could help!

It's very puzzling why the manual mount cifs command works, but the equivalent systemd unit doesn't ... ??

Bob
Code: Select all
Unit]
Description=cifs mount @ /home/dave/shares/volume1
Before=remote-fs.target
BindsTo=network.target
After=network.target
[Mount]
What=//192.168.0.1/volume1
Where=/home/dave/shares/volume1
TimeoutSec=15s
Type=cifs
Options=rw,vers=1.0,credentials=/home/dave/volume1.smb,file_mode=0770,dir_mode=0770,auto
[Install]
WantedBy=multi-user.target
Code: Select all
-- Reboot --
Mar 07 14:02:04 dave-Aleena systemd[1]: Mounting cifs mount @ /home/dave/shares/volume1...
Mar 07 14:02:04 dave-Aleena systemd[1]: Mounted cifs mount @ /home/dave/shares/volume1.
Mar 07 14:34:26 dave-Aleena systemd[1]: Unmounting cifs mount @ /home/dave/shares/volume1...
Mar 07 14:34:26 dave-Aleena systemd[1]: home-dave-shares-volume1.mount: Succeeded.
Mar 07 14:34:26 dave-Aleena systemd[1]: Unmounted cifs mount @ /home/dave/shares/volume1.
-- Reboot --
Mar 07 14:35:08 dave-Aleena systemd[1]: Mounting cifs mount @ /home/dave/shares/volume1...
Mar 07 14:35:09 dave-Aleena mount[759]: mount error(2): No such file or directory
Mar 07 14:35:09 dave-Aleena mount[759]: Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
Mar 07 14:35:09 dave-Aleena systemd[1]: home-dave-shares-volume1.mount: Mount process exited, code=exited, status=32/n/a
Mar 07 14:35:09 dave-Aleena systemd[1]: home-dave-shares-volume1.mount: Failed with result 'exit-code'.
Mar 07 14:35:09 dave-Aleena systemd[1]: Failed to mount cifs mount @ /home/dave/shares/volume1.
Code: Select all
mkdir shares
Code: Select all
mkdir shares/volume1
Code: Select all
[Unit]
Description=cifs mount @ /home/dave/shares/volume1
Before=remote-fs.target
BindsTo=network.target
After=network.target
[Mount]
What=//192.168.0.1/volume1
Where=/home/dave/shares/volume1
TimeoutSec=15s
Type=cifs
Options=rw,vers=1.0,credentials=/home/dave/volume1.smb,file_mode=0770,dir_mode=0770,auto
[Install]
WantedBy=multi-user.target/[code][/list][/list][list]This file name path must also match the "where" in these files.
Code: Select all
user=xxxxxx
password=xxxxxx
Code: Select all
[Unit]
Description=cifs automount for /home/dave/shares/volume1
Requires=network-online.target
[Automount]
Where=/home/dave/shares/volume1
TimeoutIdleSec=15s
[Install]
WantedBy=multi-user.target
Code: Select all
<WINEARCH=winxx> <WINEPREFIX=<path to wine files> winecfg