problem in mounting an nfs export on a USB disk

Tapas Mishra mightydreams at gmail.com
Wed Jan 5 16:27:23 UTC 2011


On Wed, Jan 5, 2011 at 7:55 PM, Serge Hallyn <serge.hallyn at canonical.com> wrote:
> Quoting Tapas Mishra (mightydreams at gmail.com):
>> On Wed, Jan 5, 2011 at 7:27 PM, Serge Hallyn <serge.hallyn at canonical.com> wrote:
>> > Quoting Tapas Mishra (mightydreams at gmail.com):
>> >> I have a USB disk which has 2 partitions.I exported one of them (on NFS)
>> >> and now I am trying to mount it at client machine.
>> >> Each time it gets error
>> >>
>> >> mount -t nfs 192.168.1.19:/media/vol2 /mnt/nfs/
>> >> mount.nfs: access denied by server while mounting 192.168.1.19:/media/vol2
>> >>
>> >> Here is the /etc/exports file entry
>> >>
>> >> showmount -e on nfs server gives
>> >> Export list for tapas:
>> >> /media/vol2 */24
>> >
>> > If I'm not mistaken, you are only supposed to use '*' with fully qualified
>> > domain names, and '*.*' must be specified for 'google.com' (not '*').  So
>> > ISTM that both using '*' and then specifyin /24 are wrong.
>> >
>> > Try 0.0.0.0/24?
>> >
>> > -serge
>> >
>>
>>
>> Before posting here I had tried the IP of client where I have put the *
>
> Also I'm not sure if showmounts output would show this, but is the (options)
> after ip address required?  For instance, cat /etc/exports would give:
>
>        /media/vol2 0.0.0.0/24(rw)
>
> If that still doesn't work, you could try
>
>        /media/vol2 (rw)
>
> to check whether addressing is the problem.  But I think we'll need to
> see whether there are any relevant messages in /var/log/syslog.
>
> (You're using the nfs kernel server, right?)
>
Yes I am away from my office right now.But do let me know what logs do
you want to see or I should see.
It will take me 15 hours due to time zone difference but I will update
this thread as the USB with which I reported this problem is not with
me.
How ever the nfs-server is on my laptop only so if there is some thing
you want to see(from this) I will be able to post.

the entries which after your msg I noticed in /var/log/syslog are

Jan  5 14:12:14 tapas mountd[1577]: refused mount request from
192.168.1.14 for /media/vol2 (/media/vol2): unmatched host
Jan  5 14:13:16 tapas mountd[1577]: refused mount request from
192.168.1.14 for /media/vol2 (/media/vol2): unmatched host

do let me know what more should I check try.Due to time zone
difference I may not be able to report immediately in an hour or so
but I will update if you stick with the thread.




More information about the ubuntu-server mailing list