Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
can not use mount.cifs "Unable to find suitable address"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
diablo465
Apprentice
Apprentice


Joined: 10 Sep 2013
Posts: 194

PostPosted: Wed Mar 19, 2014 11:08 am    Post subject: can not use mount.cifs "Unable to find suitable address Reply with quote

I am using gentoo with systemd.

Code:
localhost linux # mount.cifs //file.aaa.edu.au/abcd /home/ging/Hdrive -o username=username,domain=abc,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777
Password for username@//file.aaa.edu.au/abc:  **********
Unable to find suitable address.


The same command is working in ubuntu

here are some other information.
Code:

localhost linux # rc-update
            alsasound |      default                 
             bootmisc | boot                         
                devfs |                       sysinit
                dmesg |                       sysinit
                 fsck | boot                         
             hostname | boot                         
              hwclock | boot                         
              keymaps | boot                         
            killprocs |              shutdown       
                local |      default                 
           localmount | boot                         
             loopback | boot                         
              modules | boot                         
             mount-ro |              shutdown       
                 mtab | boot                         
               net.lo | boot                         
             netmount |      default                 
              numlock |      default                 
               procfs | boot                         
                 root | boot                         
                samba |      default          sysinit
            savecache |              shutdown       
                 swap | boot                         
            swapfiles | boot                         
               sysctl | boot                         
                sysfs |                       sysinit
            syslog-ng |      default                 
         termencoding | boot                         
         tmpfiles.dev |                       sysinit
       tmpfiles.setup | boot                         
                 udev |                       sysinit
           udev-mount |                       sysinit
              urandom | boot                         
           vixie-cron |      default                 
                  xdm |      default


Code:
localhost linux # lsmod
Module                  Size  Used by
ppp_mppe                6155  2
sha256_generic         10052  0
cifs                  408173  0
fscache                30752  1 cifs
ppp_async               7066  1
crc_ccitt               1275  1 ppp_async
ppp_generic            23284  6 ppp_mppe,ppp_async
slhc                    4882  1 ppp_generic
fuse                   72589  2
ath9k                 156064  0
ath9k_common            1839  1 ath9k
ath9k_hw              412646  2 ath9k_common,ath9k
ath                    15638  3 ath9k_common,ath9k,ath9k_hw
vboxnetflt             15634  0
vboxnetadp             17702  0
vboxdrv              1809437  3 vboxnetadp,vboxnetflt
Back to top
View user's profile Send private message
gerdesj
l33t
l33t


Joined: 29 Sep 2005
Posts: 621
Location: Yeovil, Somerset, UK

PostPosted: Fri Mar 21, 2014 12:52 am    Post subject: Re: can not use mount.cifs "Unable to find suitable add Reply with quote

diablo465 wrote:
I am using gentoo with systemd.
Code:
localhost linux # mount.cifs //file.aaa.edu.au/abcd /home/ging/Hdrive -o username=username,domain=abc,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777
Password for username@//file.aaa.edu.au/abc:  **********
Unable to find suitable address.



Please try this:

Code:

#mount -t cifs -o dom=<DOMAIN>,user=<username>,pass=<password> //<system>.example.edu.au/<share> /<mountpoint>


Substitute your settings. You should not be typing any <> in your settings, I've just used them to show a user supplied field. This mount command has an added bonus because it can be used nearly directly in /etc/fstab - it should be pretty obvious how (the -o bit is the options field in fstab). If that works, then add in your other settings and see how it goes. If you leave out the pass=<password> bit it will prompt for it.

There are some other tests to try and narrow down the problem. In my experience, snags with connecting to the world of Windows generally boil down to DNS and time keeping.

#dig <FULLY_QUALIFIED_DOMAIN_NAME>

should return the IPs of all DCs - if not fix up your /etc/resolv.conf perhaps via NetworkManager or whatever you use to config your network.

If you have the rest of Samba installed you can try
#net ads info

Set up OpenNTP and point it at your DCs for time or to whatever they sync to. If you can't play with the DCs, you *may* get some information with w32tm /monitor in a cmd prompt on a Windows PC that is a domain member.

Cheers
Jon
Back to top
View user's profile Send private message
diablo465
Apprentice
Apprentice


Joined: 10 Sep 2013
Posts: 194

PostPosted: Fri Mar 21, 2014 1:41 am    Post subject: Reply with quote

Thanks very much Jon, I have narrowed down the snag a bit by reducing the CIFS items in the kernel down to the following ones.

Code:

File Systems --->
    [*] Network File Systems --->
        [M] CIFS support (advanced network filesystem, SMBFS successor)--->
            [*] CIFS Statistics
                [*] Extended Statistics
            [*] CIFS Extended Attributes
                [*] CIFS POSIX Extentions


Then I get some update:

Code:



ae429-1105 Hcifs # mount -t cifs  -o username=user,domain=AB,rw,iocharset=utf8,file_mode=0777,dir_mode=0777 --verbose //file.abc.edu.au/user /home/directory/path
Password for user@//file.abc.edu.au/user:  **********
mount.cifs kernel mount options: ip=123..456.78.90,unc=\\file.abc.edu.au\user,iocharset=utf8,file_mode=0777,dir_mode=0777,user=uqczhan2,,domain=UQ,pass=********
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)


It is certified that the mountpoint is accessible.

Also the relevant modules and services has been enabled, i.e.,
Code:

     ae429-1105 etc # lsmod |egrep 'fuse|cifs'
     fuse                   72589  5
     cifs                  312131  0

and
Code:

    ae429-1105 etc # systemctl -t service -a |grep Samba
    nmbd.service                         loaded active   running Samba NetBIOS                     name server
    smbd.service                         loaded active   running Samba SMB/CIFS     server
    winbindd.service                     loaded inactive dead    Samba Winbind daemon


As the same command is working in ubuntu/debian, i assume there is no problem about the server.

The version of non-working and working mount.cifs in gentoo and debian/ubuntu are 6.1 and 6.0, respectively.
Back to top
View user's profile Send private message
diablo465
Apprentice
Apprentice


Joined: 10 Sep 2013
Posts: 194

PostPosted: Thu Aug 14, 2014 10:04 pm    Post subject: Reply with quote

Now I have a solution to work around this problem.

first mount the smb network using file manager (e.g., nautilus)

Then access the mount at:

Code:
/run/user/{UID}/gvfs/


Problem solved
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1374
Location: Montréal

PostPosted: Thu Aug 14, 2014 10:28 pm    Post subject: Reply with quote

This is a workaround of your original problem, not a solution. The path of your shares should be seen by the command
Code:
smbtree -N

_________________
Paul
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7195

PostPosted: Fri Aug 15, 2014 2:20 am    Post subject: Reply with quote

Try also this ancien greek command only priests knows :
rc-update del net.lo boot
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum