<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Ubuntu Linux: NFS Client Configuration To Mount NFS Share</title> <atom:link href="http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: bigj</title><link>http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-177824</link> <dc:creator>bigj</dc:creator> <pubDate>Sun, 01 Jan 2012 07:29:35 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-177824</guid> <description>Ok I think I&#039;ve solved it, for those of you that are having problems getting it to mount at boot etc. Please let me know though if this is right as I&#039;m no expert but mashed a few different ideas/scipts together including the above steps!
Setup: I have a small mini-tower running FreeNAS 0.7* with nfs shares enabled - path = /mnt/share1
static IP = 192.168.1.250
I also have a laptop running Ubuntu 10.04 LTS connecting to the same network using wifi with a folder created to mount the share into:
/media/share1
Initially as above had a mount command in /etc/rc.local but because of the delay in logging in and connecting to the wifi, the script failed. I added the sleep command which worked but only if i logged in straight away.
I then found a few scripts which involved pinging the NASBox and once a reply ping was recieved then it mounted the command. So with a few tweaks and with help from friends more in the know than me we came with this script:
#!/bin/sh
while true;
do
ping -c1 192.168.1.250 &gt; /dev/null &amp;&amp;
break;
done
mount -t nfs 192.168.1.250:/mnt/share1 /media/share1
Called it sharemount.sh and made the script executable and ran it in terminal (as sudo of course) and it worked! So, the next step was to have it run at boot. For this I copied it into /etc/init.d and ensured it was still executable. Then I had to update-rc.d (not sure f thats the right way to say it!) the script and make sure it had the correct run-levels. I wanted it to run after network had started so:
sudo update-rc.d sharemount.sh start 99 2 3 4 5 .
Rebooted the laptop and the share appeared. It even showed up on the desktop before the wifi login display appeared!
N.B. I know alot of the scripts are being slowly moved to upstart(?) but this worked for me so feel free to use it obviously because  I know I&#039;m not the only one with this problem. But also feel free to let me know if I have done anything wrong as I am still learning too!</description> <content:encoded><![CDATA[<p>Ok I think I&#8217;ve solved it, for those of you that are having problems getting it to mount at boot etc. Please let me know though if this is right as I&#8217;m no expert but mashed a few different ideas/scipts together including the above steps!</p><p>Setup: I have a small mini-tower running FreeNAS 0.7* with nfs shares enabled &#8211; path = /mnt/share1<br
/> static IP = 192.168.1.250</p><p>I also have a laptop running Ubuntu 10.04 LTS connecting to the same network using wifi with a folder created to mount the share into:<br
/> /media/share1</p><p>Initially as above had a mount command in /etc/rc.local but because of the delay in logging in and connecting to the wifi, the script failed. I added the sleep command which worked but only if i logged in straight away.</p><p>I then found a few scripts which involved pinging the NASBox and once a reply ping was recieved then it mounted the command. So with a few tweaks and with help from friends more in the know than me we came with this script:</p><p>#!/bin/sh</p><p>while true;<br
/> do<br
/> ping -c1 192.168.1.250 &gt; /dev/null &amp;&amp;<br
/> break;<br
/> done</p><p>mount -t nfs 192.168.1.250:/mnt/share1 /media/share1</p><p>Called it sharemount.sh and made the script executable and ran it in terminal (as sudo of course) and it worked! So, the next step was to have it run at boot. For this I copied it into /etc/init.d and ensured it was still executable. Then I had to update-rc.d (not sure f thats the right way to say it!) the script and make sure it had the correct run-levels. I wanted it to run after network had started so:</p><p>sudo update-rc.d sharemount.sh start 99 2 3 4 5 .</p><p>Rebooted the laptop and the share appeared. It even showed up on the desktop before the wifi login display appeared!</p><p>N.B. I know alot of the scripts are being slowly moved to upstart(?) but this worked for me so feel free to use it obviously because  I know I&#8217;m not the only one with this problem. But also feel free to let me know if I have done anything wrong as I am still learning too!</p> ]]></content:encoded> </item> <item><title>By: bigj</title><link>http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-177823</link> <dc:creator>bigj</dc:creator> <pubDate>Sun, 01 Jan 2012 06:34:12 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-177823</guid> <description>Had same problem.
I know its not ideal but for starters I have put the mount command in rc.local and had to add a &#039;sleep 20&#039; command in the line above. Which gives me enough time to login and for wifi to connect. But fails if I don&#039;t login straight away.
Am looking at some sort of pinging/loop script which doesn&#039;t mount the share until it receives a reply from return ping from NASBox</description> <content:encoded><![CDATA[<p>Had same problem.</p><p>I know its not ideal but for starters I have put the mount command in rc.local and had to add a &#8216;sleep 20&#8242; command in the line above. Which gives me enough time to login and for wifi to connect. But fails if I don&#8217;t login straight away.</p><p>Am looking at some sort of pinging/loop script which doesn&#8217;t mount the share until it receives a reply from return ping from NASBox</p> ]]></content:encoded> </item> <item><title>By: kk</title><link>http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-175643</link> <dc:creator>kk</dc:creator> <pubDate>Sun, 13 Nov 2011 11:35:34 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-175643</guid> <description>Hi ,
I Created a NFS share in windows 2008 and i tried to mount it as in tutorial, everything went fine but when i access the directory it says &quot;bash: cd: /nfs: Permission denied&quot;
I am able to see that mount using df -h.
Please help..
Thanks in advance</description> <content:encoded><![CDATA[<p>Hi ,<br
/> I Created a NFS share in windows 2008 and i tried to mount it as in tutorial, everything went fine but when i access the directory it says &#8220;bash: cd: /nfs: Permission denied&#8221;<br
/> I am able to see that mount using df -h.<br
/> Please help..<br
/> Thanks in advance</p> ]]></content:encoded> </item> <item><title>By: Mohsen Miran</title><link>http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-173757</link> <dc:creator>Mohsen Miran</dc:creator> <pubDate>Wed, 07 Sep 2011 19:08:35 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-173757</guid> <description>Thank You Very Much :))))</description> <content:encoded><![CDATA[<p>Thank You Very Much :))))</p> ]]></content:encoded> </item> <item><title>By: burak</title><link>http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-172898</link> <dc:creator>burak</dc:creator> <pubDate>Sat, 30 Jul 2011 20:36:20 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-172898</guid> <description>tvin@tvin-Macmini ~ $ df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda3             18263168   4084516  13250920  24% /
none                    484552       700    483852   1% /dev
none                    495360       248    495112   1% /dev/shm
none                    495360       372    494988   1% /var/run
none                    495360         0    495360   0% /var/lock
/dev/sdb3            692358132    614644 691743488   1% /media/MEDYA
/dev/sdb2             39062500  26080056  12982444  67% /media/OS X
/dev/sda2             57617188  26519600  31097588  47% /media/NOSI
tvin@tvin-Macmini ~ $</description> <content:encoded><![CDATA[<p>tvin@tvin-Macmini ~ $ df<br
/> Filesystem           1K-blocks      Used Available Use% Mounted on<br
/> /dev/sda3             18263168   4084516  13250920  24% /<br
/> none                    484552       700    483852   1% /dev<br
/> none                    495360       248    495112   1% /dev/shm<br
/> none                    495360       372    494988   1% /var/run<br
/> none                    495360         0    495360   0% /var/lock<br
/> /dev/sdb3            692358132    614644 691743488   1% /media/MEDYA<br
/> /dev/sdb2             39062500  26080056  12982444  67% /media/OS X<br
/> /dev/sda2             57617188  26519600  31097588  47% /media/NOSI<br
/> tvin@tvin-Macmini ~ $</p> ]]></content:encoded> </item> <item><title>By: burak</title><link>http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-172897</link> <dc:creator>burak</dc:creator> <pubDate>Sat, 30 Jul 2011 20:35:48 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-172897</guid> <description>No, it&#039;s not.</description> <content:encoded><![CDATA[<p>No, it&#8217;s not.</p> ]]></content:encoded> </item> <item><title>By: TryMe</title><link>http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-172896</link> <dc:creator>TryMe</dc:creator> <pubDate>Sat, 30 Jul 2011 20:29:07 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-172896</guid> <description>sudo will prompt for password once in every 5 mintues. Run the df command to verify that nfs is mounted at /nfs2</description> <content:encoded><![CDATA[<p>sudo will prompt for password once in every 5 mintues. Run the df command to verify that nfs is mounted at /nfs2</p> ]]></content:encoded> </item> <item><title>By: burak</title><link>http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-172895</link> <dc:creator>burak</dc:creator> <pubDate>Sat, 30 Jul 2011 20:22:43 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-172895</guid> <description>Thank you, but Terminal doesn&#039;t accept my passwd anymore, all of a sudden (I guess).</description> <content:encoded><![CDATA[<p>Thank you, but Terminal doesn&#8217;t accept my passwd anymore, all of a sudden (I guess).</p> ]]></content:encoded> </item> <item><title>By: TryMe</title><link>http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-172893</link> <dc:creator>TryMe</dc:creator> <pubDate>Sat, 30 Jul 2011 18:58:14 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-172893</guid> <description>/nfs seems like a file. Try it as follows:
&lt;pre&gt;
sudo mkdir /nfs2
sudo mount -o soft,intr,rsize=8192,wsize=192.168.2.149:/DataVolume/Public /nfs2
&lt;/pre&gt;</description> <content:encoded><![CDATA[<p>/nfs seems like a file. Try it as follows:</p><pre>
sudo mkdir /nfs2
sudo mount -o soft,intr,rsize=8192,wsize=192.168.2.149:/DataVolume/Public /nfs2
</pre>]]></content:encoded> </item> <item><title>By: burak</title><link>http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-172888</link> <dc:creator>burak</dc:creator> <pubDate>Sat, 30 Jul 2011 15:21:57 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-172888</guid> <description>Terminal produced this:
tvin@tvin-Macmini ~ $ showmount -e 192.168.2.149
Export list for 192.168.2.149:
/DataVolume/tvin *
/DataVolume/Public *
/DataVolume/Download *
/DataVolume/acarburak *
tvin@tvin-Macmini ~ $ sudo mkdir /nfs
mkdir: cannot create directory `/nfs&#039;: File exists
tvin@tvin-Macmini ~ $ sudo mount -o soft,intr,rsize=8192,wsize=192.168.2.149:/DataVolume/public /nfs
mount: can&#039;t find /nfs in /etc/fstab or /etc/mtab
tvin@tvin-Macmini ~ $ df -h
Can anyone help?</description> <content:encoded><![CDATA[<p>Terminal produced this:</p><p>tvin@tvin-Macmini ~ $ showmount -e 192.168.2.149<br
/> Export list for 192.168.2.149:<br
/> /DataVolume/tvin *<br
/> /DataVolume/Public *<br
/> /DataVolume/Download *<br
/> /DataVolume/acarburak *<br
/> tvin@tvin-Macmini ~ $ sudo mkdir /nfs<br
/> mkdir: cannot create directory `/nfs&#8217;: File exists<br
/> tvin@tvin-Macmini ~ $ sudo mount -o soft,intr,rsize=8192,wsize=192.168.2.149:/DataVolume/public /nfs<br
/> mount: can&#8217;t find /nfs in /etc/fstab or /etc/mtab<br
/> tvin@tvin-Macmini ~ $ df -h</p><p>Can anyone help?</p> ]]></content:encoded> </item> <item><title>By: Ahmed</title><link>http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-171215</link> <dc:creator>Ahmed</dc:creator> <pubDate>Sat, 07 May 2011 22:40:08 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-171215</guid> <description>This is by far the best HowTo I ever seen for mounting NFS shares on ubuntu.
Thanks dude :)</description> <content:encoded><![CDATA[<p>This is by far the best HowTo I ever seen for mounting NFS shares on ubuntu.<br
/> Thanks dude :)</p> ]]></content:encoded> </item> <item><title>By: C. Mahalingam</title><link>http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-170487</link> <dc:creator>C. Mahalingam</dc:creator> <pubDate>Wed, 06 Apr 2011 11:30:45 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-170487</guid> <description>in ubuntu I cannot able to install nfs-common
#apt-get install nfs-common
nfs-common is already the newest version but when it doesn’t create
/etc/init.d/nfs-common.
I have tried even after removing nfs-common
#apt-get remove nfs-common
how to solve this problem.</description> <content:encoded><![CDATA[<p>in ubuntu I cannot able to install nfs-common<br
/> #apt-get install nfs-common<br
/> nfs-common is already the newest version but when it doesn’t create<br
/> /etc/init.d/nfs-common.<br
/> I have tried even after removing nfs-common<br
/> #apt-get remove nfs-common</p><p>how to solve this problem.</p> ]]></content:encoded> </item> <item><title>By: Rodney Beede</title><link>http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-169390</link> <dc:creator>Rodney Beede</dc:creator> <pubDate>Tue, 01 Mar 2011 22:08:21 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-169390</guid> <description>In some cases even though you put an entry in /etc/fstab the share may fail to load.  The networking must all be setup before it will work.
Using _netdev does not always work either.  The boot process with nfs4 and newer distros does not wait.
You have to setup an rc script to mount nfs shares after network setup.</description> <content:encoded><![CDATA[<p>In some cases even though you put an entry in /etc/fstab the share may fail to load.  The networking must all be setup before it will work.</p><p>Using _netdev does not always work either.  The boot process with nfs4 and newer distros does not wait.</p><p>You have to setup an rc script to mount nfs shares after network setup.</p> ]]></content:encoded> </item> <item><title>By: Zaf</title><link>http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-167268</link> <dc:creator>Zaf</dc:creator> <pubDate>Fri, 31 Dec 2010 09:11:21 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-167268</guid> <description>Note worked for me:
rpcbind: server localhost not responding, timed out
Z.</description> <content:encoded><![CDATA[<p>Note worked for me:<br
/> rpcbind: server localhost not responding, timed out<br
/> Z.</p> ]]></content:encoded> </item> <item><title>By: Thomas</title><link>http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-166540</link> <dc:creator>Thomas</dc:creator> <pubDate>Tue, 28 Dec 2010 18:37:21 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-166540</guid> <description>I have a debian machine as client, and a synology NAS as NFS server.
The folders on the NAS are protected by user/pass.
I cannot find anything on the web that tells me how i should send the user/pass along with the mount command :(
in windows i would just do \\ip\share and then enter user/pass when promted. seems much easier</description> <content:encoded><![CDATA[<p>I have a debian machine as client, and a synology NAS as NFS server.</p><p>The folders on the NAS are protected by user/pass.</p><p>I cannot find anything on the web that tells me how i should send the user/pass along with the mount command :(</p><p>in windows i would just do \\ip\share and then enter user/pass when promted. seems much easier</p> ]]></content:encoded> </item> <item><title>By: Gregor</title><link>http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-165823</link> <dc:creator>Gregor</dc:creator> <pubDate>Sat, 25 Dec 2010 19:45:20 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-165823</guid> <description>This tutorial work, thanks for writing it.
Greetings from Denmark
Gregor</description> <content:encoded><![CDATA[<p>This tutorial work, thanks for writing it.</p><p>Greetings from Denmark<br
/> Gregor</p> ]]></content:encoded> </item> <item><title>By: Jose H</title><link>http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-161456</link> <dc:creator>Jose H</dc:creator> <pubDate>Mon, 22 Nov 2010 19:15:00 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-161456</guid> <description>Hi, the tutorial was great, got my nfs shares mounted atomatically at start on my netbook :D
One thing I did notice was that my boot time has been made much longer. Is there a way to delay the mounting of the nfs shares?
Thank you :D</description> <content:encoded><![CDATA[<p>Hi, the tutorial was great, got my nfs shares mounted atomatically at start on my netbook :D</p><p>One thing I did notice was that my boot time has been made much longer. Is there a way to delay the mounting of the nfs shares?</p><p>Thank you :D</p> ]]></content:encoded> </item> <item><title>By: dano</title><link>http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-159273</link> <dc:creator>dano</dc:creator> <pubDate>Wed, 01 Sep 2010 06:21:07 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-159273</guid> <description>the same problem as Junior: the nfs-common is not installing at:
#apt-get install nfs-common
i&#039;ve tried to make un upgrade:
#apt-get upgrade
and the result is the same . the message for installing is:
nfs-common is already the newest version but when it doesn&#039;t create
/etc/init.d/nfs-common.
what should i do?</description> <content:encoded><![CDATA[<p>the same problem as Junior: the nfs-common is not installing at:<br
/> #apt-get install nfs-common<br
/> i&#8217;ve tried to make un upgrade:<br
/> #apt-get upgrade<br
/> and the result is the same . the message for installing is:<br
/> nfs-common is already the newest version but when it doesn&#8217;t create<br
/> /etc/init.d/nfs-common.<br
/> what should i do?</p> ]]></content:encoded> </item> <item><title>By: junior</title><link>http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-154798</link> <dc:creator>junior</dc:creator> <pubDate>Tue, 06 Apr 2010 03:12:08 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-154798</guid> <description>how can i access in share folder in ubuntu in client pc
pls check it
ok</description> <content:encoded><![CDATA[<p>how can i access in share folder in ubuntu in client pc<br
/> pls check it<br
/> ok</p> ]]></content:encoded> </item> <item><title>By: Manish</title><link>http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-153534</link> <dc:creator>Manish</dc:creator> <pubDate>Mon, 15 Feb 2010 08:32:37 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html#comment-153534</guid> <description>Thanks. You made it really simple for me. I am new to Ubuntu and hoping to get away from Microsoft, so long as help is around. Thanks!</description> <content:encoded><![CDATA[<p>Thanks. You made it really simple for me. I am new to Ubuntu and hoping to get away from Microsoft, so long as help is around. Thanks!</p> ]]></content:encoded> </item> </channel> </rss>
