LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-20-2004, 03:20 PM   #1
astroboiii
Member
 
Registered: Feb 2004
Posts: 83

Rep: Reputation: 15
mounting network drives


Hi guys gotta question for ya'

Got 2 pc's in different locations, what i would like to do is be able to mount a drive from one pc onto another, so that i can ftp into one site and have both sites files.

Generally i want to combine both pc's hd, there both 600GB each so i want 1.2TB

Ne help would be greatly appreciated, i'm currently looking into mounting network drives, and ip tunneling...right direction?
 
Old 12-20-2004, 04:39 PM   #2
damien
Member
 
Registered: Sep 2003
Location: Calgary, Canada
Distribution: Slackware 10.0
Posts: 90

Rep: Reputation: 15
You need NFS. You export drives/directories from the remote machine you want to see, and you mount the drives on the machine you're sitting at. You need the portmapper running to use NFS.

It's all here

http://www.tldp.org/HOWTO/NFS-HOWTO/

Damien
 
Old 12-20-2004, 05:01 PM   #3
astroboiii
Member
 
Registered: Feb 2004
Posts: 83

Original Poster
Rep: Reputation: 15
thanx!

thanx, i'm gonna check those things out right now,

again thanx for your help
 
Old 12-21-2004, 06:52 PM   #4
astroboiii
Member
 
Registered: Feb 2004
Posts: 83

Original Poster
Rep: Reputation: 15
permission denied

i've read and read and searched and searched...... I don't kno why i keep getting permission denied

went through the entire document plus several other ones and i have no clue why it's not working.

everything seems to be setup right, my servers' /etc/export is setup properly i'm sure
and nfsd is started and i've exportfs -ra and rpcinfo -p 'd but my client still will not work

on my client i simply try to mount didn't do ne thing to it, i then tried restarted nfsd on both and lockd and statd but still same error

ne clue what i'm missing?
 
Old 12-21-2004, 06:56 PM   #5
damien
Member
 
Registered: Sep 2003
Location: Calgary, Canada
Distribution: Slackware 10.0
Posts: 90

Rep: Reputation: 15
Need more details. What's going wrong? Do you get error messages, hangs or what?

Damien
 
Old 12-21-2004, 06:58 PM   #6
damien
Member
 
Registered: Sep 2003
Location: Calgary, Canada
Distribution: Slackware 10.0
Posts: 90

Rep: Reputation: 15
Sorry, I'm on an old Mac and I couldn't see the whole screen. If you're getting Permission Denied, chances are you're not the owner of the exported filesystem. Are you getting the errors on 556munting111? Post what it says.

Damien
 
Old 12-21-2004, 07:14 PM   #7
astroboiii
Member
 
Registered: Feb 2004
Posts: 83

Original Poster
Rep: Reputation: 15
[root@server1 /]# mount #.#.#.130:/home/glftpd/site /mnt/server2
mount: #.#.#.130:/home/glftpd/site failed, reason given by server: Permission denied

[root@omear glftpd]# ls -l <- on server
total 48
... other dir's/files
drwxr-xr-x 21 root root 4096 Dec 21 00:01 site
...other dir's/files
[root@omear glftpd]#



[root@server1 glftpd]# ls -l <-- on client
total 48
...other dir's/files
drwxrwxrwx 21 root root 4096 Dec 21 00:01 site
...other dir's/files
[root@server1 glftpd]#


SERVER RPCINFO -P
[root@omear glftpd]# rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 44661 status
100024 1 tcp 34779 status
100011 1 udp 744 rquotad
100011 2 udp 744 rquotad
100011 1 tcp 747 rquotad
100011 2 tcp 747 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100021 1 udp 44683 nlockmgr
100021 3 udp 44683 nlockmgr
100021 4 udp 44683 nlockmgr
100005 1 udp 44684 mountd
100005 1 tcp 39132 mountd
100005 2 udp 44684 mountd
100005 2 tcp 39132 mountd
100005 3 udp 44684 mountd
100005 3 tcp 39132 mountd
[root@omear glftpd]#


ON CLIENT
[root@server1 glftpd]# rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 59847 status
100024 1 tcp 58284 status
100011 1 udp 687 rquotad
100011 2 udp 687 rquotad
100011 1 tcp 690 rquotad
100011 2 tcp 690 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100021 1 udp 59854 nlockmgr
100021 3 udp 59854 nlockmgr
100021 4 udp 59854 nlockmgr
100005 1 udp 59855 mountd
100005 1 tcp 60381 mountd
100005 2 udp 59855 mountd
100005 2 tcp 60381 mountd
100005 3 udp 59855 mountd
100005 3 tcp 60381 mountd
You have new mail in /var/spool/mail/root
[root@server1 glftpd]#


hosts.allow on server
portmap: #.#.#.100
lockd: #.#.#.100
rquotad: #.#.#.100
mountd: #.#.#.100
statd: #.#.#.100

hosts.deny on server
portmap:ALL


client's hosts.* are left untouched and the ip's int he hosts.* on the server are pointing to the client properly .... not sure what's wrong ? =\
 
Old 12-22-2004, 09:13 AM   #8
damien
Member
 
Registered: Sep 2003
Location: Calgary, Canada
Distribution: Slackware 10.0
Posts: 90

Rep: Reputation: 15
Can you post your /etc/exports file? I think this is happening because your permissions are wrong in there. Also post your etc/fstab.

Damien
 
Old 12-22-2004, 03:48 PM   #9
astroboiii
Member
 
Registered: Feb 2004
Posts: 83

Original Poster
Rep: Reputation: 15
/etc/exports on the server
home/glftpd/site #.#.#.100(ro,no_root_squash)

/etc/fstab i didn't touch , don't i only have to do that if i want it to start at bootup? right now i just want it to work then i'll stick it in there, if i'm wrong lemme kno =D
 
Old 12-22-2004, 04:02 PM   #10
damien
Member
 
Registered: Sep 2003
Location: Calgary, Canada
Distribution: Slackware 10.0
Posts: 90

Rep: Reputation: 15
I see you have the share exported as read-only. In that case you have to mount on your client as read-only too. You're supposed to tell mount it's an NFS file system too.

Try this:

mount -t nfs -o ro server:/export/file/system /mnt/mountpoint

You have to run mount as root.

Damien
 
Old 12-22-2004, 04:13 PM   #11
astroboiii
Member
 
Registered: Feb 2004
Posts: 83

Original Poster
Rep: Reputation: 15
another point of interest...

[root@omear DIVX]# exportfs
exportfs: unknown.sagonet.net has non-inet addr

i don't kno where it's grabbing that shit from in my /etc/hosts i have my loopback and that's it...?
 
Old 12-22-2004, 04:14 PM   #12
astroboiii
Member
 
Registered: Feb 2004
Posts: 83

Original Poster
Rep: Reputation: 15
mounting it with read-only permission and as nfs t ype didn't work either same either =\ i think it has something to do with my non-inet problem
 
Old 12-22-2004, 04:14 PM   #13
damien
Member
 
Registered: Sep 2003
Location: Calgary, Canada
Distribution: Slackware 10.0
Posts: 90

Rep: Reputation: 15
That I can't help you with. Never seen anything like it. Did that other mount command work?

Damien
 
Old 12-22-2004, 04:20 PM   #14
astroboiii
Member
 
Registered: Feb 2004
Posts: 83

Original Poster
Rep: Reputation: 15
i got the same response with that other mount technique haha damn i'm screwed =D

thanx for all your help
 
Old 12-23-2004, 04:15 AM   #15
astroboiii
Member
 
Registered: Feb 2004
Posts: 83

Original Poster
Rep: Reputation: 15
Got it working,

What was happening was the loopback address in my servers /etc/host was grabbing a void dns and therefore was not directing correctly so i added the ip of the Client and it exportfs -ra and it worked like a charm,

again thanx for your help Damien I truly appreciate it.
 
  


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
Mounting network drives David@330 Linux - Newbie 3 10-01-2004 02:20 PM
Mounting Network Drives sonikntails Linux - Networking 3 08-12-2002 03:21 AM
mounting network drives Druaga Linux - Networking 1 05-08-2002 08:42 PM
Mounting network drives on bootup manderso Linux - Networking 3 12-17-2001 05:16 AM
mounting network drives thetruevoice Linux - Networking 12 09-17-2001 04:34 PM

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

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