Author Topic: NFS failing to mount & not finding other machine exports  (Read 2945 times)

Offline marriedman

  • Full Member
  • ***
  • Posts: 155
NFS failing to mount & not finding other machine exports
« on: November 15, 2010, 06:59:24 PM »
This is driving me bat-sh!t crazy. I currently have on my main desktop/media server an entire drive of movies, music, & pictures shared as a NFS export. All my other PC's see it. All my other PC's can read/write to it. It was so easy and has worked flawlessly since I switched to PCLOS.

I decided I would go ahead and share some folders on the other PC's so I could have access to stuff on each of them. I cannot get any other machine to mount on my main desktop. It fails every time. Here is the Control Center log:
Code: [Select]
20:44:34 diskdrake[5018]: ### Program is starting ###
20:44:35 diskdrake[5018]: running: blkid -o udev -p /dev/sda
20:44:36 diskdrake[5018]: running: blkid -o udev -p /dev/sda
20:44:36 diskdrake[5018]: running: blkid -o udev -p /dev/sda1
20:44:36 diskdrake[5018]: running: blkid -o udev -p /dev/sda2
20:44:36 diskdrake[5018]: running: blkid -o udev -p /dev/sda3
20:44:36 diskdrake[5018]: running: blkid -o udev -p /dev/sdb
20:44:36 diskdrake[5018]: running: blkid -o udev -p /dev/sdb
20:44:36 diskdrake[5018]: running: blkid -o udev -p /dev/sdb1
20:44:36 diskdrake[5018]: created directory / (and parents if necessary)
20:44:36 diskdrake[5018]: created directory /home (and parents if necessary)
20:44:36 diskdrake[5018]: created directory /Omni (and parents if necessary)
20:44:36 diskdrake[5018]: created directory /dev/shm (and parents if necessary)
20:44:36 diskdrake[5018]: created directory /proc (and parents if necessary)
20:44:36 diskdrake[5018]: created directory /proc (and parents if necessary)
20:44:36 diskdrake[5018]: created directory /dev/pts (and parents if necessary)
20:44:36 diskdrake[5018]: created directory /dev/shm (and parents if necessary)
20:44:36 diskdrake[5018]: running: /etc/rc.d/init.d/nfs-common start
20:46:48 diskdrake[5018]: running: showmount --no-headers -e 192.168.1.104
20:47:11 diskdrake[5018]: created directory /home/paul/Public/HTPC/ (and parents if necessary)
20:47:11 diskdrake[5018]: running: mount -t nfs linux-2:/home/daddy/Documents /home/paul/Public/HTPC -o rsize=8192,wsize=8192,nosuid,soft
20:49:09 diskdrake[5018]: running: showmount --no-headers -e 192.168.1.101
20:49:19 diskdrake[5018]: created directory /home/paul/Public/HTPC/ (and parents if necessary)
20:49:19 diskdrake[5018]: running: mount -t nfs linux-2:/home/daddy/Documents /home/paul/Public/HTPC -o rsize=8192,wsize=8192,nosuid,soft
Here is the error message
Code: [Select]
mounting partition linux-2:/home/daddy/Documents in directory /home/paul/Public HTPC failed.And lastly here is the Konsole output
Code: [Select]
paul@enterprise:~$ su
Password:
[root@enterprise paul]# /usr/sbin/drakconf
[root@enterprise paul]# "/usr/bin/drakmenustyle" is not executable [Menus] at /usr/sbin/drakconf.real line 822.
"/usr/sbin/drakvirt" is not executable [Virtualization] at /usr/sbin/drakconf.real line 822.
mount.nfs: Failed to resolve server linux-2: Name or service not known

Also, I do not know if this is pertinent, but I cannot even see my laptop when I search for servers. But I can see that nfs-common and nfs server are running.

Offline Xero

  • Sr. Member
  • ****
  • Posts: 468
Re: NFS failing to mount & not finding other machine exports
« Reply #1 on: November 16, 2010, 12:22:51 PM »
NFS  WAS mountinmg nicely with the gui a while ago, then stopped after a certain point, even with re-install. Something has changed. But I set up the shares in PCC, then did some reading, and taking note of the IP address of the machine, and the mount point of the share , went to other pc,  opened Konsole/Terminal, logged in as root (su), created mount point for share on PC (/eg. mkdir /media/SHARE), and ran mount IPaddreess/ofothermachine:mount/point/of/othershare  /media/SHARE (for example), and it mounts it fine in the local filesystem. :)
There is no shame in saying "I don't know".

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: NFS failing to mount & not finding other machine exports
« Reply #2 on: November 17, 2010, 02:08:59 AM »
There is apparently a problem at present with the NFS share 'search' function.
It does not seem to find other PCs on the network and thus cannot find their shares.

My solution is to enter into the fstab a 'dummy' entry for shares on a PC, then use the GUI ....  and the shares are magically showing!

From there I can modify and adjust the actual shares I want to use.

regards.

Offline marriedman

  • Full Member
  • ***
  • Posts: 155
Re: NFS failing to mount & not finding other machine exports
« Reply #3 on: November 18, 2010, 01:22:28 PM »
I have not been able to get back on the computers for a couple of days (gearing up for a long trip) but I will give this a try and report back!

Offline Crow

  • Hero Member
  • *****
  • Posts: 8769
  • OBJECTS IN MIRROR... ARE LOSING
Re: NFS failing to mount & not finding other machine exports
« Reply #4 on: April 21, 2011, 02:13:46 PM »
There is apparently a problem at present with the NFS share 'search' function.
It does not seem to find other PCs on the network and thus cannot find their shares.

My solution is to enter into the fstab a 'dummy' entry for shares on a PC, then use the GUI ....  and the shares are magically showing!

From there I can modify and adjust the actual shares I want to use.

regards.

Hi Just19 can you explain that in plain English please? (better in a "just for dummies way")  the second computer apparently finds the shared folder but in doesn't mount it.

I shared files using an external HD for many months now (it doesn't bother me) but we (kids and me) can't play using the network and that is a real problem  :P  now that I finally have a few days at home
I shall pass this way but once;
any good therefore that I can do,
or any kindness that I can show
let me not defer nor neglect it,
for I shall not pass this way again.

Linux User #330412

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6245
Re: NFS failing to mount & not finding other machine exports
« Reply #5 on: April 21, 2011, 02:27:18 PM »

Crow,
you just dug up an old thread the OP probably no longer cares about and will probably not be very happy with it starting showing up on his "new posts since last visit" list.

Can you open another thread and continue from there?
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline Crow

  • Hero Member
  • *****
  • Posts: 8769
  • OBJECTS IN MIRROR... ARE LOSING
Re: NFS failing to mount & not finding other machine exports
« Reply #6 on: April 21, 2011, 02:55:19 PM »

Crow,
you just dug up an old thread the OP probably no longer cares about and will probably not be very happy with it starting showing up on his "new posts since last visit" list.

Can you open another thread and continue from there?

I will muungwana thanks
I shall pass this way but once;
any good therefore that I can do,
or any kindness that I can show
let me not defer nor neglect it,
for I shall not pass this way again.

Linux User #330412

Offline marriedman

  • Full Member
  • ***
  • Posts: 155
Re: NFS failing to mount & not finding other machine exports
« Reply #7 on: April 22, 2011, 04:41:44 PM »
No problem at all resucutating this thread. It was never solved, I just gave up. Now I will be looking for your post!

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6245
Re: NFS failing to mount & not finding other machine exports
« Reply #8 on: April 22, 2011, 06:27:21 PM »
Quote
mounting partition linux-2:/home/daddy/Documents in directory /home/paul/Public HTPC failed.

Quote
mount.nfs: Failed to resolve server linux-2: Name or service not known

I think the problem is in the above two lines.

What is the ip address behind a host name "linux-2"?

You were either supposed to use the IP address associated with that server or have a mechanism on your network or in your system that will be able to resolve the host name to its associated IP address.

Most people use IP addresses directly and you should have done that.

If you prefer to use hostnames, add their associated IP addresses in "/etc/hosts" file. There should be atlaest one entry in the file to show you the format.

The above two are the most easiest ways, the more complicated way and probably an overkill is to use hostnames and then have a local DNS server that will resolve all host names DNS requests.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline moniac

  • Full Member
  • ***
  • Posts: 198
Re: NFS failing to mount & not finding other machine exports
« Reply #9 on: April 23, 2011, 07:46:25 AM »
I had the same problem. I solved it by adding  /etc/rc.d/init.d/netfs restart in my rc.local file. Works now.

Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15309
  • ┌∩┐(◕_◕)┌∩┐
Re: NFS failing to mount & not finding other machine exports
« Reply #10 on: April 23, 2011, 07:57:33 AM »
Not sure if this is applicable to the problem...........

Tex just posted this on identi.ca

"Tried to move nfs stuff to start later in the boot sequence. It may be that nfs isn't activated when speedboot is enabled."
PCLinuxOS 32bit KDE 4.10.1; kernel-3.4.11-pclos1.bfs & 64bit 3.2.18bfs; NVidia GeForce 8400GS 1GB 310.19 driver

Sony Vaio SVE1513A4ESI Laptop, Intel Core i5, 2.6GHz, 6GB RAM, 750GB, 15.6" Intel HD Graphics 4000