LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-03-2009, 04:00 PM   #1
knockout_artist
Member
 
Registered: Sep 2005
Distribution: fedora core 9
Posts: 324

Rep: Reputation: 33
mount -t cifs is not working on RHEL


Hi,

I tried to mount window's share on "2" linux boxes.


FC9:
Code:
# sudo  mount -t cifs   //d-data/share    -o username=name,password=passwd tmp-data/
works fine.


How ever on RH5
Code:
#mount -t cifs   //d-data/share    -o username=name,password=passwd tmp-data/

mount: wrong fs type, bad option, bad superblock on //d-data/share ,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

# dmesg | tail
 CIFS VFS: cifs_mount failed w/return code = -22

# lsmod | grep fs
nfsd                  285065  17 
exportfs               38849  1 nfsd
auth_rpcgss            81889  1 nfsd
cifs                  281297  0 
hfsplus               111817  0 
nfs                   290189  0 
lockd                  99185  3 nfsd,nfs
fscache                52385  1 nfs
nfs_acl                36673  2 nfsd,nfs
autofs4                57033  2 
sunrpc                197897  15 nfsd,auth_rpcgss,nfs,lockd,nfs_acl

# lsmod | grep fat

vfat                   46401  0 
fat                    85873  1 vfat
I did install samaba on the RH too.

any ideas?

Thanks

Last edited by knockout_artist; 12-03-2009 at 04:02 PM.
 
Old 12-03-2009, 04:40 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
according to a couple of quick googles, -22 means an invalid argument. People on other forums seem to replace the hostname with an IP address and it works, few seem to know why though. Some others found installing the smbfs package on their ubuntu boxes made cifs work as expected with hostnames too.
 
Old 12-04-2009, 08:36 AM   #3
knockout_artist
Member
 
Registered: Sep 2005
Distribution: fedora core 9
Posts: 324

Original Poster
Rep: Reputation: 33
Thanks Chris,

But replacing host with does not work either.

Now I get this:

Code:
 mount: //XX.XX.X.X/share/ is not a valid block device

and 
CIFS VFS: cifs_mount failed w/return code = -6
Same command works like a charm on FC9.

Last edited by knockout_artist; 12-04-2009 at 08:42 AM.
 
Old 12-04-2009, 12:19 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well that's a different error code isn't it? Have you tried googling for that code?
 
0 members found this post helpful.
  


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
manual mount cifs works but srcipt mount cifs has mount error (13): Permission denied CADIT Linux - Newbie 6 11-20-2009 02:48 PM

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

All times are GMT -5. The time now is 03:32 PM.

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