Unable to mount the nfs entries from etc/fstab

I am getting this error when trying to mount my client on the directory I exported in Yast2 NFS Server?

Not sure why. trying to create nfs share.

On Sun, 17 Jan 2010 18:06:01 +0000, bperrotta wrote:

> I am getting this error when trying to mount my client on the directory
> I exported in Yast2 NFS Server?
>
> Not sure why. trying to create nfs share.

When you do this, are you doing it from a terminal window?

If so, what error messages do you see?

You might also look at /var/log/messages to see what errors are reported
there.

Jim


Jim Henderson
openSUSE Forums Moderator

No did it with yast2 gui client under network services.

No mounting errors in /var/log/messages.all normal DHCP Acknowlegesments

On Sun, 17 Jan 2010 18:26:02 +0000, bperrotta wrote:

> No did it with yast2 gui client under network services.

I’d give it a try from a terminal window then to see what error messages
are generated by the mount command. Since the directories are in fstab,
you should just need to do:

mount /path/to/mount/point

(replacing “/path/to/mount/point” with the path you want to mount to.

Also open a second terminal window and become root (“su -” - then enter
the root password) and enter “tail -f /var/log/messages” - this will
show you the messages log while trying the mount - see what messages show
up there.

Jim


Jim Henderson
openSUSE Forums Moderator

mount /home/bperrotta/nfs
mount.nfs4: DNS resolution failed for Suse11-Home: Name or service not known
linux-bma3:/var/log #

I want to mount the /Suse11-Home/home/bperrotta

on the local directory on linux-bma3 /home/bperrotta/nfs

linux-bma3:/var/log # mount /Suse11-Home/home/bperrotta /home/bperrotta/nfs
mount: special device /Suse11-Home/home/bperrotta does not exist

Also tried mount Suse11-Home.billdomain:/home/bperrotta /home/bperrotta/nfs
mount.nfs: mount to NFS server ‘Suse11-Home.billdomain:/home/bperrotta’ failed: timed out, giving up

I am logged in as root

/etc/exports on the server should be like this:


/home   *(rw,root_squash,sync,no_subtree_check)

/etc/fstab on a client should be like this:


ServerIPhere:/home     /home   nfs     defaults 0 0

This comes from a working sitution.

it mounts with the ip address .

Unless I use a static address i guess I have to always remount. could add host name to /etc/hosts correct?

if I reserve an ip in on my router

this worked mount 192.168.15.3:/home/bperrotta /home/bperrotta/nfs

On Sun, 17 Jan 2010 19:16:01 +0000, bperrotta wrote:

> Unless I use a static address i guess I have to always remount. could
> add host name to /etc/hosts correct?

Yep, that’s correct - I’ve run into that one myself, and had suspected
that was your issue here.

Jim


Jim Henderson
openSUSE Forums Moderator