How to mount a samba share at loginTransfer file to Windows server from Ubuntusamba share not auto mounting at bootSAMBA will not mount a share or browse a mounted device on 11.10Proper fstab entry to mount a samba share on boot?Mount samba share at login using startup script (not fstab)How to permanently mount password-protected samba share with workgroupunable to mount samba share on boot (ubuntu 15.10)Problem accessing samba share / permission deniedCant mount smb on boot

Is harmlessly appearing to be a school bus driver a crime?

Which was the first story to feature force fields?

No transit zone at Linate airport. Couldn't get on connecting flight. Whose responsibility is it?

Would a uranium 235 fuel pellet the size of Earth explode?

How to I represent 5 eighth-notes as one note?

How can I force a bank to close my account with them?

How to permanently set refresh interval for top command?

How to view register contents on the PDP-11 console?

How to write rhead only on the first page?

Can a polling station shut early if everyone has voted?

Are there any spell casters that can cast life giving spells without 'expensive' components?

Finding New York City tournaments as a visitor from Moscow

Planet where giant manned machines travel in convoy across surface, tracking some astronomical phenomenon

Improving Map Function on Lists

What kind of electrical connector is this and how do I remove it?

Unexpected large rent payments, by moneygram, for my apartment, not by me

How many Lego bricks exist total?

tikzmark: How to add a '['-bracket / square brace on content?

Early computers without screens or sensors

Is there a difference between 回转 and 掉头?

Could a German insult Hitler without being arrested?

USA fingerprint on arrival

Why are bicycle tires incapable of maintaining pressure over time, while car tyres seem to have less of a problem?

Software to assist drawing of complex, three-dimensional skeletal formula from scratch or from existing crystal structure



How to mount a samba share at login


Transfer file to Windows server from Ubuntusamba share not auto mounting at bootSAMBA will not mount a share or browse a mounted device on 11.10Proper fstab entry to mount a samba share on boot?Mount samba share at login using startup script (not fstab)How to permanently mount password-protected samba share with workgroupunable to mount samba share on boot (ubuntu 15.10)Problem accessing samba share / permission deniedCant mount smb on boot






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









1


















I need to mount a smb share in my laptop. I added it in fstab, but it doesn't seem to be mounting at boot. I need to type mount -a manually to mount it. I think it is because the laptop is not getting connected to the network when its booted. I tried to add a cron to mount it 1 minute after reboot, but it is also not working.



Since I am the only one using this laptop, it is Ok to mount it when I login. So how to add a cronjob to mount it when I login ?



OS: ubuntu 16.04



samba running in a raspberry pi in home network










share|improve this question






















  • 1





    Can you post the relevant line in your fstab? My setup mounts samba shares every boot with no trouble.

    – Organic Marble
    Jan 19 '17 at 3:52







  • 1





    @OrganicMarble //192.168.1.200/movies /movies cifs username=root,password=xxxx 0 0

    – screenslaver
    Jan 19 '17 at 3:58











  • Try adding ,nobootwait after your ,password=xxxx entry. My fstab entries also have ,iocharset=utf8,sec=ntlm,file_mode=0777,dir_mode=0777,uid=[me],gid=[me], but I don't know if that is relevant to your problem.

    – Organic Marble
    Jan 19 '17 at 4:01












  • adding nobootwait did not solve the problem. let me try with all these entries

    – screenslaver
    Jan 19 '17 at 4:07











  • Your tag says you have 14.04 but your question says 16.04. It's important because 16.04 doesn't support nobootwait. If you really have 16.04, try nofail instead.

    – Organic Marble
    Jan 19 '17 at 4:25

















1


















I need to mount a smb share in my laptop. I added it in fstab, but it doesn't seem to be mounting at boot. I need to type mount -a manually to mount it. I think it is because the laptop is not getting connected to the network when its booted. I tried to add a cron to mount it 1 minute after reboot, but it is also not working.



Since I am the only one using this laptop, it is Ok to mount it when I login. So how to add a cronjob to mount it when I login ?



OS: ubuntu 16.04



samba running in a raspberry pi in home network










share|improve this question






















  • 1





    Can you post the relevant line in your fstab? My setup mounts samba shares every boot with no trouble.

    – Organic Marble
    Jan 19 '17 at 3:52







  • 1





    @OrganicMarble //192.168.1.200/movies /movies cifs username=root,password=xxxx 0 0

    – screenslaver
    Jan 19 '17 at 3:58











  • Try adding ,nobootwait after your ,password=xxxx entry. My fstab entries also have ,iocharset=utf8,sec=ntlm,file_mode=0777,dir_mode=0777,uid=[me],gid=[me], but I don't know if that is relevant to your problem.

    – Organic Marble
    Jan 19 '17 at 4:01












  • adding nobootwait did not solve the problem. let me try with all these entries

    – screenslaver
    Jan 19 '17 at 4:07











  • Your tag says you have 14.04 but your question says 16.04. It's important because 16.04 doesn't support nobootwait. If you really have 16.04, try nofail instead.

    – Organic Marble
    Jan 19 '17 at 4:25













1













1









1


1






I need to mount a smb share in my laptop. I added it in fstab, but it doesn't seem to be mounting at boot. I need to type mount -a manually to mount it. I think it is because the laptop is not getting connected to the network when its booted. I tried to add a cron to mount it 1 minute after reboot, but it is also not working.



Since I am the only one using this laptop, it is Ok to mount it when I login. So how to add a cronjob to mount it when I login ?



OS: ubuntu 16.04



samba running in a raspberry pi in home network










share|improve this question
















I need to mount a smb share in my laptop. I added it in fstab, but it doesn't seem to be mounting at boot. I need to type mount -a manually to mount it. I think it is because the laptop is not getting connected to the network when its booted. I tried to add a cron to mount it 1 minute after reboot, but it is also not working.



Since I am the only one using this laptop, it is Ok to mount it when I login. So how to add a cronjob to mount it when I login ?



OS: ubuntu 16.04



samba running in a raspberry pi in home network







16.04 mount samba cron






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 19 '17 at 4:27







screenslaver

















asked Jan 19 '17 at 3:06









screenslaverscreenslaver

3071 gold badge5 silver badges16 bronze badges




3071 gold badge5 silver badges16 bronze badges










  • 1





    Can you post the relevant line in your fstab? My setup mounts samba shares every boot with no trouble.

    – Organic Marble
    Jan 19 '17 at 3:52







  • 1





    @OrganicMarble //192.168.1.200/movies /movies cifs username=root,password=xxxx 0 0

    – screenslaver
    Jan 19 '17 at 3:58











  • Try adding ,nobootwait after your ,password=xxxx entry. My fstab entries also have ,iocharset=utf8,sec=ntlm,file_mode=0777,dir_mode=0777,uid=[me],gid=[me], but I don't know if that is relevant to your problem.

    – Organic Marble
    Jan 19 '17 at 4:01












  • adding nobootwait did not solve the problem. let me try with all these entries

    – screenslaver
    Jan 19 '17 at 4:07











  • Your tag says you have 14.04 but your question says 16.04. It's important because 16.04 doesn't support nobootwait. If you really have 16.04, try nofail instead.

    – Organic Marble
    Jan 19 '17 at 4:25












  • 1





    Can you post the relevant line in your fstab? My setup mounts samba shares every boot with no trouble.

    – Organic Marble
    Jan 19 '17 at 3:52







  • 1





    @OrganicMarble //192.168.1.200/movies /movies cifs username=root,password=xxxx 0 0

    – screenslaver
    Jan 19 '17 at 3:58











  • Try adding ,nobootwait after your ,password=xxxx entry. My fstab entries also have ,iocharset=utf8,sec=ntlm,file_mode=0777,dir_mode=0777,uid=[me],gid=[me], but I don't know if that is relevant to your problem.

    – Organic Marble
    Jan 19 '17 at 4:01












  • adding nobootwait did not solve the problem. let me try with all these entries

    – screenslaver
    Jan 19 '17 at 4:07











  • Your tag says you have 14.04 but your question says 16.04. It's important because 16.04 doesn't support nobootwait. If you really have 16.04, try nofail instead.

    – Organic Marble
    Jan 19 '17 at 4:25







1




1





Can you post the relevant line in your fstab? My setup mounts samba shares every boot with no trouble.

– Organic Marble
Jan 19 '17 at 3:52






Can you post the relevant line in your fstab? My setup mounts samba shares every boot with no trouble.

– Organic Marble
Jan 19 '17 at 3:52





1




1





@OrganicMarble //192.168.1.200/movies /movies cifs username=root,password=xxxx 0 0

– screenslaver
Jan 19 '17 at 3:58





@OrganicMarble //192.168.1.200/movies /movies cifs username=root,password=xxxx 0 0

– screenslaver
Jan 19 '17 at 3:58













Try adding ,nobootwait after your ,password=xxxx entry. My fstab entries also have ,iocharset=utf8,sec=ntlm,file_mode=0777,dir_mode=0777,uid=[me],gid=[me], but I don't know if that is relevant to your problem.

– Organic Marble
Jan 19 '17 at 4:01






Try adding ,nobootwait after your ,password=xxxx entry. My fstab entries also have ,iocharset=utf8,sec=ntlm,file_mode=0777,dir_mode=0777,uid=[me],gid=[me], but I don't know if that is relevant to your problem.

– Organic Marble
Jan 19 '17 at 4:01














adding nobootwait did not solve the problem. let me try with all these entries

– screenslaver
Jan 19 '17 at 4:07





adding nobootwait did not solve the problem. let me try with all these entries

– screenslaver
Jan 19 '17 at 4:07













Your tag says you have 14.04 but your question says 16.04. It's important because 16.04 doesn't support nobootwait. If you really have 16.04, try nofail instead.

– Organic Marble
Jan 19 '17 at 4:25





Your tag says you have 14.04 but your question says 16.04. It's important because 16.04 doesn't support nobootwait. If you really have 16.04, try nofail instead.

– Organic Marble
Jan 19 '17 at 4:25










2 Answers
2






active

oldest

votes


















0



















Add the command to mount the share at the end of ~/.bash_profile. This will execute the command when you login.






share|improve this answer
































    0



















    To mount samba share automatically when system reboot, You need to add an entry to the /etc/fstab file.



    //server-name/sharename /mountpoint cifs username=smbuser,password=smbpass 0 0


    When system reboot, Ubuntu will mount the samba share specified in the /etc/fstab file.






    share|improve this answer






















    • 1





      I have done this but the drive does not mount. I think it may have to do with network services being unavailable when it attempts to mount.

      – jchook
      Jan 7 '18 at 18:47












    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    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: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    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/4.0/"u003ecc by-sa 4.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%2faskubuntu.com%2fquestions%2f873587%2fhow-to-mount-a-samba-share-at-login%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown


























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0



















    Add the command to mount the share at the end of ~/.bash_profile. This will execute the command when you login.






    share|improve this answer





























      0



















      Add the command to mount the share at the end of ~/.bash_profile. This will execute the command when you login.






      share|improve this answer



























        0















        0











        0









        Add the command to mount the share at the end of ~/.bash_profile. This will execute the command when you login.






        share|improve this answer














        Add the command to mount the share at the end of ~/.bash_profile. This will execute the command when you login.







        share|improve this answer













        share|improve this answer




        share|improve this answer










        answered Jan 19 '17 at 3:37









        MitchellMitchell

        1141 silver badge9 bronze badges




        1141 silver badge9 bronze badges


























            0



















            To mount samba share automatically when system reboot, You need to add an entry to the /etc/fstab file.



            //server-name/sharename /mountpoint cifs username=smbuser,password=smbpass 0 0


            When system reboot, Ubuntu will mount the samba share specified in the /etc/fstab file.






            share|improve this answer






















            • 1





              I have done this but the drive does not mount. I think it may have to do with network services being unavailable when it attempts to mount.

              – jchook
              Jan 7 '18 at 18:47















            0



















            To mount samba share automatically when system reboot, You need to add an entry to the /etc/fstab file.



            //server-name/sharename /mountpoint cifs username=smbuser,password=smbpass 0 0


            When system reboot, Ubuntu will mount the samba share specified in the /etc/fstab file.






            share|improve this answer






















            • 1





              I have done this but the drive does not mount. I think it may have to do with network services being unavailable when it attempts to mount.

              – jchook
              Jan 7 '18 at 18:47













            0















            0











            0









            To mount samba share automatically when system reboot, You need to add an entry to the /etc/fstab file.



            //server-name/sharename /mountpoint cifs username=smbuser,password=smbpass 0 0


            When system reboot, Ubuntu will mount the samba share specified in the /etc/fstab file.






            share|improve this answer
















            To mount samba share automatically when system reboot, You need to add an entry to the /etc/fstab file.



            //server-name/sharename /mountpoint cifs username=smbuser,password=smbpass 0 0


            When system reboot, Ubuntu will mount the samba share specified in the /etc/fstab file.







            share|improve this answer















            share|improve this answer




            share|improve this answer








            edited Oct 23 '17 at 8:24









            pomsky

            43.4k12 gold badges141 silver badges170 bronze badges




            43.4k12 gold badges141 silver badges170 bronze badges










            answered Oct 23 '17 at 7:00









            aBnoBaaBnoBa

            1




            1










            • 1





              I have done this but the drive does not mount. I think it may have to do with network services being unavailable when it attempts to mount.

              – jchook
              Jan 7 '18 at 18:47












            • 1





              I have done this but the drive does not mount. I think it may have to do with network services being unavailable when it attempts to mount.

              – jchook
              Jan 7 '18 at 18:47







            1




            1





            I have done this but the drive does not mount. I think it may have to do with network services being unavailable when it attempts to mount.

            – jchook
            Jan 7 '18 at 18:47





            I have done this but the drive does not mount. I think it may have to do with network services being unavailable when it attempts to mount.

            – jchook
            Jan 7 '18 at 18:47


















            draft saved

            draft discarded















































            Thanks for contributing an answer to Ask Ubuntu!


            • 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%2faskubuntu.com%2fquestions%2f873587%2fhow-to-mount-a-samba-share-at-login%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

            Tamil (spriik) Luke uk diar | Nawigatjuun

            Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

            Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?