Link to home
Start Free TrialLog in
Avatar of GuildOfDruids
GuildOfDruidsFlag for United Kingdom of Great Britain and Northern Ireland

asked on

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











Avatar of ry_berk
ry_berk
Flag of United States of America image

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/
These files:

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


Sorry
ASKER CERTIFIED SOLUTION
Avatar of medvedd
medvedd

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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=******
Avatar of GuildOfDruids

ASKER

Yes it was a stupid question for you but not for me :P Thanks alot for your help.