Mount samba share (CentOS)

Hi,


I have two (CentOS 5.4) Servers, I have managed to setup samba on first server and is working fine as I have tested from windows machine (windows machine can access the share \\linux1)

Now on the 2nd Centos Machine, I'm trying to mount it, but it just doesn't work. I tried the following commands:

mount -t cifs //linuxserver1/backups -o username=XXXXXX,password=****** /backups
mount -t cifs //192.168.0.11/backups -o username=XXXXXX,password=****** /backups
mount -t cifs linuxserver1:/backups -o username=XXXXXX,password=****** /backups
mount -t cifs linuxserver1:/backups /backups

I get the following error message:
mount: wrong fs type, bad option, bad superblock on //192.168.0.11/backups/,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

When I check the dmesg I see the following logs
#dmesg | tail
 CIFS VFS: cifs_mount failed w/return code = -22
 CIFS VFS: cifs_mount failed w/return code = -22
 CIFS VFS: cifs_mount failed w/return code = -22
 CIFS VFS: cifs_mount failed w/return code = -22


Any help/advice will be must appreciated

Thanks











GuildOfDruidsAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
medveddConnect With a Mentor Commented:
Stupid question - do you have samba-client installed on 2nd machine?

yum list | grep samba-client
0
 
ry_berkCommented:
Try re-installing nfs-common

Also check these files and this walkthrough:

http://fconfig.wordpress.com/2006/08/17/setting-up-a-fedora-nfs-server/
0
 
ry_berkCommented:
These files:

/etc/exports
/etc/hosts.allow
/etc/hosts.deny
/etc/sysconfig/nfs


Sorry
0
 
tty2Commented:
mount.cifs -h

Usage:  mount.cifs <remotetarget> <dir> -o <options>
Options:
      user=<arg>
      pass=<arg>
      dom=<arg>

mount.cifs //linuxserver1/backups /backups -o user=XXXXXX,pass=******
0
 
GuildOfDruidsAuthor Commented:
Yes it was a stupid question for you but not for me :P Thanks alot for your help.




0
All Courses

From novice to tech pro — start learning today.