Ubuntu, how to unmount remote shared drive if the share is down?
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
add a comment |
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
add a comment |
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
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
mount
edited Mar 12 at 21:08
MichaelE
asked Mar 12 at 20:03
MichaelEMichaelE
256
256
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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?
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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?
add a comment |
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?
add a comment |
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?
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?
answered Mar 12 at 20:58
MichaelEMichaelE
256
256
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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