P
P
Pista2020-04-01 21:01:20
webdav
Pista, 2020-04-01 21:01:20

How to automatically mount Webdav after reboot?

I use Centos 7, after reboot the mount fails.
I tried to prescribe autorun via etc / fstab

Option 1
https://webdav.yandex.ru:443 /mnt/yandex davfs user,rw,noauto 0 0

No result, after reboot

Option two flies
https://webdav.yandex.ru :443 /mnt/yandex davfs rw,uid=0,gid=0,file_mode=0660,dir_mode=0770 0 0

VPS did not start at all with this parameter, connected via VNC and demolished the line

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
pfg21, 2020-04-02
@Pista

to register in fstab _netdev - the requirement to mount devices only after starting the network.
the fstab mount goes very early - the network is down yet, webdav is not available and the mount fails.
write in the likeness https://askubuntu.ru/questions/37130/cifz-montirue...
if Linux is modern, then it is better to write systemd.mount everything is there.

D
Drno, 2020-04-01
@Drno

Script in bash and then in cron?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question