Can't connect to SMB shared Storage from Ubuntu 18.04
i have an external hard drive connect to my TP-Link router and shared using USB Share, i am unable to connect to this Share from Ubuntu, i can only see shared volumes but can't gain access.
I can connect to it from Windows and even from my Android device using X-plore File Manager. What can i do ?
My router is old and it supports only SMBv1 shares.
ubuntu smb smbclient
add a comment |
i have an external hard drive connect to my TP-Link router and shared using USB Share, i am unable to connect to this Share from Ubuntu, i can only see shared volumes but can't gain access.
I can connect to it from Windows and even from my Android device using X-plore File Manager. What can i do ?
My router is old and it supports only SMBv1 shares.
ubuntu smb smbclient
Whats the error when you enter the password?
– jamalm
Dec 18 at 11:12
@jamalm noting just same dialog reopens and asks me to enter user and password again
– proless8
Dec 18 at 11:59
It could be that you are entering the wrong password. The GUI doesn't tell you when you entered the wrong credentials, try to enter a wrong password to confirm my suspicion, it will probably just pop up again aswell. Try to create a new user from the TP-Link so you are sure of the password. According to the second image it states in the right-hand side that the passwords are not displayed for security reasons so chances are that the passwords there aren't the real passwords.
– jamalm
Dec 18 at 12:13
1
i am using the guest user account on my android device as well as Windows and it is working !
– proless8
Dec 18 at 12:16
Okay well that is strange. I'm going to detail an answer with steps to mount the smb share through the fstab file. Do try it and let me know the results. You will need root access to edit this file.
– jamalm
Dec 18 at 12:21
add a comment |
i have an external hard drive connect to my TP-Link router and shared using USB Share, i am unable to connect to this Share from Ubuntu, i can only see shared volumes but can't gain access.
I can connect to it from Windows and even from my Android device using X-plore File Manager. What can i do ?
My router is old and it supports only SMBv1 shares.
ubuntu smb smbclient
i have an external hard drive connect to my TP-Link router and shared using USB Share, i am unable to connect to this Share from Ubuntu, i can only see shared volumes but can't gain access.
I can connect to it from Windows and even from my Android device using X-plore File Manager. What can i do ?
My router is old and it supports only SMBv1 shares.
ubuntu smb smbclient
ubuntu smb smbclient
asked Dec 18 at 9:48
proless8
153
153
Whats the error when you enter the password?
– jamalm
Dec 18 at 11:12
@jamalm noting just same dialog reopens and asks me to enter user and password again
– proless8
Dec 18 at 11:59
It could be that you are entering the wrong password. The GUI doesn't tell you when you entered the wrong credentials, try to enter a wrong password to confirm my suspicion, it will probably just pop up again aswell. Try to create a new user from the TP-Link so you are sure of the password. According to the second image it states in the right-hand side that the passwords are not displayed for security reasons so chances are that the passwords there aren't the real passwords.
– jamalm
Dec 18 at 12:13
1
i am using the guest user account on my android device as well as Windows and it is working !
– proless8
Dec 18 at 12:16
Okay well that is strange. I'm going to detail an answer with steps to mount the smb share through the fstab file. Do try it and let me know the results. You will need root access to edit this file.
– jamalm
Dec 18 at 12:21
add a comment |
Whats the error when you enter the password?
– jamalm
Dec 18 at 11:12
@jamalm noting just same dialog reopens and asks me to enter user and password again
– proless8
Dec 18 at 11:59
It could be that you are entering the wrong password. The GUI doesn't tell you when you entered the wrong credentials, try to enter a wrong password to confirm my suspicion, it will probably just pop up again aswell. Try to create a new user from the TP-Link so you are sure of the password. According to the second image it states in the right-hand side that the passwords are not displayed for security reasons so chances are that the passwords there aren't the real passwords.
– jamalm
Dec 18 at 12:13
1
i am using the guest user account on my android device as well as Windows and it is working !
– proless8
Dec 18 at 12:16
Okay well that is strange. I'm going to detail an answer with steps to mount the smb share through the fstab file. Do try it and let me know the results. You will need root access to edit this file.
– jamalm
Dec 18 at 12:21
Whats the error when you enter the password?
– jamalm
Dec 18 at 11:12
Whats the error when you enter the password?
– jamalm
Dec 18 at 11:12
@jamalm noting just same dialog reopens and asks me to enter user and password again
– proless8
Dec 18 at 11:59
@jamalm noting just same dialog reopens and asks me to enter user and password again
– proless8
Dec 18 at 11:59
It could be that you are entering the wrong password. The GUI doesn't tell you when you entered the wrong credentials, try to enter a wrong password to confirm my suspicion, it will probably just pop up again aswell. Try to create a new user from the TP-Link so you are sure of the password. According to the second image it states in the right-hand side that the passwords are not displayed for security reasons so chances are that the passwords there aren't the real passwords.
– jamalm
Dec 18 at 12:13
It could be that you are entering the wrong password. The GUI doesn't tell you when you entered the wrong credentials, try to enter a wrong password to confirm my suspicion, it will probably just pop up again aswell. Try to create a new user from the TP-Link so you are sure of the password. According to the second image it states in the right-hand side that the passwords are not displayed for security reasons so chances are that the passwords there aren't the real passwords.
– jamalm
Dec 18 at 12:13
1
1
i am using the guest user account on my android device as well as Windows and it is working !
– proless8
Dec 18 at 12:16
i am using the guest user account on my android device as well as Windows and it is working !
– proless8
Dec 18 at 12:16
Okay well that is strange. I'm going to detail an answer with steps to mount the smb share through the fstab file. Do try it and let me know the results. You will need root access to edit this file.
– jamalm
Dec 18 at 12:21
Okay well that is strange. I'm going to detail an answer with steps to mount the smb share through the fstab file. Do try it and let me know the results. You will need root access to edit this file.
– jamalm
Dec 18 at 12:21
add a comment |
1 Answer
1
active
oldest
votes
Try to mount the smb share through your fstab file. You will need root access to do this.
Start by opening a command line terminal and typing su -
. If you do not know the root password try sudo su -
and enter your own user account's password.
Open the /etc/fstab
file through gedit or whatever text editor you are comfortable with, we'll go with gedit because its the default on ubuntu: gedit /etc/fstab
.
Go to the end of the file on a new line and enter the following:
//192.168.0.254/volume1 /media/windowsshare cifs username=user,password=pass 0 0
substituting user
and pass
with the username and the password you used to log in. You can also substitute windowsshare
with whatever name you wish.
Now save and exit the editor. Navigate to /media/
and create the folder that you named in the fstab, so in our case here we do the following:
cd /media
mkdir /media/windowsshare
Now try to mount the share from the fstab by typing:
mount -a
This command tells ubuntu: "Mount all filesystems defined in /etc/fstab" so it should pick up the new entry.
If there are no errors, we are golden! If there are, do let me know.
A common error could be that Ubuntu does not have mount.cifs. In this event go back to the terminal (as root) and type apt-get install cifs-utils
. This will allow you to mount smb shares onto your system.
To find the files in your file browser go to File System -> media -> windowsshare.
it didn't work i get this error : mount error(112): Host is down Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
– proless8
Dec 18 at 12:54
1
thanks it is working fine now. will it be auto mounted after reboot ?
– proless8
Dec 18 at 13:15
1
no need it is fine, thanks again
– proless8
Dec 18 at 13:22
1
last thing the share didn't automount on reboot i have to add x-systemd.automount to fstab, but now it see the mount both under Devices (as a hard drive) and Network (as folder), can i change this ?
– proless8
Dec 19 at 17:22
1
I'm not too sure on the x-systemd.automount inside the fstab, i've never had to do something like that. As for the double appearance, it will appear under Devices because you have it mounted through the FileSystem Table (fstab) and it will appear over the network because it is available over the network. IT shouldn't cause any issues. Just ignore the network one and things should be fine. I don't think you can remove it from Network explicitly, not as far as i know at least.. hope this helps
– jamalm
Dec 20 at 10:51
|
show 2 more comments
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
});
}
});
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%2funix.stackexchange.com%2fquestions%2f489647%2fcant-connect-to-smb-shared-storage-from-ubuntu-18-04%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
Try to mount the smb share through your fstab file. You will need root access to do this.
Start by opening a command line terminal and typing su -
. If you do not know the root password try sudo su -
and enter your own user account's password.
Open the /etc/fstab
file through gedit or whatever text editor you are comfortable with, we'll go with gedit because its the default on ubuntu: gedit /etc/fstab
.
Go to the end of the file on a new line and enter the following:
//192.168.0.254/volume1 /media/windowsshare cifs username=user,password=pass 0 0
substituting user
and pass
with the username and the password you used to log in. You can also substitute windowsshare
with whatever name you wish.
Now save and exit the editor. Navigate to /media/
and create the folder that you named in the fstab, so in our case here we do the following:
cd /media
mkdir /media/windowsshare
Now try to mount the share from the fstab by typing:
mount -a
This command tells ubuntu: "Mount all filesystems defined in /etc/fstab" so it should pick up the new entry.
If there are no errors, we are golden! If there are, do let me know.
A common error could be that Ubuntu does not have mount.cifs. In this event go back to the terminal (as root) and type apt-get install cifs-utils
. This will allow you to mount smb shares onto your system.
To find the files in your file browser go to File System -> media -> windowsshare.
it didn't work i get this error : mount error(112): Host is down Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
– proless8
Dec 18 at 12:54
1
thanks it is working fine now. will it be auto mounted after reboot ?
– proless8
Dec 18 at 13:15
1
no need it is fine, thanks again
– proless8
Dec 18 at 13:22
1
last thing the share didn't automount on reboot i have to add x-systemd.automount to fstab, but now it see the mount both under Devices (as a hard drive) and Network (as folder), can i change this ?
– proless8
Dec 19 at 17:22
1
I'm not too sure on the x-systemd.automount inside the fstab, i've never had to do something like that. As for the double appearance, it will appear under Devices because you have it mounted through the FileSystem Table (fstab) and it will appear over the network because it is available over the network. IT shouldn't cause any issues. Just ignore the network one and things should be fine. I don't think you can remove it from Network explicitly, not as far as i know at least.. hope this helps
– jamalm
Dec 20 at 10:51
|
show 2 more comments
Try to mount the smb share through your fstab file. You will need root access to do this.
Start by opening a command line terminal and typing su -
. If you do not know the root password try sudo su -
and enter your own user account's password.
Open the /etc/fstab
file through gedit or whatever text editor you are comfortable with, we'll go with gedit because its the default on ubuntu: gedit /etc/fstab
.
Go to the end of the file on a new line and enter the following:
//192.168.0.254/volume1 /media/windowsshare cifs username=user,password=pass 0 0
substituting user
and pass
with the username and the password you used to log in. You can also substitute windowsshare
with whatever name you wish.
Now save and exit the editor. Navigate to /media/
and create the folder that you named in the fstab, so in our case here we do the following:
cd /media
mkdir /media/windowsshare
Now try to mount the share from the fstab by typing:
mount -a
This command tells ubuntu: "Mount all filesystems defined in /etc/fstab" so it should pick up the new entry.
If there are no errors, we are golden! If there are, do let me know.
A common error could be that Ubuntu does not have mount.cifs. In this event go back to the terminal (as root) and type apt-get install cifs-utils
. This will allow you to mount smb shares onto your system.
To find the files in your file browser go to File System -> media -> windowsshare.
it didn't work i get this error : mount error(112): Host is down Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
– proless8
Dec 18 at 12:54
1
thanks it is working fine now. will it be auto mounted after reboot ?
– proless8
Dec 18 at 13:15
1
no need it is fine, thanks again
– proless8
Dec 18 at 13:22
1
last thing the share didn't automount on reboot i have to add x-systemd.automount to fstab, but now it see the mount both under Devices (as a hard drive) and Network (as folder), can i change this ?
– proless8
Dec 19 at 17:22
1
I'm not too sure on the x-systemd.automount inside the fstab, i've never had to do something like that. As for the double appearance, it will appear under Devices because you have it mounted through the FileSystem Table (fstab) and it will appear over the network because it is available over the network. IT shouldn't cause any issues. Just ignore the network one and things should be fine. I don't think you can remove it from Network explicitly, not as far as i know at least.. hope this helps
– jamalm
Dec 20 at 10:51
|
show 2 more comments
Try to mount the smb share through your fstab file. You will need root access to do this.
Start by opening a command line terminal and typing su -
. If you do not know the root password try sudo su -
and enter your own user account's password.
Open the /etc/fstab
file through gedit or whatever text editor you are comfortable with, we'll go with gedit because its the default on ubuntu: gedit /etc/fstab
.
Go to the end of the file on a new line and enter the following:
//192.168.0.254/volume1 /media/windowsshare cifs username=user,password=pass 0 0
substituting user
and pass
with the username and the password you used to log in. You can also substitute windowsshare
with whatever name you wish.
Now save and exit the editor. Navigate to /media/
and create the folder that you named in the fstab, so in our case here we do the following:
cd /media
mkdir /media/windowsshare
Now try to mount the share from the fstab by typing:
mount -a
This command tells ubuntu: "Mount all filesystems defined in /etc/fstab" so it should pick up the new entry.
If there are no errors, we are golden! If there are, do let me know.
A common error could be that Ubuntu does not have mount.cifs. In this event go back to the terminal (as root) and type apt-get install cifs-utils
. This will allow you to mount smb shares onto your system.
To find the files in your file browser go to File System -> media -> windowsshare.
Try to mount the smb share through your fstab file. You will need root access to do this.
Start by opening a command line terminal and typing su -
. If you do not know the root password try sudo su -
and enter your own user account's password.
Open the /etc/fstab
file through gedit or whatever text editor you are comfortable with, we'll go with gedit because its the default on ubuntu: gedit /etc/fstab
.
Go to the end of the file on a new line and enter the following:
//192.168.0.254/volume1 /media/windowsshare cifs username=user,password=pass 0 0
substituting user
and pass
with the username and the password you used to log in. You can also substitute windowsshare
with whatever name you wish.
Now save and exit the editor. Navigate to /media/
and create the folder that you named in the fstab, so in our case here we do the following:
cd /media
mkdir /media/windowsshare
Now try to mount the share from the fstab by typing:
mount -a
This command tells ubuntu: "Mount all filesystems defined in /etc/fstab" so it should pick up the new entry.
If there are no errors, we are golden! If there are, do let me know.
A common error could be that Ubuntu does not have mount.cifs. In this event go back to the terminal (as root) and type apt-get install cifs-utils
. This will allow you to mount smb shares onto your system.
To find the files in your file browser go to File System -> media -> windowsshare.
answered Dec 18 at 12:40
jamalm
8912
8912
it didn't work i get this error : mount error(112): Host is down Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
– proless8
Dec 18 at 12:54
1
thanks it is working fine now. will it be auto mounted after reboot ?
– proless8
Dec 18 at 13:15
1
no need it is fine, thanks again
– proless8
Dec 18 at 13:22
1
last thing the share didn't automount on reboot i have to add x-systemd.automount to fstab, but now it see the mount both under Devices (as a hard drive) and Network (as folder), can i change this ?
– proless8
Dec 19 at 17:22
1
I'm not too sure on the x-systemd.automount inside the fstab, i've never had to do something like that. As for the double appearance, it will appear under Devices because you have it mounted through the FileSystem Table (fstab) and it will appear over the network because it is available over the network. IT shouldn't cause any issues. Just ignore the network one and things should be fine. I don't think you can remove it from Network explicitly, not as far as i know at least.. hope this helps
– jamalm
Dec 20 at 10:51
|
show 2 more comments
it didn't work i get this error : mount error(112): Host is down Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
– proless8
Dec 18 at 12:54
1
thanks it is working fine now. will it be auto mounted after reboot ?
– proless8
Dec 18 at 13:15
1
no need it is fine, thanks again
– proless8
Dec 18 at 13:22
1
last thing the share didn't automount on reboot i have to add x-systemd.automount to fstab, but now it see the mount both under Devices (as a hard drive) and Network (as folder), can i change this ?
– proless8
Dec 19 at 17:22
1
I'm not too sure on the x-systemd.automount inside the fstab, i've never had to do something like that. As for the double appearance, it will appear under Devices because you have it mounted through the FileSystem Table (fstab) and it will appear over the network because it is available over the network. IT shouldn't cause any issues. Just ignore the network one and things should be fine. I don't think you can remove it from Network explicitly, not as far as i know at least.. hope this helps
– jamalm
Dec 20 at 10:51
it didn't work i get this error : mount error(112): Host is down Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
– proless8
Dec 18 at 12:54
it didn't work i get this error : mount error(112): Host is down Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
– proless8
Dec 18 at 12:54
1
1
thanks it is working fine now. will it be auto mounted after reboot ?
– proless8
Dec 18 at 13:15
thanks it is working fine now. will it be auto mounted after reboot ?
– proless8
Dec 18 at 13:15
1
1
no need it is fine, thanks again
– proless8
Dec 18 at 13:22
no need it is fine, thanks again
– proless8
Dec 18 at 13:22
1
1
last thing the share didn't automount on reboot i have to add x-systemd.automount to fstab, but now it see the mount both under Devices (as a hard drive) and Network (as folder), can i change this ?
– proless8
Dec 19 at 17:22
last thing the share didn't automount on reboot i have to add x-systemd.automount to fstab, but now it see the mount both under Devices (as a hard drive) and Network (as folder), can i change this ?
– proless8
Dec 19 at 17:22
1
1
I'm not too sure on the x-systemd.automount inside the fstab, i've never had to do something like that. As for the double appearance, it will appear under Devices because you have it mounted through the FileSystem Table (fstab) and it will appear over the network because it is available over the network. IT shouldn't cause any issues. Just ignore the network one and things should be fine. I don't think you can remove it from Network explicitly, not as far as i know at least.. hope this helps
– jamalm
Dec 20 at 10:51
I'm not too sure on the x-systemd.automount inside the fstab, i've never had to do something like that. As for the double appearance, it will appear under Devices because you have it mounted through the FileSystem Table (fstab) and it will appear over the network because it is available over the network. IT shouldn't cause any issues. Just ignore the network one and things should be fine. I don't think you can remove it from Network explicitly, not as far as i know at least.. hope this helps
– jamalm
Dec 20 at 10:51
|
show 2 more comments
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2funix.stackexchange.com%2fquestions%2f489647%2fcant-connect-to-smb-shared-storage-from-ubuntu-18-04%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
Whats the error when you enter the password?
– jamalm
Dec 18 at 11:12
@jamalm noting just same dialog reopens and asks me to enter user and password again
– proless8
Dec 18 at 11:59
It could be that you are entering the wrong password. The GUI doesn't tell you when you entered the wrong credentials, try to enter a wrong password to confirm my suspicion, it will probably just pop up again aswell. Try to create a new user from the TP-Link so you are sure of the password. According to the second image it states in the right-hand side that the passwords are not displayed for security reasons so chances are that the passwords there aren't the real passwords.
– jamalm
Dec 18 at 12:13
1
i am using the guest user account on my android device as well as Windows and it is working !
– proless8
Dec 18 at 12:16
Okay well that is strange. I'm going to detail an answer with steps to mount the smb share through the fstab file. Do try it and let me know the results. You will need root access to edit this file.
– jamalm
Dec 18 at 12:21