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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-03-2009, 04:00 PM
|
#1
|
Member
Registered: Sep 2005
Distribution: fedora core 9
Posts: 324
Rep:
|
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.
|
|
|
12-03-2009, 04:40 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
12-04-2009, 08:36 AM
|
#3
|
Member
Registered: Sep 2005
Distribution: fedora core 9
Posts: 324
Original Poster
Rep:
|
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.
|
|
|
12-04-2009, 12:19 PM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
well that's a different error code isn't it? Have you tried googling for that code?
|
|
0 members found this post helpful.
|
All times are GMT -5. The time now is 03:32 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|