Networking Forums

Networking Forums > Computer Networking > Linux Networking > NFS Mount Problem

Reply
Thread Tools Display Modes

NFS Mount Problem

 
 
mpierce
Guest
Posts: n/a

 
      09-06-2003, 06:03 PM
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
 
 
 
 
Draxen
Guest
Posts: n/a

 
      09-07-2003, 08:41 AM
"mpierce" <(E-Mail Removed)> wrote in message
ews(E-Mail Removed) .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
 
mpierce
Guest
Posts: n/a

 
      09-08-2003, 01:59 AM
On Sun, 07 Sep 2003 09:41:08 +0100, Draxen wrote:

> "mpierce" <(E-Mail Removed)> wrote in message
> ews(E-Mail Removed) .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
 
Draxen
Guest
Posts: n/a

 
      09-08-2003, 09:40 AM
"mpierce" <(E-Mail Removed)> wrote in message
news(E-Mail Removed) u.nospam...
> On Sun, 07 Sep 2003 09:41:08 +0100, Draxen wrote:
>
> > "mpierce" <(E-Mail Removed)> wrote in message
> > ews(E-Mail Removed) .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
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba mount problem Vinicius 'Corvu' BR Linux Networking 0 07-31-2006 01:35 PM
HELP with autofs and NIS: How to override mount options on all mount points? theosib@gmail.com Linux Networking 0 03-04-2006 09:12 PM
cant nfs mount problem p cooper Linux Networking 6 08-25-2005 08:31 PM
NFS mount won't mount at boot, but mount -a works fine. BT Linux Networking 2 09-23-2004 09:37 PM
NFS mount problem - SUSE 9.1 Scott Myron Linux Networking 0 06-23-2004 04:46 PM



1 2 3 4 5 6 7 8 9 10 11