Ubuntu, how to unmount remote shared drive if the share is down?












0















I have a remote share on another computer which is currently down.



The command I used to mount is:



sudo mount //10.10.100.100/files /home/user/remoteDir/ -o username=user,password=pass,dir_mode=777,file_mode=777


I cannot unmount through the gui as it says the device is busy, because it is down and I cannot find the correct syntax to unmount it from the terminal as I always get some error.



The reason I want to unmount is because the system is running really slow with the server being down and I am hoping mounting will fix it, and I cannot restart the system at the moment.



Thanks.



Updates:



I tried umount and smbmount for the share and keep getting command not found?



I tried umount again and this time the command work, but I got an error saying device is busy.










share|improve this question





























    0















    I have a remote share on another computer which is currently down.



    The command I used to mount is:



    sudo mount //10.10.100.100/files /home/user/remoteDir/ -o username=user,password=pass,dir_mode=777,file_mode=777


    I cannot unmount through the gui as it says the device is busy, because it is down and I cannot find the correct syntax to unmount it from the terminal as I always get some error.



    The reason I want to unmount is because the system is running really slow with the server being down and I am hoping mounting will fix it, and I cannot restart the system at the moment.



    Thanks.



    Updates:



    I tried umount and smbmount for the share and keep getting command not found?



    I tried umount again and this time the command work, but I got an error saying device is busy.










    share|improve this question



























      0












      0








      0








      I have a remote share on another computer which is currently down.



      The command I used to mount is:



      sudo mount //10.10.100.100/files /home/user/remoteDir/ -o username=user,password=pass,dir_mode=777,file_mode=777


      I cannot unmount through the gui as it says the device is busy, because it is down and I cannot find the correct syntax to unmount it from the terminal as I always get some error.



      The reason I want to unmount is because the system is running really slow with the server being down and I am hoping mounting will fix it, and I cannot restart the system at the moment.



      Thanks.



      Updates:



      I tried umount and smbmount for the share and keep getting command not found?



      I tried umount again and this time the command work, but I got an error saying device is busy.










      share|improve this question
















      I have a remote share on another computer which is currently down.



      The command I used to mount is:



      sudo mount //10.10.100.100/files /home/user/remoteDir/ -o username=user,password=pass,dir_mode=777,file_mode=777


      I cannot unmount through the gui as it says the device is busy, because it is down and I cannot find the correct syntax to unmount it from the terminal as I always get some error.



      The reason I want to unmount is because the system is running really slow with the server being down and I am hoping mounting will fix it, and I cannot restart the system at the moment.



      Thanks.



      Updates:



      I tried umount and smbmount for the share and keep getting command not found?



      I tried umount again and this time the command work, but I got an error saying device is busy.







      mount






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 5 hours ago







      MichaelE

















      asked 7 hours ago









      MichaelEMichaelE

      254




      254






















          1 Answer
          1






          active

          oldest

          votes


















          0














          sudo umount -l /home/user/remoteDir/


          Seems to have worked.



          I found the solution here: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/475288



          Are there any issues or alternatives to using the -l switch?






          share|improve this answer























            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/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%2faskubuntu.com%2fquestions%2f1125132%2fubuntu-how-to-unmount-remote-shared-drive-if-the-share-is-down%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            sudo umount -l /home/user/remoteDir/


            Seems to have worked.



            I found the solution here: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/475288



            Are there any issues or alternatives to using the -l switch?






            share|improve this answer




























              0














              sudo umount -l /home/user/remoteDir/


              Seems to have worked.



              I found the solution here: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/475288



              Are there any issues or alternatives to using the -l switch?






              share|improve this answer


























                0












                0








                0







                sudo umount -l /home/user/remoteDir/


                Seems to have worked.



                I found the solution here: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/475288



                Are there any issues or alternatives to using the -l switch?






                share|improve this answer













                sudo umount -l /home/user/remoteDir/


                Seems to have worked.



                I found the solution here: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/475288



                Are there any issues or alternatives to using the -l switch?







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 6 hours ago









                MichaelEMichaelE

                254




                254






























                    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%2f1125132%2fubuntu-how-to-unmount-remote-shared-drive-if-the-share-is-down%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

                    GameSpot

                    日野市

                    Tu-95轟炸機