Red Hat Networking - Problem exporting to /etc/fstab

This is Interesting: Free IT Magazines  
Home > Archive > Red Hat Networking > January 2004 > Problem exporting to /etc/fstab





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Problem exporting to /etc/fstab
Skip

2004-01-23, 7:37 pm

Is there any reason why I can't export an NFS file system to /etc/fstab?

As far as I'm aware, NFS is running correctly. When I execute
/usr/sbin/exportfs -a -v the command line says it exported properly, but
there's no new line in the fstab file.

Any suggestions would be most appreciated.

Skip

2004-01-23, 7:37 pm

Boris Glawe wrote:
quote:

> Skip wrote:
>
>
>
> In /etc/fstab you find those directories, that you want to mount. With
> exportfs, you grant access to other machines to mount files from your
> computer. Your are the server then and the clients want to mount
> something from you.
>
> If you want to grant access to the machine "punky", you have to add an
> entry to /etc/exports (NOT /etc/fstab), which looks like
>
> /shared_directory punky(no_root_squash,rw,async)
>
> After having added this entry, you use exportfs -ra to tell the nfsd,
> that punky may mount/access this directory.
>
> As an alternative to adding a line to /etc/exports, you can directly
> grant access to a certain directory with the exportfs command (see man
> exportfs).
>
> If you want to mount a directory from another machine, you will have to
> edit /etc/fstab manually. Add a line like
>
> fileserver:/shared_directory /imported_directory nfs defaults 0 0
>
> Don't ask me, want "0 0" at the end of the lie means, you append them.
>
> you can then mount the directory with
>
> mount /shared_directory
>
> given, that "fileserver" has granted you acces by adding you to it's
> /etc/exports, and executing "exportfs -ra" as I explained above..
>
>
> greets Boris
>


Thanks Boris. The solution was quite simple. I did not have the
"no_root_squash" option enable in my /etc/exports file, so it was
preventing my client from mounting the shared filesystem.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com