GuildOfDruids
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
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=*
mount -t cifs //192.168.0.11/backups -o username=XXXXXX,password=*
mount -t cifs linuxserver1:/backups -o username=XXXXXX,password=*
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
These files:
/etc/exports
/etc/hosts.allow
/etc/hosts.deny
/etc/sysconfig/nfs
Sorry
/etc/exports
/etc/hosts.allow
/etc/hosts.deny
/etc/sysconfig/nfs
Sorry
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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=******
Usage: mount.cifs <remotetarget> <dir> -o <options>
Options:
user=<arg>
pass=<arg>
dom=<arg>
mount.cifs //linuxserver1/backups /backups -o user=XXXXXX,pass=******
ASKER
Yes it was a stupid question for you but not for me :P Thanks alot for your help.
Also check these files and this walkthrough:
http://fconfig.wordpress.com/2006/08/17/setting-up-a-fedora-nfs-server/