Bluehost.com Web Hosting $6.95

NFS Mount Problem

This is a discussion on NFS Mount Problem within the Linux Networking forums, part of the Linux Forums category; Using Debian Sarge Trying to mount two partitions on a notebook connected to my server. One mounts without a problem ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-06-2003
mpierce
 
Posts: n/a
Default NFS Mount Problem

Using Debian Sarge

Trying to mount two partitions on a notebook connected to my server.
One mounts without a problem and the other refuses to mount with the
error:
sudo mount 192.168.1.252:/data /mnt/data/
mount: RPC: Unable to receive; errno = Connection refused

The partition that mounts is a normal linux partition and mounts OK to
/mnt/dellbook; the other is a vfat partition and refuses to mount.

Here are fstab entries:
#Dell notebook
dellbook:/home/mpierce /mnt/dellbook nfs rw,user,noauto,soft,bg 1 2
dellbook:/data /mnt/data nfs rw,user,noauto,soft,bg
1 2

I should normal be able to do mount dellbook or mount data since the mount
points exist.

Can someone tell me what is wrong here?
Reply With Quote
  #2 (permalink)  
Old 09-07-2003
Draxen
 
Posts: n/a
Default Re: NFS Mount Problem

"mpierce" <mrpierce@optusnet.com.au.nospam> wrote in message
ews:pan.2003.09.06.18.00.41.810539@optusnet.com.au .nospam...
> Using Debian Sarge
>
> Trying to mount two partitions on a notebook connected to my server.
> One mounts without a problem and the other refuses to mount with the
> error:
> sudo mount 192.168.1.252:/data /mnt/data/
> mount: RPC: Unable to receive; errno = Connection refused
>
> The partition that mounts is a normal linux partition and mounts OK to
> /mnt/dellbook; the other is a vfat partition and refuses to mount.
>
> Here are fstab entries:
> #Dell notebook
> dellbook:/home/mpierce /mnt/dellbook nfs rw,user,noauto,soft,bg

1 2
> dellbook:/data /mnt/data nfs rw,user,noauto,soft,bg
> 1 2
>
> I should normal be able to do mount dellbook or mount data since the mount
> points exist.
>
> Can someone tell me what is wrong here?


Have you got both partitions listed in the notebook's /etc/exports file ?

Reply With Quote
  #3 (permalink)  
Old 09-08-2003
mpierce
 
Posts: n/a
Default Re: NFS Mount Problem

On Sun, 07 Sep 2003 09:41:08 +0100, Draxen wrote:

> "mpierce" <mrpierce@optusnet.com.au.nospam> wrote in message
> ews:pan.2003.09.06.18.00.41.810539@optusnet.com.au .nospam...
>> Using Debian Sarge
>>
>> Trying to mount two partitions on a notebook connected to my server.
>> One mounts without a problem and the other refuses to mount with the
>> error:
>> sudo mount 192.168.1.252:/data /mnt/data/
>> mount: RPC: Unable to receive; errno = Connection refused
>>
>> The partition that mounts is a normal linux partition and mounts OK to
>> /mnt/dellbook; the other is a vfat partition and refuses to mount.
>>
>> Here are fstab entries:
>> #Dell notebook
>> dellbook:/home/mpierce /mnt/dellbook nfs rw,user,noauto,soft,bg

> 1 2
>> dellbook:/data /mnt/data nfs rw,user,noauto,soft,bg
>> 1 2
>>
>> I should normal be able to do mount dellbook or mount data since the mount
>> points exist.
>>
>> Can someone tell me what is wrong here?

>
> Have you got both partitions listed in the notebook's /etc/exports file ?

Yes.

The problem seems to be caused by the fact that the notebook's
/etc/init.d/nfs-kernel-server is not refreshing.

If I manually ssh into notebook and do (as root):
/etc/init.d/nfs-kernel-server restart
the partitions will then mount.

This service shouldn't require this as it should be ready to go on demand
or should it?
Reply With Quote
  #4 (permalink)  
Old 09-08-2003
Draxen
 
Posts: n/a
Default Re: NFS Mount Problem

"mpierce" <mrpierce@optusnet.com.au.nospam> wrote in message
news:pan.2003.09.08.01.57.03.480160@optusnet.com.a u.nospam...
> On Sun, 07 Sep 2003 09:41:08 +0100, Draxen wrote:
>
> > "mpierce" <mrpierce@optusnet.com.au.nospam> wrote in message
> > ews:pan.2003.09.06.18.00.41.810539@optusnet.com.au .nospam...
> >> Using Debian Sarge
> >>
> >> Trying to mount two partitions on a notebook connected to my server.
> >> One mounts without a problem and the other refuses to mount with the
> >> error:
> >> sudo mount 192.168.1.252:/data /mnt/data/
> >> mount: RPC: Unable to receive; errno = Connection refused
> >>
> >> The partition that mounts is a normal linux partition and mounts OK to
> >> /mnt/dellbook; the other is a vfat partition and refuses to mount.
> >>
> >> Here are fstab entries:
> >> #Dell notebook
> >> dellbook:/home/mpierce /mnt/dellbook nfs rw,user,noauto,soft,bg

> > 1 2
> >> dellbook:/data /mnt/data nfs rw,user,noauto,soft,bg
> >> 1 2
> >>
> >> I should normal be able to do mount dellbook or mount data since the

mount
> >> points exist.
> >>
> >> Can someone tell me what is wrong here?

> >
> > Have you got both partitions listed in the notebook's /etc/exports file

?
> Yes.
>
> The problem seems to be caused by the fact that the notebook's
> /etc/init.d/nfs-kernel-server is not refreshing.
>
> If I manually ssh into notebook and do (as root):
> /etc/init.d/nfs-kernel-server restart
> the partitions will then mount.
>
> This service shouldn't require this as it should be ready to go on demand
> or should it?


Not necessarily. I don't know Debian but RH derivatives have a utility
called `ntsysv` to help control which services and daemons are started at a
particular run-level.


You could always do it by hand, assuming all your startup scripts live in
/etc/init.d/ you could put a softlink in /etc/rc3.d (if run-level 3 is your
default run level) and link it to the actual startup script. The link name
must begin with a capital `S` and have two digits after it, this determines
the order scripts get started.
I'm not explaining it well, so here's an example.

/etc/rc3.d/S99nfs -> /etc/init.d/nfs (or whatever the name of the startup
script is).

For neatness put a corresponding `K` link in /etc/rc0.d


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:48 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0