Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

Unable 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.gif

14 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Tarek,

    Please take a look at your Linux box&#39;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&#39;s configuration.

    This is the way I always debug NFS share permissions issues....and it hasn&#39;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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by slacker@Jul 10 2006, 11:46 PM

    tarek,

    please take a look at your linux box&#39;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&#39;s configuration.

    this is the way i always debug nfs share permissions issues....and it hasn&#39;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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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