Linux - NetworkingThis 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.
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.
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?
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.