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.
Just wanted your opinion on what the easiest way is to mount a windows share on my lan.
I've got a Slackware 10.2 box and a windows2000 box on my home network. The windows2000 box has 3 hard drives in it totaling 400GB. The D and E drives are where the data is stored (mp3s, etc). I'd like to access to the shares from my linux box.
looks like it connects to the machine, but then I get this:
14826: session request to 192.168.1.110 failed (Called name not present)
14826: session request to 192 failed (Called name not present)
Password:
14826: session setup failed: ERRDOS - ERRnoaccess (Access denied.)
I've tried the admin password, with no luck. I've also tried no password as you suggested with the same thing.
It says that the share name your calling to isn't defined on your Windows box.
Did you share your D: and E: drives? Or at least the folders with data that you want to access on Linux?
In Win Explorer, click right on the drive/folder and select the "sharing" tab. On this tab, make sure
that the folder/drive is being shared and give the share a name you can easily recognize.
You can also use the default sharenames (D$ and E$ for the drives) if you want.
For instance, let's say you want to share the E: drive and it contains some mp3s.
Then share the drive and give it a name like win_mp3 for instance.
On Linux, you can then use "smbmount" to mount
//win-box/win_mp3 on any directory on your filesystem.
The directory where you want to mount the win_mp3 share should be an empty one and it must exist before
you call smbmount.
On windows xp and windows 2000 shared (XP only if not in simple file shareing mode) files required a userid and a password to be specified when connecting. The user needs to have a active account on the windows XP or 2k box. smbmount can do this i would show you if i wasent at work ( No nix boxes here).
if you read the man page for smbmount it should tell you how.
tried smbmount //192.168.1.110/D$ /mnt/homegrown
get this:
22708: session request to 192.168.1.110 failed (Called name not present)
22708: session request to 192 failed (Called name not present)
Password:
22708: session setup failed: ERRDOS - ERRnoaccess (Access denied.)
also tried sharing out a specific folder on the drive:
smbmount //192.168.1.110/mp3s /mnt/homegrown/
22843: session request to 192.168.1.110 failed (Called name not present)
22843: session request to 192 failed (Called name not present)
Password:
22843: session setup failed: ERRDOS - ERRnoaccess (Access denied.)
SMB connection failed
any other ideas? or am I just doing this totally wrong?
As exvor points out, have you looked at the user credetials that are used to connect to the Windows share?
All Windows shares have permissions on them, so you'll need to give the proper username and password to access them. smbmount passes your credetials (username/password on the Linux box) by default, probably. So if those aren't the ones you need to give to Windows to get access on the share, then you'll need to supply some smbmount options for specifying the right username/passwd.
You should give the shares real names, not use "D$" (the default sharename). Linux shells may misread the $ as a special character, so enclosing it in single quotes (ie '//192.168.1.110/D$') is a good idea too.
Mounting a specific folder like
Quote:
smbmount //192.168.1.110/mp3s /mnt/homegrown/
will only work if the folder itself is shared on the Windows box.
On Windows, you can share both entire partitions (like D:, E:, etc) and folders, or a combination of both.
This is useful in case, for instance, you want to give different access permissions to the contents of
D: and D:\secrets\, but you still want to share both. If you want to share both the partition (like D and a folder on that partition, with the same access permissions, then you'll only need to put a Win share on the partition.
Remember also that, on Windows, share permissions are not the same as folder permissions.
In short, please verify:
1. the Windows share (name, permissions)
2. the username/passwd you're supplying to Windows in order to gain access.
My guess is that 1. is the problem, since you get an error that says that there is no share that has the name you gave.
2. would result in a "access denied" error only, not in the "called name not present" stuff. But with Windows, you can never be sure.
On Linux, it's definitely //, not \\. In the path, always forward slashes, not backslashes.
On Windows, it's exactly the opposite (backslashes everywhere).
If you're familiar with Windows, have you looked at the Event Viewer to see what's going on?
Do you have any kind of firewall on Windows or Linux that can be interfering with SMB connections?
Have you enabled the network file & printer sharing in the Properties of your network connection (Windows)?
Event Viewer is showing nothing.
Browsing from another windows machine, I go to \\192.168.1.110\mp3s
On the machine, it's located on the E: which is also shared out.
so on the local windows box, it's E:\mp3s (E and mp3s is shared out to all)
I've tried smbmount //192.168.1.110/mp3s
1780: session request to 192.168.1.110 failed (Called name not present)
1780: session request to 192 failed (Called name not present)
Password:
1781: tree connect failed: ERRDOS - ERRnosuchshare (You specified an invalid share name)
Unless I'm specifiying the wrong share name still?
if its shared as D$ its a hidden share. Windows xp by default shares out all the harddrives to the internet. (and yet somehow this is secure acording to MS) You should go into the mp3 folder on d and share it out. By default XP will not allow you to create a user share of an entire harddrive unless you have simple file shareing enabled. If thats the case then a userid and password are not required to share out.
THINGS TO TRY.
If you have another windows box try connecting to the share via the run line with \\theipaddress\sharename
if it asks for a password then you dont have simple file shareing enabled.
turn it on to simplefly things.
If anything go into windows xp and create a user with the exact name that your user is on the linux box.
Windows xp and win2k and linux do not use by default a simple file shareing scheme they have secuirty options that can make you go in circles. Remeber that samba was developed during the win98 days so it acts like win98 when trying to connect to shares on the network. but there is hope samba can connect to these shares.
In windows does the D drive have a hand under it or no. If not its being shared by the admin and no one other then the admin is able to connect to it. if it does then its being shared in userlevel and its something were doing wrong in the smbmount.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.