Forum Discussion
Altera_Forum
Honored Contributor
20 years agoUnable to mount using NFS
Hello all .. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif
Sorry , i asked about almost the same point days ago ... but beleive me .. I waisted a lot of time ... and still .. i cant make it work .. i want to mount a folder from my linux PC to the uClinux.. using NFS .. i followed what was said to me .. a strange error came up .. maybe i did not include a certain package while doing the menuconfig the error is: <div class='quotetop'>QUOTE </div> --- Quote Start --- RPC: unable to receive: errno = No route to host[/b] --- Quote End --- also when i do telnet to my PC <div class='quotetop'>QUOTE </div> --- Quote Start --- telnet: unable to connect to remote host: No route to host[/b] --- Quote End --- but i can ping the server from client and vice versa ! i checked the NFS server ..it seems running.. "rpcinfo -p" tells me that many nfs ports are opened .. i have versions 2,3 and 4 running .. but still cant mount ! and i cant understand !!! http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/mad.gif pls help .. Thanks a lot.. Yours, Tarek http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif14 Replies
- Altera_Forum
Honored Contributor
Tarek,
Please take a look at your Linux box's message log (/var/log/messages or /var/log/nfs, or something like that). For successful unmounting/mounting of NFS shares, you should see something like the following:
NOTE: <your_server>,<your client>, and <your_share> are specific to your system's configuration. This is the way I always debug NFS share permissions issues....and it hasn't failed me yet. Also, as hippo suggests, please ensure that your /etc/exports file looks something like this, with, perhaps, multiple shares defined.Jul 10 14:30:06 <your server> mountd: authenticated unmount request from <your client>:820 for <your_share> (<your_share>) Jul 10 14:30:32 <your server> mountd: authenticated mount request from <your client>:915 for <your_share> (<your_share>)
Cheers, - slacker<your share> <your client>(rw,sync,no_root_squash) - Altera_Forum
Honored Contributor
I tested again on 2c35 dev board and FC5, but it can read/write nfs mount without problem.
http://nioswiki.jot.com/wikihome/operating...zimage_std_2c35 (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/tryoutuclinux/zimage_std_2c35) it is the default nios2 kernel config as in my post of uClinux-dist-test. enabled smc91111 , nfs, and nfs v3. enabled mount in busybox. - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by slacker@Jul 10 2006, 11:46 PM tarek,please take a look at your linux box's message log (/var/log/messages or /var/log/nfs, or something like that).
for successful unmounting/mounting of nfs shares, you should see something like the following:
jul 10 14:30:06 <your server> mountd: authenticated unmount request from <your client>:820 for <your_share> (<your_share>) jul 10 14:30:32 <your server> mountd: authenticated mount request from <your client>:915 for <your_share> (<your_share>)note: <your_server>,<your client>, and <your_share> are specific to your system's configuration.
this is the way i always debug nfs share permissions issues....and it hasn't failed me yet.
also, as hippo suggests, please ensure that your /etc/exports file looks something like this, with, perhaps, multiple shares defined.
<your share> <your client>(rw,sync,no_root_squash)cheers,
- slacker
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=16777)</div> --- Quote End --- yes i find such messages in var/log/messages but with different port numbers. and i also double checked the export file no more ideas?
- Altera_Forum
Honored Contributor
<<<< FINALLY DONE >>>>
Hippo i tried your zImage .. same bad results.. read only.. so i am sure it is a server issue .. not client problem .. i tried reading some forums.. and guessed it could be the SElinux .. and it was http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif I disabled it .. every thing went fine http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif Hippo and Slacker .. thanks a lot for your warm support http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif Thanks everyone Bye http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif