LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mount cifs share problems (https://www.linuxquestions.org/questions/linux-newbie-8/mount-cifs-share-problems-505500/)

BarryLinux 11-28-2006 04:05 AM

Mount cifs share problems
 
Hello,
I am typing the following command :-

mount -t cifs -v //10.10.1.14/sharedata /home/intranet/html/forms/share/share_data -o username=job,password=<secret>,ip=10.10.1.14,rw

I am getting the following response :-

parsing options: rw,username=job,password=<secret>,ip=10.10.1.14
ip address 10.10.1.14 override specified
ip address specified explicitly

mount.cifs kernel mount options unc=//10.10.1.14\sharedata,ver=1,rw,username=job,password=<secret>,ip=10.10.1.14
retrying with upper case share name

mount.cifs kernel mount options unc=//10.10.1.14\SHAREDATA,ver=1,rw,username=job,password=<password>,ip=10.10.1.14
mount error 6 = No such device or address

I can ping the device and the share works if I try to connect using a windozs XP client. I am using a Feodora 5 client to connect to a samba share.

I have checked other thread and they seem to be putting the above command and it works???.

Help!!!!!

Many Thanks
:newbie:

nx5000 11-28-2006 04:42 AM

Gives an example here:
http://rpmfarm.free.fr/blog/?p=11

BarryLinux 11-28-2006 06:42 AM

Changed mount command but still having problems
 
Hi,
I have changed the command to :-

mount -t cifs -v '\\10.10.1.14/sharedata' /home/intranet/html/forms/job/share_data -o username=job,workgroup=SERVERS,rw,iocharset=utf8,job,uid=500,gid=500

This is the same as the article, but still get the following error message :-

mount.cifs kernel mount options unc=//10.10.1.14\sharedata,ip=10.10.1.14,pass=<secret>,ver=1,rw,username=job,workgroup=SERVERS,iocharset=u tf8,job,uid=500,gid=500
retrying with upper case share name

mount.cifs kernel mount options unc=//10.10.1.14\SHAREDATA,ip=10.10.1.14,pass=<secret>,ver=1,rw,username=job,workgroup=SERVERS,iocharset=u tf8,job,uid=500,gid=500
mount error 6 = No such device or address
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)

Heres my samba server conf on 10.10.1.14

workgroup = SERVERS
netbios name = PDF1
server string = PDF Server live
security = SHARE
encrypt passwords = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
username map = /etc/samba/smbusers
unix password sync = Yes
log file = /var/log/samba/%m.log
max log size = 0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
os level = 64
local master = No
domain master = No
dns proxy = No
nt acl support = No
printing = lprng

nx5000 11-30-2006 07:03 AM

Quote:

mount -t cifs -v '\\10.10.1.14/sharedata' /home/intranet/html/forms/job/share_data -o username=job,workgroup=SERVERS,rw,iocharset=utf8,job,uid=500,gid=500


This is the same as the article, but still get the following error message :-
No that's not exactly the same! \ is different from /
I don't know if its linked but it's important.

tomva 12-29-2006 11:53 PM

Hello all-

Was there ever an answer for this? It certainly looks like the new mount.cifs is broken, this error is posted in multiple forums.

I am in the same situation as many other posters: I have an existing SMB share, which has been working for a long time. In my case, it is an old FreeBSD server with a couple of samba shares. These shares are accessible to all Windows and Linux clients on my network.

I just installed Yellow Dog Linux 5.0, and it is the first time I've used the CIFS mount instead of smbfs. Even on that host, I can get to the shares and browse them just fine using smbclient. But when I try to mount, mount.cifs fails with the same error every time: "mount error 6 = No such device or address".

I've tried multiple variations and flavors of the mount command, listed in this and other threads, all to no avail. It really looks like cifs can't connect at all, and I can't tell why.

Is this a known bug that has been fixed in a later version of mount.cifs?

-Thomas

raven4d 12-30-2006 03:50 AM

i dout really know why do u people find it that hard to mount smb share !

i just mount them like this
mount -t cifs -o username=USERNAME,password=PASSWD //192.168.1.88/shares /mnt/share

jschiwal 12-30-2006 04:38 AM

You can see if the share is available.
smbclient -L <host>

Also check if smbd and nmbd are running. Another possible problem is if the firewall doesn't have the ports the samba uses.
Quote:

Originally Posted by /etc/services
# Larry Peterson <llp@ARIZONA.EDU>
netbios-ns 137/tcp # NETBIOS Name Service
netbios-ns 137/udp # NETBIOS Name Service
netbios-dgm 138/tcp # NETBIOS Datagram Service
netbios-dgm 138/udp # NETBIOS Datagram Service
netbios-ssn 139/tcp # NETBIOS Session Service
netbios-ssn 139/udp # NETBIOS Session Service

Quote:

Originally Posted by smbd manpage
The default ports are 139 (used for SMB over NetBIOS over TCP) and port 445 (used for plain SMB over TCP).


snostorm 01-06-2007 11:30 PM

cifs fedora 5 and fedora 6
 
Ok this seems to be an issue here where mount.cifs does not always work correctly I have two systems one fedora 6 i686 2.6.18 kernel and the other fedora 5 x64 specs below with package numbers. I have a cifs share from a Dlink gsm600, it is runiing linux not sure what kernel or samba version, the mount is done the same way as raven4d listed on the fedora 6 system and works, so it is possible. However, when I try the exact same command from the fedora 5 system. I get an error=6. I tried unmounting the share from the fedora 6 system incase there was some 1 user limit not stated but got the same error. Any help would be nice I have no internal network fire wall so that should not be an issue with ports and smbd and nmbd are not running on the fedora 6 system but were on the fedora 5 system I double checked all services on both and made them match for all network rlated services and still same error.
I am going to try to compile the latest samba later but I doubt it will help as the mount.cifs is the same version. raven4d what sytem /version are you using might help narrow down the issue?


[root@localhost ~]# rpm -qa | grep samba
samba-common-3.0.23c-1.fc5
system-config-samba-1.2.34-1
samba-common-3.0.23c-1.fc5
samba-3.0.23c-1.fc5
samba-client-3.0.23c-1.fc5
[root@localhost ~]# mount.cifs --version
mount.cifs version: 1.10
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.17-1.2174_FC5 #1 SMP Tue Aug 8 15:30:44 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux



[root@localhost init.d]# rpm -qa | grep samba
samba-client-3.0.23c-2
samba-common-3.0.23c-2
[root@localhost init.d]# mount.cifs --version
mount.cifs version: 1.10
[root@localhost init.d]# uname -a
Linux localhost.localdomain 2.6.18-1.2868.fc6 #1 SMP Fri Dec 15 17:32:54 EST 2006 i686 athlon i386 GNU/Linux

tripnixon 09-10-2009 09:33 AM

Still Relevant..
 
Thanks to jschiwal and raven4d for this. Bleeding into the CentOS 5.x, OpenSuse 10.x, Fedora 11, etc era... I could not find smbmount nor use mount.cifs...

These two postings tied it up together, proper. Thanks gents.

Quote:

Originally Posted by jschiwal (Post 2563581)
You can see if the share is available.
smbclient -L <host>

Also check if smbd and nmbd are running. Another possible problem is if the firewall doesn't have the ports the samba uses.


David_Elliott 02-10-2010 02:05 PM

CIFS Input Output Error -5
 
I was receiving the same error recently after my webmaster had to rebuild the server. Turns out the settings for the user account was limiting the number of connections to the share. As soon as he bumped that limit up, I was able to restore my mount.

AlvinCrofts 06-01-2012 03:16 PM

This seems to work for me from RHEL and OEL.

mount -t cifs //servername/sharename /mnt/localmount -o user=yourlogin@your.domain

Alvin

jsaravana87 06-04-2012 12:42 AM

Hi

These works fine in centos ,rhel distro

mount -t cifs //ipaddress/file /mnt -o username=username,password=password


All times are GMT -5. The time now is 01:26 PM.