LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-23-2009, 04:04 PM   #1
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,027

Rep: Reputation: 69
I'm having trouble mounting smb share in linux...


I have mounted samba shares before with other winxp boxes in my network by using

mount -t cifs //computername/share /mnt/computername -o ip=192.168.1.x and it worked fine.

However, I setup Virtualbox on this Slackware 12.2 computer and have added a windows xp pro sp3 virtual. On this virtual, I setup a share, enabled file and printer sharing, made sure the windows firewall allowed file and printer sharing and rebooted.

Then I tried using the above mount command above, but it says

mount error 111 = Connection refused

So I know it's probably a firewall problem. The thing is, all of my computers are in the 192.168.1.* network. However, this windows xp pro sp3 virtual is in a different network 10.0.2.*. This windows virtual can ping a computer in the 192.168.1.* network and the slackware 12.2 host can ping the windows virtual. They are both internal IPs and are both on the same subnet 255.255.255.0. However, since they are different ip ranges, are they really on the same subnet? I mean they can ping each other so I'm assuming they are.

Anyhow, I'm thinking that the fact this windows box is a virtual running on a different ip range is what is complicating things.

When I run nmap on the windows virtual, ports 139,445 are closed. Why is this so, I when through setup home network wizard, and make sure the windows firewall had file and printer sharing checked. I also created a folder on the desktop and enabled sharing on it.

Any ideas?

Last edited by trist007; 03-23-2009 at 04:08 PM.
 
Old 03-23-2009, 04:50 PM   #2
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Slackware/Knoppix
Posts: 1,761
Blog Entries: 14

Rep: Reputation: 267Reputation: 267Reputation: 267
What kind of Virtual Box networking are you using? The default is NAT; perhaps it would work better with "host interface"? I think that will also give your virtual xp a 192.168.1* address like everyone else.
 
Old 03-23-2009, 11:46 PM   #3
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,027

Original Poster
Rep: Reputation: 69
Yup that was the problem. So then if you select NAT, it puts the virtual on another network? Same subnet? I could ping across networks, and the virtual had access to the internet with dns, but then why couldn't I mount the cifs?
 
Old 03-24-2009, 09:37 AM   #4
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Slackware/Knoppix
Posts: 1,761
Blog Entries: 14

Rep: Reputation: 267Reputation: 267Reputation: 267
Eh, I'm not sure; part of the point of NAT is to hide behind it. The VirtualBox docs also list some limitations of their NAT - so I don't know if it's specifically their implemaentation or not.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting Permanently SMB share raji10k Linux - General 2 02-26-2009 04:33 AM
Mounting a SMB share with unicode charachters Simdude90015 Linux - Software 2 06-28-2007 12:54 AM
Error Mounting Windows SMB Share plustiber Linux - Networking 1 06-27-2005 01:39 AM
Mounting a SMB Share? owoods Linux - Newbie 2 09-04-2004 09:03 AM
Auto mounting Linux smb share on Windows at startup neranjana Linux - Networking 1 07-02-2004 07:56 PM


All times are GMT -5. The time now is 06:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration