RE: Problems mounting root filesystem off of NFS

2006-03-17 Thread doodsaq

Oops, missing Guest account...that fixed the setegid stuff... however still
can't login, something's wrong with my inittab I think.
--
View this message in context: 
http://www.nabble.com/Problems-mounting-root-filesystem-off-of-NFS-t1293038.html#a3464265
Sent from the Cygwin Users forum at Nabble.com.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Problems mounting root filesystem off of NFS

2006-03-17 Thread doodsaq

Ok, I think I got the uid/gid issue figured out.  My server.map file looks
like this (I want all the files in my filesystem with tberger1 ownership to
show up as root on the client):

uid 0   895260  # user id for tberger1
gid 0   10545   # group id for tberger1
uid 0   1007# user id for Administrator
gid 0   513 # group id for Administrator

My exports line is as follows:
/nfsmount_drop3 (rw,sync,no_root_squash,map_static=/etc/nfs/server.map)

>From a Linux box, I can mount this and the files look OK (e.g:

total 5
drwxr-xr-x  18 root root0 Mar 15 10:22 .
drwxr-xr-x   9 tberger1 tberger1 4096 Mar 17 23:07 ..
-rw-r--r--   1 root root0 Mar 17 14:09 .autofsck
drwxr-xr-x   2 root root0 Mar 15 10:23 bin
drwxr-xr-x   2 root root0 Mar  3 16:11 boot
drwxr-xr-x   4 root root0 Mar  3 16:28 dev
drwxr-xr-x  23 root root0 Mar 15 10:23 etc
drwxr-sr-x   3 root root0 Mar 15 10:23 home
drwxr-xr-x   2 root root0 Mar  3 16:11 initrd
drwxr-xr-x   5 root root0 Mar  3 16:27 lib
drwxr-xr-x   2 root root0 Mar  3 16:11 mnt
drwxr-sr-x   4 root root0 Mar 15 10:23 opt


However, I see a bunch of these errors being logged to /var/log/nfsd.log on
the cygwin side:

nfsd[3836] 03/17/106 14:18 auth_clnt.c 352 : Unable to seteuid(-2): Invalid
argu
ment
nfsd[3836] 03/17/106 14:18 auth_clnt.c 307 : Unable to setegid(-2): Invalid
argu
ment
nfsd[3836] 03/17/106 14:18 auth_clnt.c 332 : Unable to setgroups: Invalid
argume
nt
nfsd[3836] 03/17/106 14:18 auth_clnt.c 352 : Unable to seteuid(-2): Invalid
argu
ment


When I try to boot my PPC board using this RFS, it gets stuck at runlevel 1,
presumably because of these errors (I see them in nfsd.log as the PPC board
boots).

Any help greatly appreciated, thank you!



--
View this message in context: 
http://www.nabble.com/Problems-mounting-root-filesystem-off-of-NFS-t1293038.html#a3463433
Sent from the Cygwin Users forum at Nabble.com.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Problems mounting root filesystem off of NFS

2006-03-16 Thread doodsaq


Robb, Sam wrote:
> 
> 1) Did you install the server using the nfs-server-config script?
> 2) Can you post your /etc/exports and and static map files you're using?
> 

1) yes
2) this is the only line in my /etc/exports:
/nfsmount_drop3 (rw,insecure,no_root_squash)




> If you're able to mount the RFS, the only thing I could think to
> suggest would be to look at your /etc/exports and make sure that
> you're using a proper map file for your NFS export.  Try "man exports"
> and look for the map_static section.  That may help you clear up
> your permissions issues.
> 
> You might want to try and mount the exported RFS from a desktop linux
> system; this will give you some idea of what permissions are being
> translated incorrectly, and how you can go about correcting your
> static map files to deal with them.
> 

I'll try this, thanks!

I'm completely unfamiliar with configuring static map files for NFS so I'm
gonna have to do some reading here.

Thanks for your suggestions!

--
View this message in context: 
http://www.nabble.com/Problems-mounting-root-filesystem-off-of-NFS-t1293038.html#a3442273
Sent from the Cygwin Users forum at Nabble.com.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Problems mounting root filesystem off of NFS

2006-03-16 Thread Robb, Sam


> I'm trying to get Linux running on a PPC board to mount an NFS root
> filesystem off of a Windows XP machine -- in this case the 
> NFS filesystem is exported by the NFS server in Cygwin.  While it
> mounts OK, Linux fails to come up due to various errors, e.g.

1) Did you install the server using the nfs-server-config script?
2) Can you post your /etc/exports and and static map files you're using?

If you're able to mount the RFS, the only thing I could think to
suggest would be to look at your /etc/exports and make sure that
you're using a proper map file for your NFS export.  Try "man exports"
and look for the map_static section.  That may help you clear up
your permissions issues.

You might want to try and mount the exported RFS from a desktop linux
system; this will give you some idea of what permissions are being
translated incorrectly, and how you can go about correcting your
static map files to deal with them.

> Has anybody successfully booted Linux off of a cygwin NFS 
> exported root filesystem?

Sure!  Just not using Wind River's stuff :-)

-Samrobb

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/