this is getting really wired now. I am one step further but have not achieved the main goal.
It works if I perform a manual mount once the system is started (I moved user/pw to a credentials file) - option “noserverino” is also important. Without the files are visible but not accessible.:
sudo mount -t cifs -o rw,vers=3.0,noserverino,uid=osmc,gid=osmc,credentials=/root/.smbcredentials //192.168.253.1/FRITZ.NAS/HDD4TB/mount /mnt/mount_fritz
But if I try the following both mount options via it does not work:
Option 1:
//192.168.253.1/FRITZ.NAS/HDD4TB/mount /mnt/mount_fritz cifs rw,iocharset=utf8,vers=3.0,noserverino,uid=osmc,gid=osmc,credentials=/root/.smbcredentials 0 0
Option 2:
//192.168.253.1/FRITZ.NAS/HDD4TB/mount /mnt/mount_fritz cifs systemd.automount,noauto,rw,iocharset=utf8,vers=3.0,noserverino,uid=osmc,gid=osmc,credentials=/root/.smbcredentials 0 0
Checking the status via results into two different messages:
osmc@osmc:/mnt/mount_fritz$ sudo systemctl status mnt-mount_fritz.mount
Output for Option 1:
- mnt-mount_fritz.mount - /mnt/mount_fritz
Loaded: loaded (/etc/fstab; generated)
Active: failed (Result: exit-code) since Tue 2021-10-19 19:14:14 CEST; 2min 42s ago
Where: /mnt/mount_fritz
What: //192.168.253.1/FRITZ.NAS/HDD4TB/mount
Docs: man:fstab(5)
man:systemd-fstab-generator(8)
Oct 19 19:14:13 osmc systemd[1]: Mounting /mnt/mount_fritz…
Oct 19 19:14:14 osmc mount[360]: mount error(101): Network is unreachable
Oct 19 19:14:14 osmc mount[360]: Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Oct 19 19:14:14 osmc systemd[1]: mnt-mount_fritz.mount: Mount process exited, code=exited, >status=32/n/a
Oct 19 19:14:14 osmc systemd[1]: mnt-mount_fritz.mount: Failed with result ‘exit-code’.
Oct 19 19:14:14 osmc systemd[1]: Failed to mount /mnt/mount_fritz.
Output for Option 2:
- mnt-mount_fritz.mount - /mnt/mount_fritz
Loaded: loaded (/etc/fstab; generated)
Active: inactive (dead)
Where: /mnt/mount_fritz
What: //192.168.253.1/FRITZ.NAS/HDD4TB/mount
Docs: man:fstab(5)
man:systemd-fstab-generator(8)
For the first option the network seems not yet to be loaded. That I understood and added “systemd.automount,noauto” to the options. But it does not help. I do not really see an error there but the mounted folder is just empty. No folders visible at all (also not as root)
Anyone any idea?
Thanks a lot.
Tombar