1833151 Members
3086 Online
110051 Solutions
New Discussion

Error in using cifsmount

 
Ram anand
New Member

Error in using cifsmount

Hi,

When we try to mount a Win. 2003 share into Unix box using the below command , it fails .

cifsmount -U'ASIAPACIFIC/ananthr' //gvw0266.austin.hp.com/PLATO-DEV-EMEA/DB_External /opt/eplato/11031_europe/sharepoint

error is
"DOS: Share not exported by server"
Note : the requied CIFS installation is done.

Could you please provide your guide lines on this.

Thanks in advance.

Aanth.
5 REPLIES 5
LucianoCarvalho
Respected Contributor

Re: Error in using cifsmount

Hi,

Try to use the command like this and post the results.

cifsmoun \\server\share /MountPoint-Unix -U


Best Regards
Ram anand
New Member

Re: Error in using cifsmount

Hi ,

thanks for the response.

I tried with your modified string.
Still it logs a different error.


cifsmount \\gvw0266.austin.hp.com\PLATO-DEV-EMEA /opt/eplato/11031_europe/sharepoint -U ananthr
ananthr's password on gvw0266.austin.hp.comPLATO-DEV-EMEA:

LOC: Netbios name lookup failure
LOC: Netbios name lookup failure

Kind Regards,
Ananth.
Eric Raeburn
Trusted Contributor

Re: Error in using cifsmount

In your last example, the server name is probably the server's DNS name, but not its netbios name, hence the error message. If the DNS and netbios names are the same, then there is a problem looking up the netbios name, most likely, the server is not on the same subnet as the client (hence netbios broadcast will fail), and there is no netbios server with a record of the system you are trying to mount. If addressing these problems does not fix it (or if you don't want to deal with them) either of the following should also enable the cifsmount to work:

1. First, you need to find out what the netbios name of the server is. If it's a windows system, look at properties of "my computer"; if it's samba, look in smb.conf. Second, get the IP address of the server. Then try mounting thus:

cifsmount -U user -I ipaddress //netbiosname/share mountpoint

Note that in your first example, you did //server/path1/path2 . This is not supported by the cifsclient. I presume your path1 is the share and path2 is a subdirectory. Windows clients let you do that, mounting subdirectories of shares, but the cifsclient does not.

Also in your first example, you gave -U X/Y, where presumably X is the domain and Y is the user. This syntax is incorrect. The domain is specified with -D domain.

2. If you are using cifsclient A.02.02 or later, you can try setting smbOverTcp = yes; in cifsclient.cfg. This alone may enable the cifsmount to work.

Please post your results.

-Eric
Ram anand
New Member

Re: Error in using cifsmount

Hi Eric,

Thank you for your support.

Let me give you few more details to get it resolved at the earlies.

1)CIFS client details :

HP CIFS Client - Version A.02.01
Compiled on HP-UX B.11.11


when I try with cifsmount -I option the error "option not supported: -I" is logged.

so as per the Admin guide
http://docs.hp.com/en/B8724-90067/B8724-90067.pdf,

I modified the cifsclient.cfg file available in below path

/opt/cifsclient/newconfig/etc/opt/cifsclient

Modifications :

1) under
cifs = {
section ,
nbnsWinsIp = # is set with the server's IPaddress

2) under
servers = {
section
={
ipAddress = # server's IpAddress is set.


After these modification , I restarted the demon "cifsclient" and tried the below command

cifsmount -U ananthr //netbiosname/PLATO-DEV-EMEA /opt/eplato/11031_europe/sharepoint

it logs the same errors as
LOC: Netbios name lookup failure
LOC: Netbios name lookup failure

The Admin guide has below info..,
"The CIFS servers to which you want to connect must
be registered with the WINS server."

Please let me know if any thing needs to be done at Windows server machine.

Moreover I also tried with other command,

mount -F cifs -o username=ananthr :/share /opt/eplato/11031_europe/sharepoint

where the response is "DOS: Access denied"


since it is blocking lot many other tasks , I would request you to have a look and help me to resolve at the earliest.

If we have a closer loop of contact , It would help me a lot.

Thanks with Regards,
Ananth.


Eric Raeburn
Trusted Contributor

Re: Error in using cifsmount

Ananth,

It looks like you have done everything properly.

Have you verified that the WINS server has an entry for the server?

You can bypass the WINS/NetBIOS-lookup issue by upgrading to the latest CIFS Client (A.02.02.01), which you can download from software.hp.com. It is quick and easy (it may cause a reboot, however). Then by setting smbOverTcp=yes in the config file the problem should be resolved. Note however that if the server is WinNT, this won't work, as smb-over-tcp is not supported by NT.

If you upgrade, I believe swinstall will detect changes in cifsclient.cfg and not overwrite it with the new one. So I suggest, before you upgrade, saving it someplace safe and overwriting it with cifsclient.cfg.default:

cd /etc/opt/cifsclient
cp cifsclient.cfg.default cifsclient.cfg

I used to be one of the engineers in HP's CIFS Client lab (I am now in a different HP division). This is the point where we would usually advise customers to place a support call to HP, so we can examine log files and network traces. smb-over-tcp works around the problem but does not get to the source of it, and you may want to do that.

If you are not an HP employee, I'd encourage you to call HP, if my suggestion above does not work.

If you are an HP employee (I noticed you're trying to connect to a system at hp), please email me and I'll get you directly in touch with the CIFS lab.

Please post an update.
-Eric