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.
|
|
12-13-2002, 10:17 AM
|
#1
|
Member
Registered: Dec 2002
Posts: 129
Rep:
|
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
|
|
|
12-13-2002, 10:23 AM
|
#2
|
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368
Rep:
|
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
|
|
|
12-13-2002, 10:24 AM
|
#3
|
Member
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472
Rep:
|
you're looking for samba.
search this forum... there's quite a bit of info here about samba.
|
|
|
12-13-2002, 10:26 AM
|
#4
|
Member
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472
Rep:
|
damnit, i hate it when people post replies at the same time i do!
|
|
|
12-13-2002, 10:30 AM
|
#5
|
Member
Registered: Dec 2002
Posts: 129
Original Poster
Rep:
|
i am reading about samba right now. can somebody give me a little heads up on how to mount a share?
|
|
|
12-13-2002, 10:31 AM
|
#6
|
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368
Rep:
|
From the command line:
mount -t smbfs //servername/share /mnt/mountpoint
|
|
1 members found this post helpful.
|
12-13-2002, 10:52 AM
|
#7
|
Member
Registered: Dec 2002
Posts: 41
Rep:
|
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???
|
|
|
12-13-2002, 10:57 AM
|
#8
|
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368
Rep:
|
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.
|
|
|
12-13-2002, 11:00 AM
|
#9
|
Member
Registered: Dec 2002
Posts: 41
Rep:
|
Thanks I was putting my servername in and share I was just using that as an example. Thank you for your help.
|
|
|
12-13-2002, 11:04 AM
|
#10
|
Member
Registered: Dec 2002
Posts: 129
Original Poster
Rep:
|
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?
|
|
|
12-13-2002, 11:11 AM
|
#11
|
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368
Rep:
|
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.
|
|
|
12-13-2002, 12:08 PM
|
#12
|
Member
Registered: Dec 2002
Posts: 129
Original Poster
Rep:
|
i was able to get it working with the -t smbfs command. thanks alot all for your help
|
|
|
All times are GMT -5. The time now is 02:24 PM.
|
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
|
|