Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Dunno it it helps but i discovered some times ago that the syntax to mount samba shares has changed (i cannot remember when or which version...) but this gives me hard times... You seem to use the syntax that causes me problems, so i show you what was the syntax i used that did not work and the new one :
Code:
## Old Bad syntax
sudo mount -t cifs -o uid=${UTILISATEUR},gid=GROUP_NAME,username=${UTILISATEUR},workgroup=WORKGROUP_NAME //windows.domain.com/smb_share /mount_point
## New working syntax
sudo mount -t cifs //windows.domain.com/smb_share /mount_point -o username=${UTILISATEUR}
Hope this helps.
Last edited by PierreB.; 05-02-2013 at 03:50 AM.
Reason: Typo
Dunno it it helps but i discovered some times ago that the syntax to mount samba shares has changed (i cannot remember when or which version...) but this gives me hard times... You seem to use the syntax that causes me problems, so i show you what was the syntax i used that did not work and the new one :
Code:
## Old Bad syntax
sudo mount -t cifs -o uid=${UTILISATEUR},gid=GROUP_NAME,username=${UTILISATEUR},workgroup=WORKGROUP_NAME //windows.domain.com/smb_share /mount_point
## New working syntax
sudo mount -t cifs //windows.domain.com/smb_share /mount_point -o username=${UTILISATEUR}
Hope this helps.
Here is what i have with the new syntax
Code:
[root@vm2 ~]# mount -t cifs //192.168.1.34:/home/vm1/Desktop/samba /home/vm1/Desktop/samba-mount -o username=BUSARI
mount error: could not resolve address for 192.168.1.34:: Unknown error
---------- Post added 05-02-13 at 09:56 AM ----------
Quote:
Originally Posted by jitendra.sharma
Try this: -
@@@ CIFS(windows) share mount in linux @@@
[root@test ~]# mount -t cifs -o username=administrator,password=123 //172.16.0.25/downloads /mnt
The error is the colon ":", i am sure you mixed some Linux syntax to UNC syntax...
Also i am quite sure you don't need to use the absolute path for the samba share, only the shared folder name is required :
e.g : For a shared folder named : exported_DIR on a server named : SERVER, you have something like :
Code:
//SERVER/exported_DIR
Try again without the colon and let's see what's happening...
The error is the colon ":", i am sure you mixed some Linux syntax to UNC syntax...
Also i am quite sure you don't need to use the absolute path for the samba share, only the shared folder name is required :
e.g : For a shared folder named : exported_DIR on a server named : SERVER, you have something like :
Code:
//SERVER/exported_DIR
Try again without the colon and let's see what's happening...
Yes i am now able to mount samba but another problem exists where it is not mounting after reboot even after fstab entry
Ok, good news for your samba share, let's see what's next.
By the way, you can mark this thread as [SOLVED] and even push the answer that gave you the solution up using the " Did you find this post helpful? Yes " link at the bottom right of each answers.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.