[SOLVED] Cannot mount remote filesystem. Error "Unable to find suitable address"
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Cannot mount remote filesystem. Error "Unable to find suitable address"
I have a Linux box, running Fedora 16 and am trying to mount the C: drive from my Win XP box. I seem to have done everything by the book, but have obviously missed something. I have run out of ideas.
My Linux and XP boxes are connected to my home router, and can ping each other OK.
I have made my C: drive sharable.
I used the following command (and variations on it):
# mount -t cifs -o user=root,password=<mypassword>,rw //192.168.2.1/C /mnt/Windows-C
and the error I get is: "Unable to find suitable address."
I have this entry in my /etc/fstab:
//192.168.2.1/C /mnt/Windows-C cifs -o rw,guest,uid=1000,iocharset=utf8,codepage=unicode,unicode 0 0
What services should I be checking for? What else can I try?
Any help would be much appreciated. Thanks in advance.
mount -t cifs //192.168.2.1/C /mnt/Windows-C -o user=name_of_windows_user_account
Where :
//192.168.2.1/C is the remote share. Remember I am assuming that you have shared C drive with the share name C. If you have shared it with some other name then use that name.
/mnt/Windows-C is your local linux mount point
-o user=name of the windows user account. The user account that is there on your Windows XP box which has right to access C drive.
When you will hit enter it will ask you for the password for the windows user account. Enter the password and it should work. I hope your Fedora system is configured to be part of the same workgroup as that of your Windows system. If not then please paste the smb.conf file of your Fedora system here in this thread.
Please ignore the stuff posted in my previous post. After posting I realized you are mounting via Windows server. Sorry was posting in another thread at the same time and thought you to be using samba on a linux server.
As this you have got shared configured on Windows machine you do not require to check selinux boolean stuff. This stuff is required when you are hosting samba share on a linux machine.
However, as michaelk said we need to check if 192.168.2.1 is the IP address of your Widnows machine. Check if you are able to telnet Windows machine from linux machine on port 139 or not. Run the smbtree command as suggested my michaelk.
Another thing that you could try is specifying the workgroup in the mount command. The reason I am saying because it is required with some distributions like SuSE.
The IP address certainly was 192.168.2.1, but today it is 192.168.2.3!
smb and nmb services were not running. Now smb is running, but nmb will not start:
[root@fedora-1 ~]# service nmb start
Redirecting to /bin/systemctl start nmb.service
[root@fedora-1 ~]# service nmb status
Redirecting to /bin/systemctl status nmb.service
nmb.service - Samba NMB Daemon
Loaded: loaded (/lib/systemd/system/nmb.service; disabled)
Active: failed since Sat, 14 Jan 2012 17:51:35 +0000; 8s ago
Process: 1902 ExecStart=/usr/sbin/nmbd $NMBDOPTIONS (code=exited, status=0/SUCCESS)
Main PID: 1903 (code=exited, status=1/FAILURE)
CGroup: name=systemd:/system/nmb.service
smbtree failed to find anything. I'm sure I don't need to start anything on my XP box - or do I?
the mount command now gives the following, and I am just investigating it:
# mount -t cifs -o user=root,rw //192.168.2.3/C /mnt/Windows-C
Password:
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
What is the name of the share on Windows. I doubt you shared it with the default name C. When you did smbtree did you not find Windows system and the device you shared?
As I can see in the command you are using user=root. As I mentioned before you need to mention the user name and the password of Windows user. Make sure that the user account that you are using with the mount command have access to the share.
Were you able to telnet Windows machine on port 139 from your linux machine?
Try the following command and see if it works:
Code:
mount -t cifs //192.168.2.1/C /mnt/Windows-C -o user=administrator
If you could share the screenshot of how you have shared the directory from Windows it will nice.
I received the same message when I tried to mount a drive from Linux to a windows server. It was working before and then stopped. I checked and realised that the anti-virus updated and enabled my firewall. After disabling the firewall the mount was working again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.