Samba Mount Headache
I banging my head, I am unable to mount samba share. Here is the info
Samba share is in RHEL 6.5 # vi /etc/samba/smb.conf [sambashare] comment = samba share path = /smbdemo guest ok = yes browseable = yes # ls -dZ /smbdemo/ drwxrwxrwx. root root system_u:object_r:samba_share_t:s0 /smbdemo/ # getsebool -a | grep samba samba_create_home_dirs --> on samba_domain_controller --> off samba_enable_home_dirs --> on samba_export_all_ro --> on samba_export_all_rw --> on samba_portmapper --> off samba_run_unconfined --> off samba_share_fusefs --> off samba_share_nfs --> off sanlock_use_samba --> off use_samba_home_dirs --> off virt_use_samba --> off Accessing this share from another Red Hat Box 6.4 (samba-client) # smbclient -L 192.168.1.10 -U don [Works perfectly] Now, when I try to mount the share as: # mount.cifs //192.168.1.9/smbdemo /opt/test/ -o user=don Password: Retrying with upper case share name mount error(6): No such device or address Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) # smbclient //192.168.1.9/smbdemo -U don Enter don's password: Domain=[BARNES] OS=[Unix] Server=[Samba 3.6.23-14.el6_6] tree connect failed: NT_STATUS_BAD_NETWORK_NAME I searched in google but no avail. |
Shouldn't you be trying mounting with this name: sambashare because that is the name that you have given to the share. So the command should look like:
Code:
mount.cifs //192.168.1.9/smbdemo /opt/test/ -o user=don Code:
mount error(6): No such device or address |
Quote:
# vi /etc/samba/smb.conf [smbdemo] comment = samba share path = /smbdemo guest ok = yes browseable = yes # mount.cifs //192.168.1.9/smbdemo /opt/test/ -o user=don,password=don # df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_client02-lv_root 13G 2.4G 10G 19% / tmpfs 344M 0 344M 0% /dev/shm /dev/sda1 485M 33M 427M 8% /boot //192.168.1.9/smbdemo 13G 2.4G 9.9G 20% /opt/test ..GREAT...It was a PAIN in @$$ ... ISSUE RESOLVED... :) :) :) |
You're welcome. Yes if you changed the share name to smbdemo then it will work with the command you mentioned and I forgot to change the name of share in the command :)
The command should look as follows with the old setup you mentioned: Code:
mount.cifs //192.168.1.9/sambashare /opt/test/ -o user=don Enjoy Linux!!! |
All times are GMT -5. The time now is 05:55 PM. |