Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I mount a windows share

Status
Not open for further replies.

kzn

MIS
Jan 28, 2005
209
GB
Hi I have created a share on my windows machine, if I type \\192.168.0.1\myshare on any other pc I can see the contents. Now from my linux server I have typed the following: mount -t smbfs -o username=****,password=**** //192.168.0.1/myshare /mnt/wdrive

I have a folder called wdrive in the mnt folder

I get the error: Error connecting to 192.168.0.1 (Connection refused)
1524: Connection to 192.168.0.1 failed

The linux server is running Vmware.

Has anyone got any idea what I am doing wrong. The window share has share and security setttings set to full permissions for everyone.

Any help appreciated.

Thanks
 
Is the Windows share on a physical machine, ergo not on a VMWare under Linux?

under /mnt have you created the folder called wdrive before hand? if not do so with mkdir /mnt/wdrive...

SMBFS is old and should not be used anymore, instead use CIFS...

your line:
Code:
mount -t smbfs -o username=****,password=**** //192.168.0.1/myshare /mnt/wdrive

should read instead:
Code:
mount -t cifs //192.168.0.1/myshare/mnt/wdrive -o user=User,password=password

note that there is NO space between the COMMA and password....

keep us posted...



Ben
"If it works don't fix it! If it doesn't use a sledgehammer..."
How to ask a question, when posting them to a professional forum.
Only ask questions with yes/no answers if you want "yes" or "no"
 
Hi Ben

Thanks for the reply. I have managed to get it working using smbfs, I had to run the command esxcfg-firewall -e smbClient. As a newbie to linux this has taken 3 days :( I did try the command with cifs as you mentioned above but I was unable to get it working ... it looks as if it does not understand that command ... maybe I need to add something to get that part of it working.

Cheers
 
maybe I need to add something to get that part of it working.

you need to implement CIFS...

most uptodate Distros should be using CIFS... since you did not mention what distro you are using and version, I had to assume that it was implemented...

Here is more info on CIFS VFS...

CIFS VFS - Advanced Common Internet File System for Linux

Implementing CIFS

Have fun...



Ben
"If it works don't fix it! If it doesn't use a sledgehammer..."
How to ask a question, when posting them to a professional forum.
Only ask questions with yes/no answers if you want "yes" or "no"
 
Thanks Ben, appreciate your help.
 
Yeah, I would've checked the logs on your Linux box for connections being bounced off of internal iptables.
Unless your Linux box sits on the Internet, I would turn off iptables, you don't really need a firewall running for basic personal use. It will make your life easier as a newbie.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top