LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-19-2005, 10:05 AM   #1
Aubrey-calm
LQ Newbie
 
Registered: Aug 2005
Distribution: Slackware
Posts: 7

Rep: Reputation: 0
I'm trying to "Map network drive"


First I want to thank those who have developed this site. I think without it, many would be lost, especially comming from a Windows environment. Thanks guys/girls.

First off, I'm using Slackware - version I don't know. I have a buddy that is really knowlegable with all of this, and he is the one that did the install for me (he really babied me), so I didn't really understand all of what was done. Anyway, I have 2 internal hard drives. One is 200GB, Windows installed there, and a 160GB that Linux is installed on. Everything boots up fine, with both OS, and seems to be working nicely.

I have also, one file server - Snap Server 2200 -. It has (2) 80GB drives that are mirrored. On that "server" , I have some music, programs, etc...

Okay, to my question. Basicly I want to be able to play music through the music player I have. I have set the IP, and I can see all the files on the server, that's no problem. But in order to play the music (while I peael through all these Linux books) I have to copy all the music files to the local disk. I know in Windows I can just map the drive, and play the music directly from the file server. I don't know if I have to mount the device, or what. If so, I don't know where to find the device name/number to mount. I have tried to ask my buddy, but he stays pretty busy and I don't want to be a bother.

So I guess my question is, How do I use files from a file server as though they're local?
 
Old 08-19-2005, 10:21 AM   #2
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Hi there,

NFS is your solution

http://www.linuxquestions.org/questions/answers.php?action=viewarticle&artid=537

Its in "tutorials -> networking" section

regards
 
Old 08-19-2005, 10:23 AM   #3
PeterRJG
Member
 
Registered: Jun 2005
Location: Northern NSW, Australia
Distribution: LXLE
Posts: 123

Rep: Reputation: 15
You'd need to mount them for Linux to see and use them. By server, I take it you mean drives with a Windows file system on them. Even though you have Snap Server on them, while Linux is live, it's just another hard drive to it.

At boot time it's all controlled by a file called fstab which lives in your /etc directory

My entries for my Windows drives look like this
/dev/hda1 /mnt/win_c vfat users,rw,owner,umask=000 0 0
/dev/hda5 /mnt/win_d vfat users,rw,owner,umask=000 0 0
/dev/hda6 /mnt/win_e vfat users,rw,owner,umask=000 0 0
/dev/hda7 /mnt/win_f vfat users,rw,owner,umask=000 0 0
/dev/hda8 /mnt/win_g vfat users,rw,owner,umask=000 0 0
/dev/hda9 /mnt/win_h vfat users,rw,owner,umask=000 0 0

All that gibberish to the right means I can read/write to them from Linux as a user as opposed to being root. All of my mp3's, oggs, etc are on my D: drive (/mnt/win_d) and I play them from Linux.

You'd need to bone up on the mount command (man mount) to get a good idea of how this works.

Last edited by PeterRJG; 08-19-2005 at 10:24 AM.
 
Old 08-19-2005, 10:25 AM   #4
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
pardon me if i've given the wrong URL..........just check out in the tutoria -> networking -> NFS

regards
 
Old 08-19-2005, 10:30 AM   #5
PeterRJG
Member
 
Registered: Jun 2005
Location: Northern NSW, Australia
Distribution: LXLE
Posts: 123

Rep: Reputation: 15
http://www.linuxquestions.org/questi...icle&artid=537
 
Old 08-19-2005, 10:43 AM   #6
Aubrey-calm
LQ Newbie
 
Registered: Aug 2005
Distribution: Slackware
Posts: 7

Original Poster
Rep: Reputation: 0
Johnnycab,

/dev/hda1 /mnt/win_c vfat users,rw,owner,umask=000 0 0
/dev/hda5 /mnt/win_d vfat users,rw,owner,umask=000 0 0
/dev/hda6 /mnt/win_e vfat users,rw,owner,umask=000 0 0
/dev/hda7 /mnt/win_f vfat users,rw,owner,umask=000 0 0
/dev/hda8 /mnt/win_g vfat users,rw,owner,umask=000 0 0
/dev/hda9 /mnt/win_h vfat users,rw,owner,umask=000 0 0

How do I know what the device name is? You have hda1-9. Does Linux automaticly find this drive, and wait for a line in the etc/fstab file? This is where I am lost.

Currently mine looks like (er well something like) this:

/dev/hda1 /mnt/win2k-c vfat users,rw,owner,umask=000 0 0
/dev/hda2 /mnt/win2k-d vfat users,rw,owner,umask=000 0 0
/dev/hdb1 /mnt/{Linux drive here} users,rw,owner,umask=000 0 0
(I probably have the letters and numbers mixed up as far as the hda1 hda2 hdb1 goes)

So if I added /dev/hda3 /mnt/win_c vfat users,rw,owner,umask=000 0 0, would that automaticly know to look for another harddrive? I don't understand how all this works.

I wish I had internet at my house, so I could be more informative, I'm at work now. But basicly I have the 200GB drive partitioned into 2 drives for Windows. The 160GB drive for Linux is one drive.
 
Old 08-19-2005, 10:53 AM   #7
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Hi,

hda : primary master
hdb : primary slave
hdc : secondary master
hdd : seconfary slave

write "fdisk /dev/hdx" on the konsole where "x" is a/b/c/d.
one by one replace "x" with 'a', 'b', 'c' ,'d'
and whenever it gives some information regarding your drive......press "p" there to look the partition table.
you will come to know which drives you have.

your will have to mount every partition of windows file system on linux

regards
 
Old 08-19-2005, 11:00 AM   #8
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Here is a nice tutorial to learn mounting process
 
Old 08-19-2005, 11:27 AM   #9
sodaking663rd
LQ Newbie
 
Registered: Aug 2005
Posts: 6

Rep: Reputation: 0
so how do you mount a drive that is on a different server that is windows? i have the share on the server giving full access to the share for everyone. thanks in advance.
 
Old 08-19-2005, 11:40 AM   #10
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Umm...if you want an easy way to do it, install "smb4k". It's a simple point and click application, similar to Window's My Network Places. You can browse your Windows network and when you click on a network share, it will mount it and open it.

After you get used to doing it "the easy way", you can delve into what's going on "behind the scenes".

BTW, I'm not sure it's such a hot idea for a newbie to be trying to use Slackware...
 
Old 08-19-2005, 12:11 PM   #11
Aubrey-calm
LQ Newbie
 
Registered: Aug 2005
Distribution: Slackware
Posts: 7

Original Poster
Rep: Reputation: 0
BTW, I'm not sure it's such a hot idea for a newbie to be trying to use Slackware...

I don't know. My buddy said that this is the most manual version of Linux, and that kind of turned me onto it. I am not worried about how much I have to read, or learn. I am interested in the process, and I am tired of not being able to see through the "Windows".

Man, this is the first time I've posted a question on any sort of system like this, and I have to say you guys are very helpful. I work for a company that writes software for automotive dealerships, and I am on the hardware install/support side of it. I spend most of my time repairing Windows problems for users that don't know/don't care. I would like to be able to understand Linux enough to be able to point out ways in which we can benefit from using it here at my workplace.

I do notice that the learning process will be a life-long endeavor, but I find that the time flies when your having fun.

Again you guys, thank-you, a lot.BTW, I'm not sure it's such a hot idea for a newbie to be trying to use Slackware...
 
Old 08-19-2005, 08:45 PM   #12
PeterRJG
Member
 
Registered: Jun 2005
Location: Northern NSW, Australia
Distribution: LXLE
Posts: 123

Rep: Reputation: 15
In my example, I failed to mention you need to actually have a directory named /mnt/win_c for those commands to work otherwise fstab will fail. Doesn't need to be named win_c etc, of course, I just name them that to reflect their Windows drive letters. They don't even need to be mounted in /mnt either. You could mount them anywhere.

/mnt is just the "conventional" place for it to be done.
 
Old 08-22-2005, 08:10 AM   #13
Aubrey-calm
LQ Newbie
 
Registered: Aug 2005
Distribution: Slackware
Posts: 7

Original Poster
Rep: Reputation: 0
I managed to get the thing done this weekend. I ended up mapping it like this:

mount //Neptune/root /mnt/neptune
Server name = Neptune
Share name = root

I think this is not the correct way to do it, but it will do for now. I included this statement in fstab, and when booting it asks for the password to the server, and looks as if it has mounted, but doen not accually do anything. I have to mount it after boot. Even though I assume this is not the corect way to do this, when I saw the thing was mounted, I was very pleased.
I almost gave up on the whole idea, and had contemplated throwing the thing down my driveway. Glad I didn't.
 
  


Reply



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
how to map "dir" to "ls -al | more"? learnfast Linux - Newbie 9 03-09-2005 07:27 AM
SYSERR(root): hash map "generics": missing map file /etc/mail/genericstable.db? singying304 Linux - Networking 4 02-28-2005 06:49 AM
The Simpsons "Springfield" public beta map for Enemy Territory - released! furfurdemon666 Linux - Games 8 12-12-2004 07:21 AM
"ifcfg-ethx" and "network-functions" files peok Linux - Networking 12 08-13-2003 06:06 PM
how to "map network resource" in linux shassouneh Linux - Networking 6 04-04-2002 07:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:55 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