Problem mounting SAMBA please help

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Problem mounting SAMBA please help
# 1  
Old 05-02-2013
RedHat Problem mounting SAMBA please help

I am trying to mount SAMBA/CIFS and it just won't work
Here are my settings...please let me know what i did wrong
This is Centos 6.4 box
Thanks!


cat /etc/samba/smb.conf
Code:
[samba]
    comment = Samba
        path = /home/vm1/Desktop/samba
        writable = yes
        public = yes

findsmb
Code:
                               *=DMB
                                +=LMB
IP ADDR         NETBIOS NAME     WORKGROUP/OS/VERSION 
---------------------------------------------------------------------
192.168.1.34    VM1            [MYGROUP] [Unix] [Samba 3.6.9-151.el6]


mount -v -t cifs -o username=BUSARI,password=dadon4u //home/vm1/Desktop/samba /home/vm1/Desktop/samba-mount
Code:
mount.cifs kernel mount options: ip=67.63.55.3,unc=\\home\vm1,,ver=1,user=BUSARI,prefixpath=Desktop/samba,pass=********

and then it hangs!!!

i have to press ctrl+c to cancel it and nothing gets mounted
now i went to dmesg

dmesg | tail
Code:
ISO 9660 Extensions: Microsoft Joliet Level 3
ISO 9660 Extensions: RRIP_1991A
SELinux: initialized (dev sr0, type iso9660), uses genfs_contexts
Registering the dns_resolver key type
Slow work thread pool: Starting up
Slow work thread pool: Ready
CIFS VFS: Error connecting to socket. Aborting operation
CIFS VFS: cifs_mount failed w/return code = -512
CIFS VFS: Error connecting to socket. Aborting operation
CIFS VFS: cifs_mount failed w/return code = -113

ofcourse ports for Samba and Samba Client are both turned on in system-config-firewall

Also

service smb status
Code:
smbd (pid  2039) is running...

service nmb status
Code:
nmbd (pid  2031) is running...


What am i doing wrong here?
# 2  
Old 05-02-2013
What jumps to my eyes is the ip address in the mount command. To me it would mean that there's at least two routers and the WAN between your client and your server. That does not have to be an error, but it may make things difficult.
Do you see the server/port from your client?
Do you have an explanation for error codes -512 and -113?
# 3  
Old 05-02-2013
Quote:
Originally Posted by RudiC
What jumps to my eyes is the ip address in the mount command. To me it would mean that there's at least two routers and the WAN between your client and your server. That does not have to be an error, but it may make things difficult.
Do you see the server/port from your client?
Do you have an explanation for error codes -512 and -113?
its both server and client on same CentOS 6.4 system...not sure what those errors are as well
# 4  
Old 05-02-2013
Have u tried smbclient

Quote:
smbclient //<hostname>/<sharename> -U <username>
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Mounting a samba share

Hi, I need to mount a directory from a Windows server to a CentOS box. The Windows server used is Windows Server 2003, and the path to the directory that I want to mount on CentOS is C:\Tomcat6\webapps\NASApp\logs. I am not sure of the correct way to mount this on CentOS, as most of the... (2 Replies)
Discussion started by: anaigini45
2 Replies

2. Solaris

Problem mounting iscsi filesystem

Hi, I have a strange problem with iscsi. My vfstab entry looks like this: /dev/md/dsk/d100 /dev/md/rdsk/d100 /zones/ssapp0895v01 ufs 2 iscsi - After rebooting, the filesystem gets mounted with the option "nosetuid". I believe the default should be "suid" /zones/ssapp0895v01 on... (0 Replies)
Discussion started by: alvaro66
0 Replies

3. UNIX for Dummies Questions & Answers

Help mounting Samba shares

I have these two shares on my Ubuntu Server: path = /media/share read only = no guest ok = yes path = /var/www read only = noI want to mount them to the directories that I created on my Desktop called "shared" and "www" how do I do this? I ran the command: smbclient -L... (1 Reply)
Discussion started by: shadowcat
1 Replies

4. HP-UX

Having problem with mounting in HPUX

Hi Gurus, I'm using HP-UX B.11.23 system. I've been having some problem in mounting a filesystem that has been defined in /etc/fstab as shown below. fstab entries: /dev/vgsap/ora10264 /oracle/PRD/102_64 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2 /dev/vgsap/orasapreog... (2 Replies)
Discussion started by: superHonda123
2 Replies

5. Ubuntu

Problem mounting harddisk

Hi all I am having a great deal of trouble mounting a harddisk on my Ubuntu 9.10 desktop. Output from "fdisk -l": Disk /dev/sda: 640.1 GB, 640135028736 bytes 86 heads, 15 sectors/track, 969196 cylinders Units = cylinders of 1290 * 512 = 660480 bytes Disk identifier: 0x00000001 ... (5 Replies)
Discussion started by: jnymarkp
5 Replies

6. UNIX for Dummies Questions & Answers

mounting problem

I have successfully installed redhat linux in my PC. But when i am trying to mount cdrom with the command "mount /dev/sda1 /mnt/cdrom" I am getting the following error "Unknown device /dev/sda1". Can anyone help me in this regard. cheers RRK (3 Replies)
Discussion started by: ravi raj kumar
3 Replies

7. UNIX for Dummies Questions & Answers

CD mounting problem

I have a Sun9 server. When I put a CD into it, I keep getting: Server1{root}:$PWD=> mount: Permission denied mount: cannot mount /vol/dev/dsk/c0t6d0/roxio1 It mounts fine in my Sun8 boxes. What am I doing wrong? (I'm logged in as root). Thanks! (0 Replies)
Discussion started by: FredSmith
0 Replies

8. Shell Programming and Scripting

Mounting problem.

Hi, I wanted to mount my windows folder under linux using samba server.. I just run this command : $mount -t smbfs -o fmask=666,ajay //16.100.225.179/Build_stage /mnt/share ajay is user name .. it prompted for password i have given that now i saw error message like 27893: session setup... (1 Reply)
Discussion started by: ajayyadavmca
1 Replies

9. UNIX for Dummies Questions & Answers

Problem with mounting

Hi people, I've made some search about it but i didn't find anything. I tried to mount my floppy, mount -t /dev/fd0 /mnt but it didn't work... it says : "Device not configured". Can you help me please??? And mounting my dos partiton... mount -t vfat /dev/hdc1... (6 Replies)
Discussion started by: Erythro73
6 Replies

10. UNIX for Dummies Questions & Answers

mounting disk problem

i am using Interactive Unix 4.1.1 and i have a disk from a another unix machine which is Unix Slackware 2.1 i'm having problem mounting the disk. it gives me an error message, ??? is there any solution to this ??? it say the disk has invalid file system (1 Reply)
Discussion started by: mharck29
1 Replies
Login or Register to Ask a Question