LinuxQuestions.org
Visit Jeremy's Blog.
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 12-13-2002, 10:17 AM   #1
jmarsh
Member
 
Registered: Dec 2002
Posts: 129

Rep: Reputation: 15
Question Mapping a network drive in linux


i am running linux red hat 8.0. i am trying to map a network drive from my linux box to a microsoft windows 2000 file server. does anybody know how i can do this? i am fairly new to linux so any help would be great. thanks
 
Old 12-13-2002, 10:23 AM   #2
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
Sorry? Is there something on your Linux machine that you want to share with your Windows machine? If so, then you will need to take a look at something called SAMBA. It should come as a default part of your RedHat 8.0 setup.

If, however, you are trying to access something on the Windows machine, then you do not 'map a network drive' - Windows uses drives, Linux does not - you mount the share. Again, reading a little on Samba will help you enormously here.

HTH
 
Old 12-13-2002, 10:24 AM   #3
Syncrm
Member
 
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472

Rep: Reputation: 30
you're looking for samba.

search this forum... there's quite a bit of info here about samba.
 
Old 12-13-2002, 10:26 AM   #4
Syncrm
Member
 
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472

Rep: Reputation: 30
damnit, i hate it when people post replies at the same time i do!
 
Old 12-13-2002, 10:30 AM   #5
jmarsh
Member
 
Registered: Dec 2002
Posts: 129

Original Poster
Rep: Reputation: 15
i am reading about samba right now. can somebody give me a little heads up on how to mount a share?
 
Old 12-13-2002, 10:31 AM   #6
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
From the command line:

mount -t smbfs //servername/share /mnt/mountpoint
 
1 members found this post helpful.
Old 12-13-2002, 10:52 AM   #7
joeca12
Member
 
Registered: Dec 2002
Posts: 41

Rep: Reputation: 15
I have Samba setup. I am able to see my Linux box from the windows end of things. Now I am trying to mount a drive on my linux box. I am trying to mount a W2K server. So I typed the command mount -t smbfs //servername/share /dev/hda1. It prompts me for a password and then says "cannot mount on /dev/hda1: Not a directory smbnt failed 1

What am I doing wrong???
 
Old 12-13-2002, 10:57 AM   #8
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
What? //servername/share is the Win2k end of things. If your Windows machine is called BOB and the share is called MUSIC, then you'd have //BOB/MUSIC. The /mnt/mountpoint is where you want to access the files. I would have it as /mnt/bob/music... so that you know which computer and which share it is. Thus, you would have:

mount -t smbfs //BOB/MUSIC /mnt/bob/music

You would never use /dev/hda1 as your mount point! That is the 1st partition on your 1st harddrive on your local machine... ie your Linux machine!

Note: you would need to create (as root) the directory /mnt/bob and the subdirectory /mnt/bob/music before you tried to mount the share else you would get the same error.
 
Old 12-13-2002, 11:00 AM   #9
joeca12
Member
 
Registered: Dec 2002
Posts: 41

Rep: Reputation: 15
Thanks I was putting my servername in and share I was just using that as an example. Thank you for your help.
 
Old 12-13-2002, 11:04 AM   #10
jmarsh
Member
 
Registered: Dec 2002
Posts: 129

Original Poster
Rep: Reputation: 15
i typed this mount -t nfs //myservername/my shared drive /mnt/users

i am getting this error: directory to mount not in host:dir format

what is this error and how can i fix it?
 
Old 12-13-2002, 11:11 AM   #11
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
Err... JMarsh, you would use -t nfs when you are trying to access 'shares' from a Linux machine to a Linux machine. If you are using Windows in any way, you need to use -t smbfs

If you want to use nfs to share stuff between *nix machines, then you need to read up on that instead. You would need [b]mount -t nfs x.x.x.x:/dirname /mnt/mountpoint[/i] in this case, where x.x.x.x is the ip address of the machine (you can use hostnames too), and /dirname is the directory on the host machine, and /mnt/mountpoint is where you want to access them from on your local machine.
 
Old 12-13-2002, 12:08 PM   #12
jmarsh
Member
 
Registered: Dec 2002
Posts: 129

Original Poster
Rep: Reputation: 15
i was able to get it working with the -t smbfs command. thanks alot all for your help
 
  


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
Help with drive mapping from linux to linux over a network nevarlen Linux - Networking 3 03-01-2005 02:28 PM
Mapping a network drive mikepengelly Linux - Networking 1 08-31-2004 04:27 PM
Regarding Mapping to Network Drive ssnkumar Linux - General 3 06-18-2004 02:11 PM
Mapping a network drive from Windows 2k to an ftp, Apache/1.3.27 Server DumbWindow$User General 5 04-08-2004 01:16 PM
Mapping Network Drive at every boot? HOW TO? shassouneh Linux - Networking 0 11-06-2002 01:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:24 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
Open Source Consulting | Domain Registration