Mapping a Network Drive in Linux
description
Transcript of Mapping a Network Drive in Linux
Visit the LQ Articles and Editorials section
Home Forums HCL Reviews Tutorials Articles Register Search
LinuxQuestions.org > Forums > Linux
Forums > Linux - Networking
Mapping a network drive in
linux
User Name User Name Remember Me?
Password Log in
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 willhave the ability to post topics, receive our newsletter, use the advancedsearch, 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 iscompletely 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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the LinuxOperating System, geared toward new users as anexploration tour and getting started guide, with exercises atthe end of each chapter. For more advanced trainees it canbe a desktop reference, and a collection of the baseknowledge needed to proceed with system and networkadministration. This book contains many real life examplesderived from the author's experience as a Linux system andnetwork administrator, trainer and consultant. They hopethese examples will help you to get a better understandingof the Linux system and that you feel encouraged to try outthings on your own.
Click Here to receive this Complete Guide absolutely free.
0 LinkBack Search this Thread
Main Menu
Linux ForumsAndroid ForumChrome OS ForumSearchLQ TagsLinux HCLLinux TutorialsLQ Job MarketplaceLinux WikiDistro ReviewsBook ReviewsDownload LinuxSocial GroupsLQ BlogsHome
(Con't)
[Log in to get rid of this advertisement]
12-13-2002, 10:17 AM #1
jmarshMember Registered: Dec 2002Posts: 129
Rep:
Mapping a network drive in linux
i am
running linux red hat 8.0. i am trying to map anetwork drive from my linux box to a microsoftwindows 2000 file server. does anybody know how ican do this? i am fairly new to linux so any helpwould be great. thanks
12-13-2002, 10:23 AM #2
ThymoxSenior Member Registered: Apr 2001Location: Cornwall, England.Distribution: Debian + UbuntuPosts: 4,345
Rep:
Sorry? Is there something on your Linux machinethat you want to share with your Windowsmachine? If so, then you will need to take a look atsomething called SAMBA. It should come as adefault part of your RedHat 8.0 setup.
If, however, you are trying to access something onthe Windows machine, then you do not 'map anetwork drive' - Windows uses drives, Linux doesnot - you mount the share. Again, reading a littleon Samba will help you enormously here.
HTH
12-13-2002, 10:24 AM #3
SyncrmMember Registered: Aug 2001Location: Lansing, MichiganDistribution: slackware8+Posts: 472
Rep:
you're looking for samba.
search this forum... there's quite a bit of info hereabout samba.
12-13-2002, 10:26 AM #4
SyncrmMember Registered: Aug 2001Location: Lansing, MichiganDistribution: slackware8+Posts: 472
Rep:
damnit, i hate it when people post replies at thesame time i do!
My LQ
LoginRegister
12-13-2002, 10:30 AM #5
jmarshMember Registered: Dec 2002Posts: 129
Original Poster Rep:
i am reading about samba right now. can somebodygive me a little heads up on how to mount a share?
12-13-2002, 10:31 AM #6
ThymoxSenior Member Registered: Apr 2001Location: Cornwall, England.Distribution: Debian + UbuntuPosts: 4,345
Rep:
From the command line:
mount -t smbfs //servername/share/mnt/mountpoint
12-13-2002, 10:52 AM #7
joeca12Member Registered: Dec 2002Posts: 41
Rep:
I have Samba setup. I am able to see my Linux boxfrom the windows end of things. Now I am trying tomount a drive on my linux box. I am trying to mounta W2K server. So I typed the command mount -tsmbfs //servername/share /dev/hda1. It promptsme 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
ThymoxSenior Member Registered: Apr 2001Location: Cornwall, England.Distribution: Debian + UbuntuPosts: 4,345
Rep:
What? //servername/share is the Win2k end ofthings. If your Windows machine is called BOB andthe share is called MUSIC, then you'd have//BOB/MUSIC. The /mnt/mountpoint is where youwant to access the files. I would have it as/mnt/bob/music... so that you know whichcomputer and which share it is. Thus, you wouldhave:
mount -t smbfs //BOB/MUSIC /mnt/bob/music
You would never use /dev/hda1 as your mountpoint! That is the 1st partition on your 1stharddrive on your local machine... ie your Linuxmachine!
Note: you would need to create (as root) thedirectory /mnt/bob and the subdirectory/mnt/bob/music before you tried to mount theshare else you would get the same error.
12-13-2002, 11:00 AM #9
joeca12Member Registered: Dec 2002Posts: 41
Rep:
Thanks I was putting my servername in and share Iwas just using that as an example. Thank you foryour help.
HP 920XL MagentaOriginal High CapacityInk Cartridge (CD973AE)
14" Asus S400CA-CA071H Touch VivoBookIntel Core i3 2365M1.4GHz 4GB DDR3 Mem500GB HDD Bt Win 8
Asus Laptop - AsusTaiChi Intel Core i7Processor 4Gb RAM128Gb Solid State Drive13.3 inch ConvertibleLaptop
£12.59999inks
£430.96Scan Computers
£1,499.00Very.co.uk
Write for LQ
LinuxQuestions.org islooking for peopleinterested in writingEditorials, Articles,Reviews, and more. Ifyou'd like to contributecontent, let us know.
Main Menu
LQ CalendarLQ RulesLQ SitemapSite FAQView New PostsView Latest PostsZero Reply ThreadsLQ Wiki Most WantedJeremy's BlogReport LQ Bug
Syndicate
Latest Threads
LQ NewsTwitter: @linuxquestionsidenti.ca: @linuxquestions
12-13-2002, 11:04 AM #10
jmarshMember Registered: Dec 2002Posts: 129
Original Poster Rep:
i typed this mount -t nfs //myservername/myshared drive /mnt/users
i am getting this error: directory to mount not inhost:dir format
what is this error and how can i fix it?
12-13-2002, 11:11 AM #11
ThymoxSenior Member Registered: Apr 2001Location: Cornwall, England.Distribution: Debian + UbuntuPosts: 4,345
Rep:
Err... JMarsh, you would use -t nfs when you aretrying to access 'shares' from a Linux machine to aLinux machine. If you are using Windows in anyway, you need to use -t smbfs
If you want to use nfs to share stuff between *nixmachines, then you need to read up on thatinstead. You would need [b]mount -t nfsx.x.x.x:/dirname /mnt/mountpoint[/i] in this case,where x.x.x.x is the ip address of the machine (youcan use hostnames too), and /dirname is thedirectory on the host machine, and/mnt/mountpoint is where you want to accessthem from on your local machine.
12-13-2002, 12:08 PM #12
jmarshMember Registered: Dec 2002Posts: 129
Original Poster Rep:
i was able to get it working with the -t smbfscommand. thanks alot all for your help
Posting Rules
You may not post new threadsYou may not post repliesYou may not post attachmentsYou may not edit your posts
Facebook: linuxquestionsGoogle+: linuxquestions
BB code is OnSmilies are On[IMG] code is OffHTML code is OffTrackbacks are OffPingbacks are OnRefbacks are Off
Forum Rules
Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with drive mappingfrom linux to linux over anetwork
nevarlen Linux - Networking 303-01-2005
02:28 PM
Mapping a network drive mikepengelly Linux - Networking 108-31-2004
04:27 PM
Regarding Mapping toNetwork Drive
ssnkumar Linux - General 306-18-2004
02:11 PM
Mapping a network drivefrom Windows 2k to an ftp,Apache/1.3.27 Server
DumbWindow$User General 504-08-2004
01:16 PM
Mapping Network Drive atevery boot? HOW TO?
shassouneh Linux - Networking 011-06-2002
01:59 PM
All times are GMT -5. The time now is 05:38 AM.
Contact Us - Advertising Info - Rules - LQ Merchandise - Donations - ContributingMember - LQ Sitemap -
Open Source Consulting | Domain Registration