[Discuss] Mounting LINUX Share

Murray Strome wmstrome at shaw.ca
Mon Jul 6 12:50:15 PDT 2015


On 2015-07-06 12:18 AM, Cy Schubert wrote:
> 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.
>
$ sudo mount  192.168.0.118:/mnt/Free_NAS /LINUX_Share
mount.nfs: access denied by server while mounting 
192.168.0.118:/mnt/Free_NAS
$ showmount -e 192.168.0.118
Export list for 192.168.0.118:
/mnt/Free_NAS/LINUX 198.162.0.0          {Where did it get that?}

/etc/exports has nothing in it.

Could the problem have anything to do with the fact that my user ID on 
Free_NAS is 1001, but on all of my LINUX computers it is 1000?



More information about the Discuss mailing list