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.
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.
|
 |
06-22-2001, 12:38 AM
|
#1
|
LQ Newbie
Registered: Jun 2001
Location: Ashland Oregon
Distribution: mandrake 8.0 - trying others all the time
Posts: 3
Rep:
|
Do I use samba to mount networked drives?
I have two computers on my desk at my job. My Linux box has two NICs and my MS windows box obtains a DHCP internet connection from eth1 (I'm a newbie, a friend set it up).
I'd like to mount the drives in the MS windows box but don't know where to start.
It's really fun to be able to use my linux box at home and log into my linux box at work using ssh, but how can I see the files that are a few inches away on the MS windows box?
I am running Mandrake 8.0
Thanks, Jon
|
|
|
06-22-2001, 06:23 AM
|
#2
|
Member
Registered: Dec 2000
Location: South Australia
Distribution: RedHat 7.2
Posts: 55
Rep:
|
Hi there.
As far as I know, you will use Samba to mount the network drives on the Windows box.
You need Samba installed and set up, and shares enabled on the Windows box ofcourse.
To access the windows drive, log on as root on the Linux box, and use
smbmount //windows ip address/sharename /mnt/mountdir
so for me thats smbmount //192.168.0.2/c /mnt/windows
You can use the host name instead of the ip number if you have your resolv.conf set up, and create any directory in /mnt you like.
then ls /mnt/windows will list my c drive.
It's no different when telnetting into the Linux comp, although I have never used ssh, I guess it would be the same.
Im not sure if this is what you were asking, however there are some good Samba how to's out there to get you started
Good luck
Wazza
Last edited by Wazza; 06-22-2001 at 06:25 AM.
|
|
|
06-22-2001, 08:58 AM
|
#3
|
Member
Registered: May 2001
Location: Kingsport, TN
Distribution: RedHat 6.1
Posts: 61
Rep:
|
The Windows box using DHCP may be an issue. Others may have a way around this, but I found that I needed the IP address of the Windows box in order to mount it in Linux. Since the Winbox is using DHCP, this address may change. My solution was to buy a Linksys router (about $100 at Circuit City or Best Buy), have it use DHCP to get its own IP, but on the LAN side of the router I use static IPs.
If you have a static IP address for the Winbox, edit the Hosts file in /etc to add the winbox. Let's say that the windows machine is called Winbox, and the share you wish to access is called WinC.
Create a "mount point" directory. Typically this would be something like /mnt/winc.
Once Hosts is modified, you can mount with:
mount -t smbfs //Winbox/WinC /mnt/winc
|
|
|
06-22-2001, 09:29 AM
|
#4
|
LQ Newbie
Registered: Jun 2001
Location: Ashland Oregon
Distribution: mandrake 8.0 - trying others all the time
Posts: 3
Original Poster
Rep:
|
Thank you both for your responses.
Come to think of it, the windows box is *not* using DHCP. but gets its address (static) from the linux box which is set up to do masquerading.
I'm off to Mandrake's Samba tutorial...
|
|
|
06-22-2001, 09:59 AM
|
#5
|
Member
Registered: May 2001
Location: Kingsport, TN
Distribution: RedHat 6.1
Posts: 61
Rep:
|
Good idea, but - you do NOT need to use Samba to access the windows drives, only for the windows drives to access the Linux drives.
|
|
|
06-22-2001, 06:56 PM
|
#6
|
Member
Registered: Dec 2000
Location: South Australia
Distribution: RedHat 7.2
Posts: 55
Rep:
|
oops, sorry about the "resolv.conf" error
|
|
|
All times are GMT -5. The time now is 01:38 AM.
|
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
|
|