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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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? |
|
|||
|
"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 ? |
|
|||
|
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? |
|
|||
|
"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 |