Contribute
Register

NFS exports

Status
Not open for further replies.
Joined
Mar 6, 2011
Messages
15
Mac
  1. 0
Classic Mac
  1. 0
Mobile Phone
  1. 0
Hi

I'm trying to add a directory to exports so that I can mount a share via NFS on a client.

However, there seems to be a load of weird stuff in my exports file.

When I use command

sh-3.2# cat /etc/exports

{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf350
{\fonttbl\f0\fmodern\fcharset0 Courier;}
{\colortbl;\red255\green255\blue255;}
\paperw11900\paperh16840\margl1440\margr1440\vieww14480\viewh3140\viewkind0
\deftab720
\pard\pardeftab720\ql\qnatural

\f0\fs24 \cf0 /Users/giblet/Downloads/complete -ro -mapall=nobody -network 192.168.1 -mask 255.255.255.0\

I've no idea what all that erroneous stuff means before my eventual export is shown... anyone have any clue what it's referring to and how do I remove all that stuff from the exports file?????

My exports file only contains:

/Users/giblet/Downloads/complete -ro -mapall=nobody -network 192.168.1 -mask 255.255.255.0

When I use showmount nothing is shown as below....

sh-3.2# showmount -e
Exports list on localhost:

Somethings not right...

Any help appreciated.

Thanks

giblet
 
Edit it, and save as plain text...
 
There's nothing in the exports file when I edit it.

Just the line I added:

/Users/giblet/Downloads/complete -ro -mapall=nobody -network 192.168.1 -mask 255.255.255.0

I only see that other garbage when I use command

sh-3.2# cat /etc/exports

So where is that other data coming from....? It doesn't make sense and it's completely messing up the exports file.

(It's doubly annoying as this is the only thing stopping me from ditching Windows 7 and moving to OSx. I need to export NFS shares to enable streaming of high bitrate video to my WDTV Live. I use haneWIN NFS Server on Windows 7 and it works very well).
 
therealgiblet said:
There's nothing in the exports file when I edit it.
Yes there is... Just you don't see it in TextEdit, as all that "garbage" is actually formatting metadata...
When you use cat it just shows the unformatted contents of the file.

What you should do in TextEdit is select "Make Plain Text" from the "Format" menu, and then save.
 
Thanks!! That was really getting very annoying...

Whoops, spoke too soon...
Now I can see the correct output from cat but showmount -e is not showing share as being mounted (see below):

giblets-mac-pro:~ giblet$ cat /etc/exports
/Users/giblet/Downloads/complete -ro -mapall=nobody -network 192.168.1 -mask 255.255.255.0
giblets-mac-pro:~ giblet$ showmount -e
Exports list on localhost:
giblets-mac-pro:~ giblet$



REBOOT solved this...

Exports list on localhost:
/Users/giblet/Downloads/complete 192.168.1.0

Hurrah - thanks for your help.
 
Status
Not open for further replies.
Back
Top