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-20-2004, 04:20 PM
|
#1
|
Member
Registered: Feb 2004
Posts: 83
Rep:
|
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?
|
|
|
12-20-2004, 05:39 PM
|
#2
|
Member
Registered: Sep 2003
Location: Calgary, Canada
Distribution: Slackware 10.0
Posts: 90
Rep:
|
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
|
|
|
12-20-2004, 06:01 PM
|
#3
|
Member
Registered: Feb 2004
Posts: 83
Original Poster
Rep:
|
thanx!
thanx, i'm gonna check those things out right now,
again thanx for your help
|
|
|
12-21-2004, 07:52 PM
|
#4
|
Member
Registered: Feb 2004
Posts: 83
Original Poster
Rep:
|
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?
|
|
|
12-21-2004, 07:56 PM
|
#5
|
Member
Registered: Sep 2003
Location: Calgary, Canada
Distribution: Slackware 10.0
Posts: 90
Rep:
|
Need more details. What's going wrong? Do you get error messages, hangs or what?
Damien
|
|
|
12-21-2004, 07:58 PM
|
#6
|
Member
Registered: Sep 2003
Location: Calgary, Canada
Distribution: Slackware 10.0
Posts: 90
Rep:
|
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
|
|
|
12-21-2004, 08:14 PM
|
#7
|
Member
Registered: Feb 2004
Posts: 83
Original Poster
Rep:
|
[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 ? =\
|
|
|
12-22-2004, 10:13 AM
|
#8
|
Member
Registered: Sep 2003
Location: Calgary, Canada
Distribution: Slackware 10.0
Posts: 90
Rep:
|
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
|
|
|
12-22-2004, 04:48 PM
|
#9
|
Member
Registered: Feb 2004
Posts: 83
Original Poster
Rep:
|
/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
|
|
|
12-22-2004, 05:02 PM
|
#10
|
Member
Registered: Sep 2003
Location: Calgary, Canada
Distribution: Slackware 10.0
Posts: 90
Rep:
|
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
|
|
|
12-22-2004, 05:13 PM
|
#11
|
Member
Registered: Feb 2004
Posts: 83
Original Poster
Rep:
|
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...?
|
|
|
12-22-2004, 05:14 PM
|
#12
|
Member
Registered: Feb 2004
Posts: 83
Original Poster
Rep:
|
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
|
|
|
12-22-2004, 05:14 PM
|
#13
|
Member
Registered: Sep 2003
Location: Calgary, Canada
Distribution: Slackware 10.0
Posts: 90
Rep:
|
That I can't help you with. Never seen anything like it. Did that other mount command work?
Damien
|
|
|
12-22-2004, 05:20 PM
|
#14
|
Member
Registered: Feb 2004
Posts: 83
Original Poster
Rep:
|
i got the same response with that other mount technique haha damn i'm screwed =D
thanx for all your help
|
|
|
12-23-2004, 05:15 AM
|
#15
|
Member
Registered: Feb 2004
Posts: 83
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 11:06 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
|
|