- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.gifLink Copied
14 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
sorry for late. I had a vacation last week.
did you open the firewall on your server? or try to disable firewall totally.service iptables stop
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by hippo@Jul 10 2006, 07:15 AM sorry for late. i had a vacation last week.
did you open the firewall on your server?
or try to disable firewall totally.
service iptables stop
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=16732)</div> --- Quote End --- ok.. i stopped the firewall .. double and even tripple checked that the service is running correctly on the server .. i tried with another PC linux .. from the other pc i typed :
showmount -e <myIP>
the shared folder appeared after a while .. (about 5 seconds at first..faster next) but when i tried to mount .. it said" RPC timeout" after a loong while .. i tried to mount from the uCinux .. it said the following: <div class='quotetop'>QUOTE </div> --- Quote Start --- /> mount 192.168.0.122:/home/tarek/Desktop /mnt mount: RPC: Timed out mount: nfsmount failed: Bad file descriptor mount: Mounting blaBla on Blabla failed: Invalid Argument[/b] --- Quote End --- Did you see such thing before..? .. sorry ..i am still a starter .. I had spent about 4 hours till now just trying .. no results.. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/blink.gif thanks for helping .. and waiting for the next clue from you .. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif Bye
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i also tried the following ..
/> mount -t nfs 192.168.0.122:/home/tarek/Desktop /mnt
portmap: server localhost not responding, timed out
RPC: failed to contact portmap (errno -5).
portmap: server localhost not responding, timed out
RPC: failed to contact portmap (errno -5).
lockd_up: makesock failed, error=-5
portmap: server localhost not responding, timed out
RPC: failed to contact portmap (errno -5).
/>
also tried the " -o nfsvers=2 " .. the same http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/mad.gif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by tarekeldeeb+jul 10 2006, 01:57 pm--><div class='quotetop'>quote (tarekeldeeb @ jul 10 2006, 01:57 pm)</div>
--- quote start ---
<!--quotebegin-hippo@Jul 10 2006, 07:15 AM sorry for late. i had a vacation last week.
did you open the firewall on your server?
or try to disable firewall totally.
service iptables stop
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=16732)</div> --- Quote End --- ok.. i stopped the firewall .. double and even tripple checked that the service is running correctly on the server .. i tried with another PC linux .. from the other pc i typed :
showmount -e <myIP>
the shared folder appeared after a while .. (about 5 seconds at first..faster next) but when i tried to mount .. it said" RPC timeout" after a loong while .. i tried to mount from the uCinux .. it said the following: <div class='quotetop'>QUOTE </div> --- Quote Start --- /> mount 192.168.0.122:/home/tarek/Desktop /mnt mount: RPC: Timed out mount: nfsmount failed: Bad file descriptor mount: Mounting blaBla on Blabla failed: Invalid Argument[/b] --- Quote End --- Did you see such thing before..? .. sorry ..i am still a starter .. I had spent about 4 hours till now just trying .. no results.. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/blink.gif thanks for helping .. and waiting for the next clue from you .. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif Bye <div align='right'><{post_snapback}> (index.php?act=findpost&pid=16742)</div> [/b] --- Quote End --- You need the -o nolock in mount flags. mount -t nfs -n -o nolock,rsize=1024,wsize=1024 192.168.1.2:/home/nios2 /mnt/nfs
( eg, server ip 192.168.1.2) Look in the wiki carefully. But why you failed to mount nfs from another linux pc?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by hippo@Jul 10 2006, 08:08 AM you need the -o nolock in mount flags.
mount -t nfs -n -o nolock,rsize=1024,wsize=1024 192.168.1.2:/home/nios2 /mnt/nfs
( eg, server ip 192.168.1.2)
look in the wiki carefully.
but why you failed to mount nfs from another linux pc?
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=16745)</div> --- Quote End --- i did ... the same error <div class='quotetop'>QUOTE </div> --- Quote Start --- mount: RPC: Timed out mount: nfsmount failed: Bad file descriptor mount: Mounting blaBla on Blabla failed: Invalid Argument[/b] --- Quote End --- i began thinking that the server itself has a problem .. i have fedora core5 .. so i tried the server on a different pc .. having fedora core 4 .. the same results :S when i type " rpcinfo -p " .. i can see many prgz.. portmapper,status,nfs,nlockmgrrquotad,mountd .. all of them have both TCP and UDP versions .. with more than one version.. i am very confused http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif thanks for your reply.. and still waiting ... for the next clue . http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
sorry .. for continuous replies..
i tried thismount -t nfs -o nolock 192.168.0.122:/home/tarek/Desktop /mnt/test
i did not set the rsize or the wsize.. it did NOT give an error .. but when i tried to " cd /mnt/test " it gave a " permission denied " http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/blink.gif Darkness inside confusion ,, this is how i feel now http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/laugh.gif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by tarekeldeeb@Jul 10 2006, 02:31 PM sorry .. for continuous replies..
i tried this
mount -t nfs -o nolock 192.168.0.122:/home/tarek/desktop /mnt/test
i did not set the rsize or the wsize.. it did not give an error ..
but when i tried to " cd /mnt/test " it gave a " permission denied " http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/blink.gif
darkness inside confusion ,, this is how i feel now http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/laugh.gif
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=16749)</div> --- Quote End --- what is your /etc/exports file ? /home/nios2 192.168.1.0/255.255.255.0(rw,no_root_squash,sync) you need the no_root_squas flags, And try disable selinux in FC4/FC5 with "securify level" config. Cheer up. you are not alone.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HIPPO ... thanks a LOOOT http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif
it appeared to be permission issue .. i changed the permission of " /home" and "/home/tarek" and "/home/tarek/Desktop" so that everybody can change the files.. it worked .. about your question: yes i use the flag: <div class='quotetop'>QUOTE </div> --- Quote Start --- /home/tarek/Desktop 192.168.0.0/255.255.255.0(rw,no_root_squash,sync)[/b] --- Quote End --- but .. a last question please .. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif the mount works as read-only.. i need write access to save my outputs on my PC .. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/huh.gif Anyway .. THANKS A LOT .. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you are very close now.
you'd better not use the Desktop dir, it is used by desktop manager. try mkdir /home/nios2 chmod -R a+rw /home/nios2 and export /home/nios2,- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by hippo@Jul 10 2006, 04:38 PM you are very close now.
you'd better not use the desktop dir, it is used by desktop manager.
try
mkdir /home/nios2
chmod -r a+rw /home/nios2
and export /home/nios2,
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=16762)
--- quote end ---
--- Quote End --- i tried it .. i gave the same result !! i tried making and mounting /uc (i thought the permission of /home had problems) this also gave the same results http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif Hippo .. thanks for your patience .. could this be a client problem ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- 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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
<<<< 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
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page