Добавил в файл
/etc/davfs2/secrets
Код: Выделить всё
# personal webdav, application password
/mnt/yandex.disk/ МойЛогин МойПароль
# older versions used URL, it is equivalent for compatibility reasons
#https://webdav.yandex.ru МойЛогин МойПароль
Создал файл
/etc/systemd/system/mnt-dav.mount
с таким содержанием
Код: Выделить всё
[Unit]
Description=Mount personal Nextcloud WebDAV
After=network-online.target
Wants=network-online.target
[Mount]
What=https://webdav.yandex.ru/
Where=/mnt/yandex.disk
Options=noauto,user,uid=МойЛогин,gid=МойЛогин
Type=davfs
TimeoutSec=60
[code][Install]
WantedBy=remote-fs.target
Создал файл
/etc/systemd/system/mnt-dav.automount
с таким содержанием
Код: Выделить всё
[Unit]
Description=Mount personal Nextcloud WebDAV automount
After=network-online.target
Wants=network-online.target
[Automount]
Where=/mnt/yandex.disk
TimeoutIdleSec=300
[Install]
WantedBy=remote-fs.target
Но когда ввожу команды, то на третей ошибка:
Код: Выделить всё
sana@LinuxHomeOlga:~$ sudo systemctl enable mnt-dav.automount
sana@LinuxHomeOlga:~$ sudo systemctl start mnt-dav.automount
Failed to start mnt-dav.automount: Unit mnt-dav.automount is not loaded properly: Invalid argument.
See system logs and 'systemctl status mnt-dav.automount' for details.
sana@LinuxHomeOlga:~$