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
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 - Altera_Forum
Honored Contributor
--- 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 :
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 Byeshowmount -e <myIP> - Altera_Forum
Honored Contributor
i also tried the following ..
also tried the " -o nfsvers=2 " .. the same http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/mad.gif/> 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). /> - Altera_Forum
Honored Contributor
--- 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 :
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.showmount -e <myIP>
( eg, server ip 192.168.1.2) Look in the wiki carefully. But why you failed to mount nfs from another linux pc?mount -t nfs -n -o nolock,rsize=1024,wsize=1024 192.168.1.2:/home/nios2 /mnt/nfs - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by hippo@Jul 10 2006, 08:08 AM you need the -o nolock in mount flags.
( eg, server ip 192.168.1.2)mount -t nfs -n -o nolock,rsize=1024,wsize=1024 192.168.1.2:/home/nios2 /mnt/nfslook 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
- Altera_Forum
Honored Contributor
sorry .. for continuous replies..
i tried this
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.gifmount -t nfs -o nolock 192.168.0.122:/home/tarek/Desktop /mnt/test - Altera_Forum
Honored Contributor
--- 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/testi 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.
- Altera_Forum
Honored Contributor
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 - Altera_Forum
Honored Contributor
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, - Altera_Forum
Honored Contributor
--- 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 ?