RE: Problems mounting root filesystem off of NFS
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
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/
Problems mounting root filesystem off of NFS
Hi, 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. mount: only root can do that awk: cmd. line:2: fatal: cannot open file `/proc/mounts' for reading (No such fi le or directory) Welcome to Wind River Linux Press 'I' to enter interactive startup. mount: only root can do that Configuring kernel parameters: [ OK ] Cannot access the Hardware Clock via any known method. Use the --debug option to see the details of our search for an access method. Setting clock : Thu Jan 1 00:00:19 GMT 1970 [ OK ] Setting hostname unknown: [ OK ] cat: /proc/cmdline: No such file or directory Your system appears to have shut down uncleanly Press Y within 1 seconds to force file system integrity check... awk: cmd. line:2: fatal: cannot open file `/proc/mounts' for reading (No such fi le or directory) Checking root filesystem awk: cmd. line:2: fatal: cannot open file `/proc/mounts' for reading (No such fi le or directory) fsck: fsck.nfs: not found fsck: Error 2 while executing fsck.nfs for none [ OK ] fgrep: /proc/mounts: No such file or directory awk: cmd. line:2: fatal: cannot open file `/proc/mounts' for reading (No such fi le or directory) Remounting root filesystem in read-write mode: mount: only root can do that [FAILED] Activating swap partitions: [ OK ] mount: only root can do that mount: only root can do that mount: only root can do that /etc/rc.d/rc.sysinit: line 456: /etc/rc.modules: Permission denied Checking filesystems Checking all file systems. [ OK ] Mounting local filesystems: mount: only root can do that [FAILED] If I chmod 777 the entire root filesystem from within Cygwin, it gets further (to the prompt) but then it won't let me login with root. I know it probably has to do with the fact that all the files in the root filesystem have my windows login name as the user instead of root. Has anybody successfully booted Linux off of a cygwin NFS exported root filesystem? Thanks! -- View this message in context: http://www.nabble.com/Problems-mounting-root-filesystem-off-of-NFS-t1293038.html#a3441177 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
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/