Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
09-25-2006, 10:55 AM
|
#16
|
|
Member
Registered: Nov 2004
Posts: 87
Rep:
|
Fedora Core 5 (FC5) SMB / CIFS Solution
Hello all
Here is what you should do to get a list of available SMB mounts...
#> smbclient -L the_server_name -U your_domain_name/your_username
This will list all available servers even if only one is specified, I'll have to read up more on the man pages.
Now to mount...
#> mount -t cifs //the_server_name/desired_directory /mnt/this_dir --verbose -o user=your_username,domain=your_domain_name
The system will the prompt for your domain login and then mount.
If you like write this to /root/bin/mnt.whatever.
Then...
#> chmod 700 /root/bin/mnt.whatever
This will enable you to mount as root whenever you choose. Also incl a uid option if you want users other than root to access...
#> mount -t cifs //the_server_name/desired_directory /mnt/this_dir --verbose -o user=your_username,domain=your_domain_name,uid=fc5_username
Something else, it did take a few tries but by using the "--verbose" option it showed exactly how "mount" parses the directory slashes "\" and "/"...
Hope this helps
Graeme
|
|
|
|
09-25-2006, 11:02 AM
|
#17
|
|
Member
Registered: May 2004
Posts: 46
Rep:
|
Can you mount to the shared folder from another windows pc?
I thought you should check and make sure you can share the folder from another pc. To make sure windows isn't blocking you.
|
|
|
|
10-16-2006, 11:52 AM
|
#18
|
|
LQ Newbie
Registered: Oct 2006
Posts: 1
Rep:
|
I think the issue is that "//192.168.1.77/E/Tunes" isn't a windows share. Youre probably connecting to the shared folder "//192.168.1.77/E" and wants to mount the ordinary folder "Tunes" on that shared folder (hope all the folder referencing made any sence).
I haven't found any way to do this with samba, "mount.smbfs" or "mount.cifs", but there are two options anyway.
1. If you are administrating the windows machine, try making the Tunes folder a share, and name it something like E_Tunes, using some magic rightclick manoeuver on your Windows machine. Then mount the new share "//192.168.1.77/E_Tunes" on your Linux box.
2. Not boss of the shares, you can use Nautilus file browser to mount folders in "shared folders". In Nautilus select File->Connect to Server. Service Type=Windows share, server=192.168.1.77, share=E, folder=Tunes. -> Connect. You can now access the folder using Nautilus.
Good luck
/Robert Jancev
|
|
|
|
11-21-2006, 02:52 PM
|
#19
|
|
LQ Newbie
Registered: Jun 2006
Posts: 2
Rep:
|
mounting smb folder
Is might be me but this mount //192.168.1.77/E/Tunes isnt vaalid.
The drive your mount is on is not used.
It should be //server/MountName
I.e. //192.168.1.77/Tunes
onit the E
Hope this helps
|
|
|
|
11-21-2006, 02:54 PM
|
#20
|
|
LQ Newbie
Registered: Jun 2006
Posts: 2
Rep:
|
mounting smb
This mount //192.168.1.77/E/Tunes isnt vaalid.
The drive your mount is on is not used is smb/cifs file system.
It should be //server/MountName
I.e. //192.168.1.77/Tunes
omit the E
Hope this helps
|
|
|
|
03-04-2007, 02:39 AM
|
#21
|
|
Member
Registered: Mar 2006
Location: Redmond, WA
Distribution: FC4, WinXP Pro
Posts: 37
Rep:
|
I hit a similar issue. The answer is that you can only mount the share directly. You cannot mount a subfolder of a share.
So instead of doing:
mount -t cifs //skybyte/E/Tunes /mp3/flx
Do this instead:
mount -t cifs //skybyte/E /mp3/flx
|
|
|
|
05-01-2007, 08:10 AM
|
#22
|
|
Member
Registered: Mar 2007
Location: Rochester Hills, MI, USA
Distribution: Mandriva 2007, CentOS 5, Debian 4.0
Posts: 38
Rep:
|
I've found that the following syntax works perfect for mounting samba shares:
Quote:
|
mount -t cifs -o user=<user-name> //<server-name>/<root-share-name> <mount-point>
|
Here are some very important points about how the mount utility works (or not works) when it comes to mounting samba shares:
1. For the -t parameter smbfs *won't* work. That value for the -t parameter has retired and no longer supported.
2. If you specify a user whose password is *blank*, you'll need to just press enter when prompted for password. In this case, mount will fail with a permission denied error. So always specify a user who does have a password.
3. <share-name> *must* be the root of a share not a subdirectory of it. For example, if you have a server named myserver with the following shared directory structure,
RootShare
|
---SubDirOne
---SubDirTwo
|
---SubSubDirOne
then you can mount nothig but the directory RootShare. Trying to mount any of the sub-directories will result in the following error:
Quote:
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)
|
4. The <mount-point> should be an already existing directory.
I hope this makes up for a crystal clear solution to a *very* common problem. Try googling for it and you'll see it seems like everyone on this planet has gone through this problem
Note: I've also posted this same solution on my blog Sooper Tux.
Last edited by ejan; 05-05-2007 at 03:29 AM.
|
|
|
|
10-19-2007, 04:00 AM
|
#23
|
|
LQ Newbie
Registered: Oct 2007
Posts: 1
Rep:
|
hey i think i figured it out you got to use \ instead of / for windows shares so:
mount -t cifs \\\\server\\share /mnt/net -o domain=WHATEVER -o username=thisandthat
|
|
|
|
07-03-2009, 06:09 PM
|
#24
|
|
LQ Newbie
Registered: Jul 2009
Posts: 1
Rep:
|
Caution!!
the network path MUST BE in LOWERcase, even if the original share name (shared with windows) includes capital letters.
the command should look like this (tested Fedora 11, Windows Xp shared folder) (1 line)
/sbin/mount.cifs '//192.168.1.99/shared folder name/some path here/folder to mount' '/home/yourusername/Desktop/folderlocal' -o user=windowsusername,pass=windowspassword
Sorry to bring this up its high on google results and it doesnt help much as it was 
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:07 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|