View previous topic :: View next topic |
Author |
Message |
numerodix l33t
Joined: 18 Jul 2002 Posts: 743 Location: nl.eu
|
Posted: Sun Dec 01, 2002 12:49 pm Post subject: strange occurence with nfs mounting |
|
|
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 |
|
|
pYrania Retired Dev
Joined: 27 Oct 2002 Posts: 650 Location: Cologne - Germany
|
Posted: Mon Dec 02, 2002 12:00 pm Post subject: Re: strange occurence with nfs mounting |
|
|
is this supposed to mean
Code: | chroot /mnt /bin/bash | ? |
|
Back to top |
|
|
numerodix l33t
Joined: 18 Jul 2002 Posts: 743 Location: nl.eu
|
Posted: Mon Dec 02, 2002 2:18 pm Post subject: |
|
|
yes |
|
Back to top |
|
|
|