NFS

hello

i want to automatically mount two network file system when qnx start.
To do that, I have created the file /etc/rc.d/rc.local which is loaded at
startup,
and i wrote:
fs-nfs2 ip_server:/dir1 /exp_dir1
fs-nfs2 ip_server:/dir2 /exp_dir2

The first command doesn’t work and qnx display “mount error …”
and second one works very well.

Thanks

“Jerome Fabry” <jerome.fabry@athys.fr> wrote:

hello

i want to automatically mount two network file system when qnx start.
To do that, I have created the file /etc/rc.d/rc.local which is loaded at
startup,
and i wrote:
fs-nfs2 ip_server:/dir1 /exp_dir1
fs-nfs2 ip_server:/dir2 /exp_dir2

The first command doesn’t work and qnx display “mount error …”
and second one works very well.

I don’t know why the second one didn’t work but you can
do both on the same line:

fs-nfs2 ip_server:/dir1 /exp_dir1 ip_server:/dir2 /exp_dir2


Thomas

Thomas (toe-mah) Fletcher QNX Software Systems
thomasf@qnx.com Neutrino Development Group
(613)-591-0931 http://www.qnx.com/~thomasf

thomasf@qnx.com wrote:

“Jerome Fabry” <> jerome.fabry@athys.fr> > wrote:
hello

i want to automatically mount two network file system when qnx start.
To do that, I have created the file /etc/rc.d/rc.local which is loaded at
startup,
and i wrote:
fs-nfs2 ip_server:/dir1 /exp_dir1
fs-nfs2 ip_server:/dir2 /exp_dir2

The first command doesn’t work and qnx display “mount error …”
and second one works very well.

I don’t know why the second one didn’t work but you can
do both on the same line:

fs-nfs2 ip_server:/dir1 /exp_dir1 ip_server:/dir2 /exp_dir2

My guessing is this is too fast that tcpip is not started yet.
put a if_up en0 before the line might help.

-xtang

i do a mistake
I put a ping before fs-nfs2…
and now I can’t stop it.
help me please

“Xiaodan Tang” <xtang@qnx.com> a écrit dans le message news:
9ievud$t78$1@nntp.qnx.com

thomasf@qnx.com > wrote:
“Jerome Fabry” <> jerome.fabry@athys.fr> > wrote:
hello

i want to automatically mount two network file system when qnx start.
To do that, I have created the file /etc/rc.d/rc.local which is loaded
at
startup,
and i wrote:
fs-nfs2 ip_server:/dir1 /exp_dir1
fs-nfs2 ip_server:/dir2 /exp_dir2

The first command doesn’t work and qnx display “mount error …”
and second one works very well.

I don’t know why the second one didn’t work but you can
do both on the same line:

fs-nfs2 ip_server:/dir1 /exp_dir1 ip_server:/dir2 /exp_dir2

My guessing is this is too fast that tcpip is not started yet.
put a if_up en0 before the line might help.

-xtang

try typing slay ping

poseidon

I can’t do it because qnx doesn’t start.

“Me” <paul.ryan2@nospam.virgin.net> a écrit dans le message news:
9if889$sfj$1@inn.qnx.com

try typing slay ping

poseidon

Try starting in safe mode I beleive it will not run rc.local.

Or trying disconnecting the network. If it timeout it could
stop??

“Jérôme Fabry” <jerome.fabry@athys.fr> wrote in message
news:9ifb3b$qt$1@inn.qnx.com

I can’t do it because qnx doesn’t start.

“Me” <> paul.ryan2@nospam.virgin.net> > a écrit dans le message news:
9if889$sfj$> 1@inn.qnx.com> …
try typing slay ping

poseidon
\

try pressing the space bar at boot time?? then edit the file…

“Jérôme Fabry” wrote:

I can’t do it because qnx doesn’t start.

“Me” <> paul.ryan2@nospam.virgin.net> > a écrit dans le message news:
9if889$sfj$> 1@inn.qnx.com> …
try typing slay ping

poseidon

my opinions are mine, only mine, solely mine, and they are not related
in any possible way to the institution(s) in which I study and work.

Miguel Simon
Research Engineer
School of Aerospace and Mechanical Engineering
University of Oklahoma
http://www.amerobotics.ou.edu/
http://www.saic.com

“Mario Charest” <mcharest@zinformatic.com> a écrit dans le message news:
9ifdg7$2gp$1@inn.qnx.com

Try starting in safe mode I beleive it will not run rc.local…
yes, but i can’t see rc.local with “ls” and i can’t edit rc.sysinit to

disable the startup of rc.local



Or trying disconnecting the network. If it timeout it could
stop??
I tried it but it doesn’t work



“Jérôme Fabry” <> jerome.fabry@athys.fr> > wrote in message
news:9ifb3b$qt$> 1@inn.qnx.com> …
I can’t do it because qnx doesn’t start.

“Me” <> paul.ryan2@nospam.virgin.net> > a écrit dans le message news:
9if889$sfj$> 1@inn.qnx.com> …
try typing slay ping

poseidon


\

“Jérôme Fabry” <jerome.fabry@athys.fr> wrote in message
news:9igv0b$1cj$1@inn.qnx.com

“Mario Charest” <> mcharest@zinformatic.com> > a écrit dans le message news:
9ifdg7$2gp$> 1@inn.qnx.com> …

Try starting in safe mode I beleive it will not run rc.local…
yes, but i can’t see rc.local with “ls” and i can’t edit rc.sysinit to
disable the startup of rc.local

Do a find / -name rc.local. It’s got to be somewhere :wink:

Or trying disconnecting the network. If it timeout it could
stop??
I tried it but it doesn’t work



“Jérôme Fabry” <> jerome.fabry@athys.fr> > wrote in message
news:9ifb3b$qt$> 1@inn.qnx.com> …
I can’t do it because qnx doesn’t start.

“Me” <> paul.ryan2@nospam.virgin.net> > a écrit dans le message news:
9if889$sfj$> 1@inn.qnx.com> …
try typing slay ping

poseidon




\

The same thing has just happened to us after some fooling around with the
device enumerator. Try booting the machine, press space and select F5 for a
debug shell. Once there you, type exit and then at the prompt type PATH =
$PATH:/bin:/sbin. Type login and then login as root (to ensure that login
scripts are run to set up environment) and then you should be able to edit
the file.