Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
strange occurence with nfs mounting
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
numerodix
l33t
l33t


Joined: 18 Jul 2002
Posts: 743
Location: nl.eu

PostPosted: Sun Dec 01, 2002 12:49 pm    Post subject: strange occurence with nfs mounting Reply with quote

I'm trying to mount one filesystem onto another with nfs, the nfs server has the following mounts...

Quote:
$ mount
/dev/hda6 on / type ext2 (rw,noatime)
proc on /proc type proc (rw)
none on /dev type devfs (rw)
tmpfs on /mnt/init.d type tmpfs (rw,mode=0644,size=2048k)
/dev/hdd1 on /root type ext2 (rw,noatime)


The exports is as follows..

Quote:
#/etc/exports
/ 10.0.0.3(rw,no_root_squash)


And then I try to mount the root of the server onto a dir on the client like this..

Quote:
$ mount -t nfs 10.0.0.2:/ /mnt
$ mount -o bind /proc /mnt/proc
$ chroot /4
env-update
source /etc/profile


The problem is that even though I mount as root and root is set to no squash, the root dir is empty. I remember doing this in the past, when all files on the server were on the same physical drive (ie /dev/hda) and that was not a problem then I think. But now /root is mounted elsewhere and this happens. I don't think it's the no_root_squash not kicking in because I do have write permissions.

Any ideas?
Back to top
View user's profile Send private message
pYrania
Retired Dev
Retired Dev


Joined: 27 Oct 2002
Posts: 650
Location: Cologne - Germany

PostPosted: Mon Dec 02, 2002 12:00 pm    Post subject: Re: strange occurence with nfs mounting Reply with quote

Quote:
$ chroot /4


is this supposed to mean
Code:
chroot /mnt /bin/bash
?
Back to top
View user's profile Send private message
numerodix
l33t
l33t


Joined: 18 Jul 2002
Posts: 743
Location: nl.eu

PostPosted: Mon Dec 02, 2002 2:18 pm    Post subject: Reply with quote

yes
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum