Automount webdav server on startup with internet

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








3















What I am trying to do?



making the https://dav.example.com/ automount on startup and without asking user credentials.



what steps I've undertaken?

I followed official archlinux wiki to setup my davs

steps:



  • installed davfs2

  • added myself to group "network":
    usermod -a -G network myusername


  • added webdav server to /etc/fstab:


https://webdav.example.com /home/username/webdav davfs user,noauto,uid=username,file_mode=600,dir_mode=700 0 1



  • created secret file in my /home/username/ and added credentials:
    mkdir ~/.davfs2/

    echo "https://webdav.example.com webdavuser webdavpassword" >> ~/.davfs2/secrets

    chmod 0600 ~/.davfs2/secrets

  • mounted my dav
    mount ~/MyDav

what happens?

When restart my pc and when startup has been completed I open nautilus but webdav server is not mounted. I have to mount it manually from the terminal on each restart. This is normal because I set noauto in fstab line. However, If I set auto instead, it will mount but fail in the process and return error on boot because mounting require internet connection therefore return error "failed mounting". So both auto and noauto have the same results for me.

What I need now is to make webdav server automount when internet connection has been established.

some suggested using _netdev on fstab line. I did, but no change.

Maybe worthmentioning that when I run mount ~/MyWebDav from the terminal it mount without asking credintials, but when run mount -a it ask for credintials and mount if they are correct.



I need to make the webdav server https://dav.example/ automount on startup only when internet connection has been occurred.










share|improve this question
























  • You said you tried the _netdev option, can you post exactly what you tried?

    – fooot
    Dec 20 '16 at 15:53











  • nevermind friend. I just fixed it somehow. I enabled NetworkManager-wait-online.service , and set noauto to the fstab line... this solution for who search google and find this question. also do not forget to copy secrets file from /etc/davfs2/secrets to ~/.davfs2/secrets...and not just creating it instead because it won't work. and insert you keys in the copied file.

    – Stephan rog
    Dec 20 '16 at 20:03











  • also do not forget to make group davfs2 and add yourself to it, reboot pc, and should work. also I followed this guide doc.owncloud.org/server/latest/user_manual/files/…

    – Stephan rog
    Dec 20 '16 at 20:09











  • Glad you got it worked out, feel free to post your solution as an answer.

    – fooot
    Dec 20 '16 at 20:13

















3















What I am trying to do?



making the https://dav.example.com/ automount on startup and without asking user credentials.



what steps I've undertaken?

I followed official archlinux wiki to setup my davs

steps:



  • installed davfs2

  • added myself to group "network":
    usermod -a -G network myusername


  • added webdav server to /etc/fstab:


https://webdav.example.com /home/username/webdav davfs user,noauto,uid=username,file_mode=600,dir_mode=700 0 1



  • created secret file in my /home/username/ and added credentials:
    mkdir ~/.davfs2/

    echo "https://webdav.example.com webdavuser webdavpassword" >> ~/.davfs2/secrets

    chmod 0600 ~/.davfs2/secrets

  • mounted my dav
    mount ~/MyDav

what happens?

When restart my pc and when startup has been completed I open nautilus but webdav server is not mounted. I have to mount it manually from the terminal on each restart. This is normal because I set noauto in fstab line. However, If I set auto instead, it will mount but fail in the process and return error on boot because mounting require internet connection therefore return error "failed mounting". So both auto and noauto have the same results for me.

What I need now is to make webdav server automount when internet connection has been established.

some suggested using _netdev on fstab line. I did, but no change.

Maybe worthmentioning that when I run mount ~/MyWebDav from the terminal it mount without asking credintials, but when run mount -a it ask for credintials and mount if they are correct.



I need to make the webdav server https://dav.example/ automount on startup only when internet connection has been occurred.










share|improve this question
























  • You said you tried the _netdev option, can you post exactly what you tried?

    – fooot
    Dec 20 '16 at 15:53











  • nevermind friend. I just fixed it somehow. I enabled NetworkManager-wait-online.service , and set noauto to the fstab line... this solution for who search google and find this question. also do not forget to copy secrets file from /etc/davfs2/secrets to ~/.davfs2/secrets...and not just creating it instead because it won't work. and insert you keys in the copied file.

    – Stephan rog
    Dec 20 '16 at 20:03











  • also do not forget to make group davfs2 and add yourself to it, reboot pc, and should work. also I followed this guide doc.owncloud.org/server/latest/user_manual/files/…

    – Stephan rog
    Dec 20 '16 at 20:09











  • Glad you got it worked out, feel free to post your solution as an answer.

    – fooot
    Dec 20 '16 at 20:13













3












3








3








What I am trying to do?



making the https://dav.example.com/ automount on startup and without asking user credentials.



what steps I've undertaken?

I followed official archlinux wiki to setup my davs

steps:



  • installed davfs2

  • added myself to group "network":
    usermod -a -G network myusername


  • added webdav server to /etc/fstab:


https://webdav.example.com /home/username/webdav davfs user,noauto,uid=username,file_mode=600,dir_mode=700 0 1



  • created secret file in my /home/username/ and added credentials:
    mkdir ~/.davfs2/

    echo "https://webdav.example.com webdavuser webdavpassword" >> ~/.davfs2/secrets

    chmod 0600 ~/.davfs2/secrets

  • mounted my dav
    mount ~/MyDav

what happens?

When restart my pc and when startup has been completed I open nautilus but webdav server is not mounted. I have to mount it manually from the terminal on each restart. This is normal because I set noauto in fstab line. However, If I set auto instead, it will mount but fail in the process and return error on boot because mounting require internet connection therefore return error "failed mounting". So both auto and noauto have the same results for me.

What I need now is to make webdav server automount when internet connection has been established.

some suggested using _netdev on fstab line. I did, but no change.

Maybe worthmentioning that when I run mount ~/MyWebDav from the terminal it mount without asking credintials, but when run mount -a it ask for credintials and mount if they are correct.



I need to make the webdav server https://dav.example/ automount on startup only when internet connection has been occurred.










share|improve this question
















What I am trying to do?



making the https://dav.example.com/ automount on startup and without asking user credentials.



what steps I've undertaken?

I followed official archlinux wiki to setup my davs

steps:



  • installed davfs2

  • added myself to group "network":
    usermod -a -G network myusername


  • added webdav server to /etc/fstab:


https://webdav.example.com /home/username/webdav davfs user,noauto,uid=username,file_mode=600,dir_mode=700 0 1



  • created secret file in my /home/username/ and added credentials:
    mkdir ~/.davfs2/

    echo "https://webdav.example.com webdavuser webdavpassword" >> ~/.davfs2/secrets

    chmod 0600 ~/.davfs2/secrets

  • mounted my dav
    mount ~/MyDav

what happens?

When restart my pc and when startup has been completed I open nautilus but webdav server is not mounted. I have to mount it manually from the terminal on each restart. This is normal because I set noauto in fstab line. However, If I set auto instead, it will mount but fail in the process and return error on boot because mounting require internet connection therefore return error "failed mounting". So both auto and noauto have the same results for me.

What I need now is to make webdav server automount when internet connection has been established.

some suggested using _netdev on fstab line. I did, but no change.

Maybe worthmentioning that when I run mount ~/MyWebDav from the terminal it mount without asking credintials, but when run mount -a it ask for credintials and mount if they are correct.



I need to make the webdav server https://dav.example/ automount on startup only when internet connection has been occurred.







arch-linux automounting davfs2






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 9 at 15:17









Rui F Ribeiro

41.9k1483142




41.9k1483142










asked Dec 19 '16 at 0:46









Stephan rogStephan rog

317




317












  • You said you tried the _netdev option, can you post exactly what you tried?

    – fooot
    Dec 20 '16 at 15:53











  • nevermind friend. I just fixed it somehow. I enabled NetworkManager-wait-online.service , and set noauto to the fstab line... this solution for who search google and find this question. also do not forget to copy secrets file from /etc/davfs2/secrets to ~/.davfs2/secrets...and not just creating it instead because it won't work. and insert you keys in the copied file.

    – Stephan rog
    Dec 20 '16 at 20:03











  • also do not forget to make group davfs2 and add yourself to it, reboot pc, and should work. also I followed this guide doc.owncloud.org/server/latest/user_manual/files/…

    – Stephan rog
    Dec 20 '16 at 20:09











  • Glad you got it worked out, feel free to post your solution as an answer.

    – fooot
    Dec 20 '16 at 20:13

















  • You said you tried the _netdev option, can you post exactly what you tried?

    – fooot
    Dec 20 '16 at 15:53











  • nevermind friend. I just fixed it somehow. I enabled NetworkManager-wait-online.service , and set noauto to the fstab line... this solution for who search google and find this question. also do not forget to copy secrets file from /etc/davfs2/secrets to ~/.davfs2/secrets...and not just creating it instead because it won't work. and insert you keys in the copied file.

    – Stephan rog
    Dec 20 '16 at 20:03











  • also do not forget to make group davfs2 and add yourself to it, reboot pc, and should work. also I followed this guide doc.owncloud.org/server/latest/user_manual/files/…

    – Stephan rog
    Dec 20 '16 at 20:09











  • Glad you got it worked out, feel free to post your solution as an answer.

    – fooot
    Dec 20 '16 at 20:13
















You said you tried the _netdev option, can you post exactly what you tried?

– fooot
Dec 20 '16 at 15:53





You said you tried the _netdev option, can you post exactly what you tried?

– fooot
Dec 20 '16 at 15:53













nevermind friend. I just fixed it somehow. I enabled NetworkManager-wait-online.service , and set noauto to the fstab line... this solution for who search google and find this question. also do not forget to copy secrets file from /etc/davfs2/secrets to ~/.davfs2/secrets...and not just creating it instead because it won't work. and insert you keys in the copied file.

– Stephan rog
Dec 20 '16 at 20:03





nevermind friend. I just fixed it somehow. I enabled NetworkManager-wait-online.service , and set noauto to the fstab line... this solution for who search google and find this question. also do not forget to copy secrets file from /etc/davfs2/secrets to ~/.davfs2/secrets...and not just creating it instead because it won't work. and insert you keys in the copied file.

– Stephan rog
Dec 20 '16 at 20:03













also do not forget to make group davfs2 and add yourself to it, reboot pc, and should work. also I followed this guide doc.owncloud.org/server/latest/user_manual/files/…

– Stephan rog
Dec 20 '16 at 20:09





also do not forget to make group davfs2 and add yourself to it, reboot pc, and should work. also I followed this guide doc.owncloud.org/server/latest/user_manual/files/…

– Stephan rog
Dec 20 '16 at 20:09













Glad you got it worked out, feel free to post your solution as an answer.

– fooot
Dec 20 '16 at 20:13





Glad you got it worked out, feel free to post your solution as an answer.

– fooot
Dec 20 '16 at 20:13










0






active

oldest

votes












Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f331314%2fautomount-webdav-server-on-startup-with-internet%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f331314%2fautomount-webdav-server-on-startup-with-internet%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown






Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?