[Discuss] Mounting LINUX Share

Cy Schubert Cy.Schubert at komquats.com
Mon Jul 6 00:18:52 PDT 2015


In message <559A09FF.2020402 at shaw.ca>, Murray Strome writes:
> On 2015-07-05 07:48 PM, Cy Schubert wrote:
> > In message <5599E720.4000904 at shaw.ca>, Murray Strome writes:
> >> Thanks for your help, Cy. However, I have failed to get my LINUX share
> >> mounted. I tried:
> >> sudo mount -t nfs 192.158.0.118:/mnt/Free_NAS/LINUX
> >>
> >> and it comes back with:
> >> can't find 192.168.0.118:/mnt/Free_NAS/LINUX in /etc/fstab
> >>
> >> Any idea of what I am doing wrong?
> > You need to specify a node on which to mount on, e.g.,
> >
> > sudo mount -t nfs 192.158.0.118:/mnt/Free_NAS/LINUX /some/where
> >
> > Or, you will need to put it in fstab:
> >
> > 192.158.0.118:/mnt/Free_NAS/LINUX /some/where		nfs	default
> s 0 0
> >
> > Then issue mount /some/where.
> >
> >
> OK, it was really dumb of me to forget the /some/where.  However, when I 
> tried it with a proper some/where I get:
> 
> mount: wrong fs type, bad option, bad superblock on 
> 192.168.0.118:/mnt/Free_NAS/LINUX,
>         missing codepage or helper program, or other error
>         (for several filesystems (e.g. nfs, cifs) you might
>         need a /sbin/mount.<type> helper program)

You need the nfs client installed. This is because mount(8) cannot handle 
the mount so it calls a helper program, e.g. mount_nfs (FreeBSD) or 
mount.nfs (Linux).

> 
> 
> So, I installed some nfs things using Synaptic 

Yes.

> and tried it again and got:
> 
>   mount.nfs: access denied by server while mounting 
> 192.168.0.118:/mnt/Free_NAS/LINUX

Now you need to make sure that it is exported on your NAS box. I'm not sure 
how you'd do that with FreeNAS but on a standard FreeBSD system (just like 
Linux) the exports are listed in /etc/exports. I assume the mountd daemon 
is running on your NAS box?

> 
> When I look at Network using a file manager, I can see the Windows and 
> Mac shares, but not the NFS share. I can look at the Windows share 
> (which is set up to require no password) and the Mac share by supplying 
> a user name and password.
> 
> I have looked at lots of articles about this but cannot see what I am 
> doing wrong.

It hasn't been exported then. On your client, showmount -e 192.168.0.118 
should list the NFS shares.


-- 
Cheers,
Cy Schubert <Cy.Schubert at komquats.com> or <Cy.Schubert at cschubert.com>
FreeBSD UNIX:  <cy at FreeBSD.org>   Web:  http://www.FreeBSD.org

	The need of the many outweighs the greed of the few.






More information about the Discuss mailing list