LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 06-22-2001, 12:38 AM   #1
jondowd
LQ Newbie
 
Registered: Jun 2001
Location: Ashland Oregon
Distribution: mandrake 8.0 - trying others all the time
Posts: 3

Rep: Reputation: 0
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
 
Old 06-22-2001, 06:23 AM   #2
Wazza
Member
 
Registered: Dec 2000
Location: South Australia
Distribution: RedHat 7.2
Posts: 55

Rep: Reputation: 15
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.
 
Old 06-22-2001, 08:58 AM   #3
notlinus
Member
 
Registered: May 2001
Location: Kingsport, TN
Distribution: RedHat 6.1
Posts: 61

Rep: Reputation: 15
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
 
Old 06-22-2001, 09:29 AM   #4
jondowd
LQ Newbie
 
Registered: Jun 2001
Location: Ashland Oregon
Distribution: mandrake 8.0 - trying others all the time
Posts: 3

Original Poster
Rep: Reputation: 0
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...
 
Old 06-22-2001, 09:59 AM   #5
notlinus
Member
 
Registered: May 2001
Location: Kingsport, TN
Distribution: RedHat 6.1
Posts: 61

Rep: Reputation: 15
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.
 
Old 06-22-2001, 06:56 PM   #6
Wazza
Member
 
Registered: Dec 2000
Location: South Australia
Distribution: RedHat 7.2
Posts: 55

Rep: Reputation: 15
oops, sorry about the "resolv.conf" error
 
  


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
trouble setting shares so samba networked xp box can browse files mjewell Mandriva 4 11-13-2005 08:20 AM
Give user permission to mount/use cdrom drives or usb drives zwyrbla Linux - Newbie 2 08-23-2004 04:30 PM
nfs mount - shared directories on a networked machine kh_ibrahim Linux - Software 2 08-16-2004 01:05 AM
mount a networked drive? digital bots Linux - Newbie 5 04-19-2002 11:21 AM
CD Drives doesn't mount by themselves. shankariyer Linux - Software 4 04-02-2002 11:48 AM


All times are GMT -5. The time now is 04:36 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration