LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 11-28-2006, 04:05 AM   #1
BarryLinux
LQ Newbie
 
Registered: Nov 2006
Posts: 7

Rep: Reputation: 0
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
 
Old 11-28-2006, 04:42 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Gives an example here:
http://rpmfarm.free.fr/blog/?p=11
 
Old 11-28-2006, 06:42 AM   #3
BarryLinux
LQ Newbie
 
Registered: Nov 2006
Posts: 7

Original Poster
Rep: Reputation: 0
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
 
Old 11-30-2006, 07:03 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
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.
 
Old 12-29-2006, 11:53 PM   #5
tomva
Member
 
Registered: May 2006
Distribution: Fedora
Posts: 45

Rep: Reputation: 15
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
 
Old 12-30-2006, 03:50 AM   #6
raven4d
Member
 
Registered: Feb 2006
Location: Mars
Posts: 124

Rep: Reputation: 15
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
 
Old 12-30-2006, 04:38 AM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681
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).
 
Old 01-06-2007, 11:30 PM   #8
snostorm
LQ Newbie
 
Registered: Oct 2003
Location: pa
Distribution: Fedora 5/6, K/Ubuntu, a little SUSE
Posts: 2

Rep: Reputation: 0
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
 
Old 09-10-2009, 09:33 AM   #9
tripnixon
LQ Newbie
 
Registered: Sep 2009
Posts: 1

Rep: Reputation: 0
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 View Post
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.
 
Old 02-10-2010, 02:05 PM   #10
David_Elliott
LQ Newbie
 
Registered: Apr 2009
Posts: 3

Rep: Reputation: 0
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.
 
Old 06-01-2012, 03:16 PM   #11
AlvinCrofts
LQ Newbie
 
Registered: Feb 2012
Location: Plano Texas
Distribution: Oracle Enterprize
Posts: 1

Rep: Reputation: Disabled
This seems to work for me from RHEL and OEL.

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

Alvin
 
Old 06-04-2012, 12:42 AM   #12
jsaravana87
Member
 
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 558
Blog Entries: 5

Rep: Reputation: Disabled
Hi

These works fine in centos ,rhel distro

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cifs "mount error 13 = Permission denied" CIFS SUCKS humbletech99 Linux - Networking 45 04-06-2020 05:31 AM
mount.cifs - mount error 20 = Not a directory da_kidd_er Linux - Networking 10 10-16-2008 12:55 PM
Share Path Depth Restriction using CIFS? tluc1225 Linux - Networking 0 08-31-2006 09:23 PM
Access CIFS Share from Linux johnnybhoy67 Linux - Networking 0 11-30-2005 09:30 AM
CIFS samba share ronanio Linux - Software 1 11-06-2005 11:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration