Mounting a second Hard Drive

We have a QNX4.25 node that has an 8.4 GB hard drive in it. This drive
is 100% QNX/OS. We would like to install a second hard drive 6 GB also
100% QNX4. The bios see the drive and as a slave on the primary
channel. But, I can not get the drive to function or even be seen under
the OS. There is no entry in the /dev directory for it.

What am I missing? Interesting that the installation manual does not
address this very well.

Thanks for the help,


Larry

Hi Larry,

What version on the OS are you running (What patch?).
How are you starting the Fsys driver?

Regards,

Joe

Dixie Sams <dixie@imaginei.com> wrote:

We have a QNX4.25 node that has an 8.4 GB hard drive in it. This drive
is 100% QNX/OS. We would like to install a second hard drive 6 GB also
100% QNX4. The bios see the drive and as a slave on the primary
channel. But, I can not get the drive to function or even be seen under
the OS. There is no entry in the /dev directory for it.

What am I missing? Interesting that the installation manual does not
address this very well.

Thanks for the help,

Larry

Hi Larry,

Also try runnig ‘disktrap’.

Regards,

Joe

Dixie Sams <dixie@imaginei.com> wrote:

We have a QNX4.25 node that has an 8.4 GB hard drive in it. This drive
is 100% QNX/OS. We would like to install a second hard drive 6 GB also
100% QNX4. The bios see the drive and as a slave on the primary
channel. But, I can not get the drive to function or even be seen under
the OS. There is no entry in the /dev directory for it.

What am I missing? Interesting that the installation manual does not
address this very well.

Thanks for the help,

Larry

The version of the OS is version4.25 patch B dated Feb 26,1999. This was
obtained by doing a more on /etc/version/qnx.

The fsys driver command which is built into the OS image with parameters is:


Fsys.eide fsys -Ndsk1 -n0=hd1. -n5=cd1. eide -a170 -i15

Thanks,


Hardware Support Account wrote:

Hi Larry,

What version on the OS are you running (What patch?).
How are you starting the Fsys driver?

Regards,

Joe

Dixie Sams <> dixie@imaginei.com> > wrote:
We have a QNX4.25 node that has an 8.4 GB hard drive in it. This drive
is 100% QNX/OS. We would like to install a second hard drive 6 GB also
100% QNX4. The bios see the drive and as a slave on the primary
channel. But, I can not get the drive to function or even be seen under
the OS. There is no entry in the /dev directory for it.

What am I missing? Interesting that the installation manual does not
address this very well.

Thanks for the help,

Larry

The results of a disktrap is:

Fsys.eide…


Thanks,




Hardware Support Account wrote:

Hi Larry,

Also try runnig ‘disktrap’.

Regards,

Joe

Dixie Sams <> dixie@imaginei.com> > wrote:
We have a QNX4.25 node that has an 8.4 GB hard drive in it. This drive
is 100% QNX/OS. We would like to install a second hard drive 6 GB also
100% QNX4. The bios see the drive and as a slave on the primary
channel. But, I can not get the drive to function or even be seen under
the OS. There is no entry in the /dev directory for it.

What am I missing? Interesting that the installation manual does not
address this very well.

Thanks for the help,

Larry

If Fsys.eide were started with no args, I should think it would find
the two hard drives nd call them hd0 (for the primary) and hd1 (the
new drive). The command line has “used” hd1, however.

What I would do is to remove all the args from the Fsys.eide line
and change the subsequent mount command to refer to hd0 instead of
hd1. Also, in the sysinit file you would need to change any refs to
hd1 and add a mount command for the new drive (which will be hd1).

Dixie Sams wrote:

The version of the OS is version4.25 patch B dated Feb 26,1999. This was
obtained by doing a more on /etc/version/qnx.

The fsys driver command which is built into the OS image with parameters is:

Fsys.eide fsys -Ndsk1 -n0=hd1. -n5=cd1. eide -a170 -i15

Thanks,

Hardware Support Account wrote:

Hi Larry,

What version on the OS are you running (What patch?).
How are you starting the Fsys driver?

Regards,

Joe

Dixie Sams <> dixie@imaginei.com> > wrote:
We have a QNX4.25 node that has an 8.4 GB hard drive in it. This drive
is 100% QNX/OS. We would like to install a second hard drive 6 GB also
100% QNX4. The bios see the drive and as a slave on the primary
channel. But, I can not get the drive to function or even be seen under
the OS. There is no entry in the /dev directory for it.

What am I missing? Interesting that the installation manual does not
address this very well.

Thanks for the help,

Larry

Thanks Richard,

With the help of your suggestion I was about the get further along. But now I
have a slightly different problem. First, a little background. Your suggestion
of removing the parameters from the Fsys.eide did not work the computer hung after
mounting the two hard drives. I printed the ‘use Fsys.eide’ and tried to follow
along.

This is what the new /boot/build/install.7 looks like.

/boot/sys/boot
$ /boot/sys/boot -v

/boot/sys/Proc32
$ /boot/sys/Proc32 -l 7

/boot/sys/Slib32
$ /boot/sys/Slib32

/boot/sys/Slib16
$ /boot/sys/Slib16

/bin/Fsys
$ /bin/Fsys

/bin/Fsys.eide
$ /bin/Fsys.eide fsys -M 3 -Ndsk0 -n0=hd0. -n1=hd0. -n5=cd1. eide -a1f0 -i14

/bin/mount
$ /bin/mount -p /dev/hd0.0 /dev/hd0.0t77 /

/bin/mount
$ /bin/mount -p /dev/hd0.1 /dev/hd0.1t77 /ps

/bin/sinit
$ /bin/sinit TERM=qnxm

The new sysinit.7 looks like this:

set -v
#Image: /boot/sys/boot -v
#Image: /boot/sys/Proc32 -l 7
#Image: /boot/sys/Slib32
#Image: /boot/sys/Slib16
#Image: /bin/Fsys
#Image: /bin/Fsys.eide fsys -Ndsk0 -n0=hd0. -n1=hd1. -n5=cd0. eide -a1f0 -i14
#Image: /bin/mount -p /dev/hd0.0 /dev/hd0.0t77 /
#Image: /bin/mount -p /dev/hd1.0 /dev/hd1.0t77 /second
#Image: /bin/sinit TERM=qnxm
#export NODE=7
export KBD=en_US_101.kbd
export ABLANG=en
export CON_KBD=USA
export TZ=utc00
/bin/rtc -l hw
Dev -n96 &
emu87 &
Pipe &
/bin/Dev.ser -N/dev/ser1 3f8,4 &
/bin/Dev.ser -N/dev/ser2 2f8,3 &
/bin/Dev.ser -N/dev/ser3 3e8,10 &
Dev.ansi -Q -n8 &
reopen /dev/con1
kbd $CON_KBD
prefix -A /dev/console=/dev/con1
Dev.par &
Dev.pty -n16 &
Dev.pty -lq -n16 &
/bin/Fsys.floppy -a3f0 -i6
/bin/Iso9660fsys /cd1.0=/dev/cd1.0 &

Define the default CD Rom

/bin/prefix -A /cd=//0/cd1.0
nameloc &
#nettrap start
/bin/Net -d 2 &
/bin/Net.arcnet -l1 -i5 &
/bin/Net.ether509 -l2 -i10 -p240 &
netmap -f
#/usr/ucb/Socket node2 &
#/usr/ucb/inetd &

#/usr/ucb/Socket node2 &
#/usr/ucb/ifconfig en2 node2 up
#/usr/ucb/ifconfig lo0 localhost up
#/usr/ucb/inetd &

chkfsys /
Dosfsys a=/dev/fd0 &
#if test -f /etc/config/bin/tcpip.$NODE
#then
#. /etc/config/bin/tcpip.$NODE
#fi
#if test -f /etc/config/bin/ph.$NODE
#then
#. /etc/config/bin/ph.$NODE
#else
tinit
tinit -t /dev/con1 &
tinit -t /dev/con[2-6] &
#fi
tinit -c “modem -L -b 57600” -m 10 -t /dev/ser3 &
stty baud=38400 +edit +echo </dev/ser2
#Mouse msoft </dev/ser1 &
clr_all
clock -f bcyan -b black “+%b %d %r” &


The primary and second hard drives mount just fine. But after a minute or so I
get and error stateing:

Couldn’t add ‘/cd1.0’

Any suggestions.


Thanks,


Larry

Richard R. Kramer wrote:

If Fsys.eide were started with no args, I should think it would find
the two hard drives nd call them hd0 (for the primary) and hd1 (the
new drive). The command line has “used” hd1, however.

What I would do is to remove all the args from the Fsys.eide line
and change the subsequent mount command to refer to hd0 instead of
hd1. Also, in the sysinit file you would need to change any refs to
hd1 and add a mount command for the new drive (which will be hd1).

Dixie Sams wrote:

The version of the OS is version4.25 patch B dated Feb 26,1999. This was
obtained by doing a more on /etc/version/qnx.

The fsys driver command which is built into the OS image with parameters is:

Fsys.eide fsys -Ndsk1 -n0=hd1. -n5=cd1. eide -a170 -i15

Thanks,

Hardware Support Account wrote:

Hi Larry,

What version on the OS are you running (What patch?).
How are you starting the Fsys driver?

Regards,

Joe

Dixie Sams <> dixie@imaginei.com> > wrote:
We have a QNX4.25 node that has an 8.4 GB hard drive in it. This drive
is 100% QNX/OS. We would like to install a second hard drive 6 GB also
100% QNX4. The bios see the drive and as a slave on the primary
channel. But, I can not get the drive to function or even be seen under
the OS. There is no entry in the /dev directory for it.

What am I missing? Interesting that the installation manual does not
address this very well.

Thanks for the help,

Larry

After you get the error message, does ls /dev/cd* show anything?
Does ls /cd* show anything?

As I mentioned, I would not do it like this - it’s way too
complicated. I would be inclined to figure out where the hang is
ocurring by putting “set -x” at the top of sysinit.7. That may
give you some clues.

Richard

Dixie Sams wrote:

Thanks Richard,

With the help of your suggestion I was about the get further along. But now I
have a slightly different problem. First, a little background. Your suggestion
of removing the parameters from the Fsys.eide did not work the computer hung after
mounting the two hard drives. I printed the ‘use Fsys.eide’ and tried to follow
along.

This is what the new /boot/build/install.7 looks like.

/boot/sys/boot
$ /boot/sys/boot -v

/boot/sys/Proc32
$ /boot/sys/Proc32 -l 7

/boot/sys/Slib32
$ /boot/sys/Slib32

/boot/sys/Slib16
$ /boot/sys/Slib16

/bin/Fsys
$ /bin/Fsys

/bin/Fsys.eide
$ /bin/Fsys.eide fsys -M 3 -Ndsk0 -n0=hd0. -n1=hd0. -n5=cd1. eide -a1f0 -i14

/bin/mount
$ /bin/mount -p /dev/hd0.0 /dev/hd0.0t77 /

/bin/mount
$ /bin/mount -p /dev/hd0.1 /dev/hd0.1t77 /ps

/bin/sinit
$ /bin/sinit TERM=qnxm

The new sysinit.7 looks like this:

set -v
#Image: /boot/sys/boot -v
#Image: /boot/sys/Proc32 -l 7
#Image: /boot/sys/Slib32
#Image: /boot/sys/Slib16
#Image: /bin/Fsys
#Image: /bin/Fsys.eide fsys -Ndsk0 -n0=hd0. -n1=hd1. -n5=cd0. eide -a1f0 -i14
#Image: /bin/mount -p /dev/hd0.0 /dev/hd0.0t77 /
#Image: /bin/mount -p /dev/hd1.0 /dev/hd1.0t77 /second
#Image: /bin/sinit TERM=qnxm
#export NODE=7
export KBD=en_US_101.kbd
export ABLANG=en
export CON_KBD=USA
export TZ=utc00
/bin/rtc -l hw
Dev -n96 &
emu87 &
Pipe &
/bin/Dev.ser -N/dev/ser1 3f8,4 &
/bin/Dev.ser -N/dev/ser2 2f8,3 &
/bin/Dev.ser -N/dev/ser3 3e8,10 &
Dev.ansi -Q -n8 &
reopen /dev/con1
kbd $CON_KBD
prefix -A /dev/console=/dev/con1
Dev.par &
Dev.pty -n16 &
Dev.pty -lq -n16 &
/bin/Fsys.floppy -a3f0 -i6
/bin/Iso9660fsys /cd1.0=/dev/cd1.0 &

Define the default CD Rom

/bin/prefix -A /cd=//0/cd1.0
nameloc &
#nettrap start
/bin/Net -d 2 &
/bin/Net.arcnet -l1 -i5 &
/bin/Net.ether509 -l2 -i10 -p240 &
netmap -f
#/usr/ucb/Socket node2 &
#/usr/ucb/inetd &

#/usr/ucb/Socket node2 &
#/usr/ucb/ifconfig en2 node2 up
#/usr/ucb/ifconfig lo0 localhost up
#/usr/ucb/inetd &

chkfsys /
Dosfsys a=/dev/fd0 &
#if test -f /etc/config/bin/tcpip.$NODE
#then
#. /etc/config/bin/tcpip.$NODE
#fi
#if test -f /etc/config/bin/ph.$NODE
#then
#. /etc/config/bin/ph.$NODE
#else
tinit
tinit -t /dev/con1 &
tinit -t /dev/con[2-6] &
#fi
tinit -c “modem -L -b 57600” -m 10 -t /dev/ser3 &
stty baud=38400 +edit +echo </dev/ser2
#Mouse msoft </dev/ser1 &
clr_all
clock -f bcyan -b black “+%b %d %r” &

The primary and second hard drives mount just fine. But after a minute or so I
get and error stateing:

Couldn’t add ‘/cd1.0’

Any suggestions.

Thanks,

Larry

Richard R. Kramer wrote:

If Fsys.eide were started with no args, I should think it would find
the two hard drives nd call them hd0 (for the primary) and hd1 (the
new drive). The command line has “used” hd1, however.

What I would do is to remove all the args from the Fsys.eide line
and change the subsequent mount command to refer to hd0 instead of
hd1. Also, in the sysinit file you would need to change any refs to
hd1 and add a mount command for the new drive (which will be hd1).

Dixie Sams wrote:

The version of the OS is version4.25 patch B dated Feb 26,1999. This was
obtained by doing a more on /etc/version/qnx.

The fsys driver command which is built into the OS image with parameters is:

Fsys.eide fsys -Ndsk1 -n0=hd1. -n5=cd1. eide -a170 -i15

Thanks,

Hardware Support Account wrote:

Hi Larry,

What version on the OS are you running (What patch?).
How are you starting the Fsys driver?

Regards,

Joe

Dixie Sams <> dixie@imaginei.com> > wrote:
We have a QNX4.25 node that has an 8.4 GB hard drive in it. This drive
is 100% QNX/OS. We would like to install a second hard drive 6 GB also
100% QNX4. The bios see the drive and as a slave on the primary
channel. But, I can not get the drive to function or even be seen under
the OS. There is no entry in the /dev directory for it.

What am I missing? Interesting that the installation manual does not
address this very well.

Thanks for the help,

Larry

I agree with the other Richard. I would do the following:

Replace this

/bin/Fsys.eide
$ /bin/Fsys.eide fsys -M 3 -Ndsk0 -n0=hd0. -n1=hd0. -n5=cd1.
eide -a1f0 -i14

/bin/mount
$ /bin/mount -p /dev/hd0.0 /dev/hd0.0t77 /

/bin/mount
$ /bin/mount -p /dev/hd0.1 /dev/hd0.1t77 /ps

with this

/bin/Fsys.eide
$ /bin/Fsys.eide

/bin/mount
$ /bin/mount -p /dev/hd0 /dev/hd0t77 /

And then remove Iso9660fsys from the sysinit. Then when the machine boots
you can check what devices Fsys.eide found under /dev/hd* and potentially
/dev/cd*. If /dev/hd1 exists then try mounting the partitions from the
command line “mount -p /dev/hd1”. Now look under /dev to see what partitions
were found on the device /dev/hd1t*. If there are none then create some with
fdisk /dev/hd1" If there are QNX partitions then mount the partitions “mount
/dev/hd1t77 /ps”. If a /dev/cd entry exists then start Iso9660 filesystem
“Iso9660fsys &”.

Doing all this from the command line will save you time on reboots until you
get it right. Once you have it down then add it to the build file or the
sysinit file.

Cheers,

“Richard R. Kramer” <rrkramer@kramer-smilko.com> wrote in message
news:3B44DC6B.CE64A448@kramer-smilko.com

After you get the error message, does ls /dev/cd* show anything?
Does ls /cd* show anything?

As I mentioned, I would not do it like this - it’s way too
complicated. I would be inclined to figure out where the hang is
ocurring by putting “set -x” at the top of sysinit.7. That may
give you some clues.

Richard

Dixie Sams wrote:

Thanks Richard,

With the help of your suggestion I was about the get further along. But
now I
have a slightly different problem. First, a little background. Your
suggestion
of removing the parameters from the Fsys.eide did not work the computer
hung after
mounting the two hard drives. I printed the ‘use Fsys.eide’ and tried
to follow
along.

This is what the new /boot/build/install.7 looks like.

/boot/sys/boot
$ /boot/sys/boot -v

/boot/sys/Proc32
$ /boot/sys/Proc32 -l 7

/boot/sys/Slib32
$ /boot/sys/Slib32

/boot/sys/Slib16
$ /boot/sys/Slib16

/bin/Fsys
$ /bin/Fsys

/bin/Fsys.eide
$ /bin/Fsys.eide fsys -M 3 -Ndsk0 -n0=hd0. -n1=hd0. -n5=cd1.
eide -a1f0 -i14

/bin/mount
$ /bin/mount -p /dev/hd0.0 /dev/hd0.0t77 /

/bin/mount
$ /bin/mount -p /dev/hd0.1 /dev/hd0.1t77 /ps

/bin/sinit
$ /bin/sinit TERM=qnxm

The new sysinit.7 looks like this:

set -v
#Image: /boot/sys/boot -v
#Image: /boot/sys/Proc32 -l 7
#Image: /boot/sys/Slib32
#Image: /boot/sys/Slib16
#Image: /bin/Fsys
#Image: /bin/Fsys.eide fsys -Ndsk0 -n0=hd0. -n1=hd1. -n5=cd0.
eide -a1f0 -i14
#Image: /bin/mount -p /dev/hd0.0 /dev/hd0.0t77 /
#Image: /bin/mount -p /dev/hd1.0 /dev/hd1.0t77 /second
#Image: /bin/sinit TERM=qnxm
#export NODE=7
export KBD=en_US_101.kbd
export ABLANG=en
export CON_KBD=USA
export TZ=utc00
/bin/rtc -l hw
Dev -n96 &
emu87 &
Pipe &
/bin/Dev.ser -N/dev/ser1 3f8,4 &
/bin/Dev.ser -N/dev/ser2 2f8,3 &
/bin/Dev.ser -N/dev/ser3 3e8,10 &
Dev.ansi -Q -n8 &
reopen /dev/con1
kbd $CON_KBD
prefix -A /dev/console=/dev/con1
Dev.par &
Dev.pty -n16 &
Dev.pty -lq -n16 &
/bin/Fsys.floppy -a3f0 -i6
/bin/Iso9660fsys /cd1.0=/dev/cd1.0 &

Define the default CD Rom

/bin/prefix -A /cd=//0/cd1.0
nameloc &
#nettrap start
/bin/Net -d 2 &
/bin/Net.arcnet -l1 -i5 &
/bin/Net.ether509 -l2 -i10 -p240 &
netmap -f
#/usr/ucb/Socket node2 &
#/usr/ucb/inetd &

#/usr/ucb/Socket node2 &
#/usr/ucb/ifconfig en2 node2 up
#/usr/ucb/ifconfig lo0 localhost up
#/usr/ucb/inetd &

chkfsys /
Dosfsys a=/dev/fd0 &
#if test -f /etc/config/bin/tcpip.$NODE
#then
#. /etc/config/bin/tcpip.$NODE
#fi
#if test -f /etc/config/bin/ph.$NODE
#then
#. /etc/config/bin/ph.$NODE
#else
tinit
tinit -t /dev/con1 &
tinit -t /dev/con[2-6] &
#fi
tinit -c “modem -L -b 57600” -m 10 -t /dev/ser3 &
stty baud=38400 +edit +echo </dev/ser2
#Mouse msoft </dev/ser1 &
clr_all
clock -f bcyan -b black “+%b %d %r” &

The primary and second hard drives mount just fine. But after a minute
or so I
get and error stateing:

Couldn’t add ‘/cd1.0’

Any suggestions.

Thanks,

Larry

Richard R. Kramer wrote:

If Fsys.eide were started with no args, I should think it would find
the two hard drives nd call them hd0 (for the primary) and hd1 (the
new drive). The command line has “used” hd1, however.

What I would do is to remove all the args from the Fsys.eide line
and change the subsequent mount command to refer to hd0 instead of
hd1. Also, in the sysinit file you would need to change any refs to
hd1 and add a mount command for the new drive (which will be hd1).

Dixie Sams wrote:

The version of the OS is version4.25 patch B dated Feb 26,1999.
This was
obtained by doing a more on /etc/version/qnx.

The fsys driver command which is built into the OS image with
parameters is:

Fsys.eide fsys -Ndsk1 -n0=hd1. -n5=cd1. eide -a170 -i15

Thanks,

Hardware Support Account wrote:

Hi Larry,

What version on the OS are you running (What patch?).
How are you starting the Fsys driver?

Regards,

Joe

Dixie Sams <> dixie@imaginei.com> > wrote:
We have a QNX4.25 node that has an 8.4 GB hard drive in it.
This drive
is 100% QNX/OS. We would like to install a second hard drive 6
GB also
100% QNX4. The bios see the drive and as a slave on the primary
channel. But, I can not get the drive to function or even be
seen under
the OS. There is no entry in the /dev directory for it.

What am I missing? Interesting that the installation manual
does not
address this very well.

Thanks for the help,

Larry

I forgot to mention the need to dinit any new partitions that you create
before you use them. dinit will initialize the partition so be careful to
select the right one.

“Brown, Richard” <brownr@aecl.ca> wrote in message
news:9i45gq$4s0$1@inn.qnx.com

I agree with the other Richard. I would do the following:

Replace this
/bin/Fsys.eide
$ /bin/Fsys.eide fsys -M 3 -Ndsk0 -n0=hd0. -n1=hd0. -n5=cd1.
eide -a1f0 -i14

/bin/mount
$ /bin/mount -p /dev/hd0.0 /dev/hd0.0t77 /

/bin/mount
$ /bin/mount -p /dev/hd0.1 /dev/hd0.1t77 /ps

with this
/bin/Fsys.eide
$ /bin/Fsys.eide

/bin/mount
$ /bin/mount -p /dev/hd0 /dev/hd0t77 /


And then remove Iso9660fsys from the sysinit. Then when the machine boots
you can check what devices Fsys.eide found under /dev/hd* and potentially
/dev/cd*. If /dev/hd1 exists then try mounting the partitions from the
command line “mount -p /dev/hd1”. Now look under /dev to see what
partitions
were found on the device /dev/hd1t*. If there are none then create some
with
fdisk /dev/hd1" If there are QNX partitions then mount the partitions
“mount
/dev/hd1t77 /ps”. If a /dev/cd entry exists then start Iso9660 filesystem
“Iso9660fsys &”.

Doing all this from the command line will save you time on reboots until
you
get it right. Once you have it down then add it to the build file or the
sysinit file.

Cheers,

“Richard R. Kramer” <> rrkramer@kramer-smilko.com> > wrote in message
news:> 3B44DC6B.CE64A448@kramer-smilko.com> …
After you get the error message, does ls /dev/cd* show anything?
Does ls /cd* show anything?

As I mentioned, I would not do it like this - it’s way too
complicated. I would be inclined to figure out where the hang is
ocurring by putting “set -x” at the top of sysinit.7. That may
give you some clues.

Richard

Dixie Sams wrote:

Thanks Richard,

With the help of your suggestion I was about the get further along.
But
now I
have a slightly different problem. First, a little background. Your
suggestion
of removing the parameters from the Fsys.eide did not work the
computer
hung after
mounting the two hard drives. I printed the ‘use Fsys.eide’ and tried
to follow
along.

This is what the new /boot/build/install.7 looks like.

/boot/sys/boot
$ /boot/sys/boot -v

/boot/sys/Proc32
$ /boot/sys/Proc32 -l 7

/boot/sys/Slib32
$ /boot/sys/Slib32

/boot/sys/Slib16
$ /boot/sys/Slib16

/bin/Fsys
$ /bin/Fsys

/bin/Fsys.eide
$ /bin/Fsys.eide fsys -M 3 -Ndsk0 -n0=hd0. -n1=hd0. -n5=cd1.
eide -a1f0 -i14

/bin/mount
$ /bin/mount -p /dev/hd0.0 /dev/hd0.0t77 /

/bin/mount
$ /bin/mount -p /dev/hd0.1 /dev/hd0.1t77 /ps

/bin/sinit
$ /bin/sinit TERM=qnxm

The new sysinit.7 looks like this:

set -v
#Image: /boot/sys/boot -v
#Image: /boot/sys/Proc32 -l 7
#Image: /boot/sys/Slib32
#Image: /boot/sys/Slib16
#Image: /bin/Fsys
#Image: /bin/Fsys.eide fsys -Ndsk0 -n0=hd0. -n1=hd1. -n5=cd0.
eide -a1f0 -i14
#Image: /bin/mount -p /dev/hd0.0 /dev/hd0.0t77 /
#Image: /bin/mount -p /dev/hd1.0 /dev/hd1.0t77 /second
#Image: /bin/sinit TERM=qnxm
#export NODE=7
export KBD=en_US_101.kbd
export ABLANG=en
export CON_KBD=USA
export TZ=utc00
/bin/rtc -l hw
Dev -n96 &
emu87 &
Pipe &
/bin/Dev.ser -N/dev/ser1 3f8,4 &
/bin/Dev.ser -N/dev/ser2 2f8,3 &
/bin/Dev.ser -N/dev/ser3 3e8,10 &
Dev.ansi -Q -n8 &
reopen /dev/con1
kbd $CON_KBD
prefix -A /dev/console=/dev/con1
Dev.par &
Dev.pty -n16 &
Dev.pty -lq -n16 &
/bin/Fsys.floppy -a3f0 -i6
/bin/Iso9660fsys /cd1.0=/dev/cd1.0 &

Define the default CD Rom

/bin/prefix -A /cd=//0/cd1.0
nameloc &
#nettrap start
/bin/Net -d 2 &
/bin/Net.arcnet -l1 -i5 &
/bin/Net.ether509 -l2 -i10 -p240 &
netmap -f
#/usr/ucb/Socket node2 &
#/usr/ucb/inetd &

#/usr/ucb/Socket node2 &
#/usr/ucb/ifconfig en2 node2 up
#/usr/ucb/ifconfig lo0 localhost up
#/usr/ucb/inetd &

chkfsys /
Dosfsys a=/dev/fd0 &
#if test -f /etc/config/bin/tcpip.$NODE
#then
#. /etc/config/bin/tcpip.$NODE
#fi
#if test -f /etc/config/bin/ph.$NODE
#then
#. /etc/config/bin/ph.$NODE
#else
tinit
tinit -t /dev/con1 &
tinit -t /dev/con[2-6] &
#fi
tinit -c “modem -L -b 57600” -m 10 -t /dev/ser3 &
stty baud=38400 +edit +echo </dev/ser2
#Mouse msoft </dev/ser1 &
clr_all
clock -f bcyan -b black “+%b %d %r” &

The primary and second hard drives mount just fine. But after a
minute
or so I
get and error stateing:

Couldn’t add ‘/cd1.0’

Any suggestions.

Thanks,

Larry

Richard R. Kramer wrote:

If Fsys.eide were started with no args, I should think it would find
the two hard drives nd call them hd0 (for the primary) and hd1 (the
new drive). The command line has “used” hd1, however.

What I would do is to remove all the args from the Fsys.eide line
and change the subsequent mount command to refer to hd0 instead of
hd1. Also, in the sysinit file you would need to change any refs to
hd1 and add a mount command for the new drive (which will be hd1).

Dixie Sams wrote:

The version of the OS is version4.25 patch B dated Feb 26,1999.
This was
obtained by doing a more on /etc/version/qnx.

The fsys driver command which is built into the OS image with
parameters is:

Fsys.eide fsys -Ndsk1 -n0=hd1. -n5=cd1. eide -a170 -i15

Thanks,

Hardware Support Account wrote:

Hi Larry,

What version on the OS are you running (What patch?).
How are you starting the Fsys driver?

Regards,

Joe

Dixie Sams <> dixie@imaginei.com> > wrote:
We have a QNX4.25 node that has an 8.4 GB hard drive in it.
This drive
is 100% QNX/OS. We would like to install a second hard drive
6
GB also
100% QNX4. The bios see the drive and as a slave on the
primary
channel. But, I can not get the drive to function or even be
seen under
the OS. There is no entry in the /dev directory for it.

What am I missing? Interesting that the installation manual
does not
address this very well.

Thanks for the help,

Larry

And if you donot choose right partition then dinit will erase it, right?
And no idea, how to restore it?

Thanks in Advance

“Brown, Richard” <brownr@aecl.ca> wrote in message
news:9i45t4$584$1@inn.qnx.com

I forgot to mention the need to dinit any new partitions that you create
before you use them. dinit will initialize the partition so be careful to
select the right one.

“Brown, Richard” <> brownr@aecl.ca> > wrote in message
news:9i45gq$4s0$> 1@inn.qnx.com> …
I agree with the other Richard. I would do the following:

Replace this
/bin/Fsys.eide
$ /bin/Fsys.eide fsys -M 3 -Ndsk0 -n0=hd0. -n1=hd0. -n5=cd1.
eide -a1f0 -i14

/bin/mount
$ /bin/mount -p /dev/hd0.0 /dev/hd0.0t77 /

/bin/mount
$ /bin/mount -p /dev/hd0.1 /dev/hd0.1t77 /ps

with this
/bin/Fsys.eide
$ /bin/Fsys.eide

/bin/mount
$ /bin/mount -p /dev/hd0 /dev/hd0t77 /


And then remove Iso9660fsys from the sysinit. Then when the machine
boots
you can check what devices Fsys.eide found under /dev/hd* and
potentially
/dev/cd*. If /dev/hd1 exists then try mounting the partitions from the
command line “mount -p /dev/hd1”. Now look under /dev to see what
partitions
were found on the device /dev/hd1t*. If there are none then create some
with
fdisk /dev/hd1" If there are QNX partitions then mount the partitions
“mount
/dev/hd1t77 /ps”. If a /dev/cd entry exists then start Iso9660
filesystem
“Iso9660fsys &”.

Doing all this from the command line will save you time on reboots until
you
get it right. Once you have it down then add it to the build file or the
sysinit file.

Cheers,

“Richard R. Kramer” <> rrkramer@kramer-smilko.com> > wrote in message
news:> 3B44DC6B.CE64A448@kramer-smilko.com> …
After you get the error message, does ls /dev/cd* show anything?
Does ls /cd* show anything?

As I mentioned, I would not do it like this - it’s way too
complicated. I would be inclined to figure out where the hang is
ocurring by putting “set -x” at the top of sysinit.7. That may
give you some clues.

Richard

Dixie Sams wrote:

Thanks Richard,

With the help of your suggestion I was about the get further along.
But
now I
have a slightly different problem. First, a little background.
Your
suggestion
of removing the parameters from the Fsys.eide did not work the
computer
hung after
mounting the two hard drives. I printed the ‘use Fsys.eide’ and
tried
to follow
along.

This is what the new /boot/build/install.7 looks like.

/boot/sys/boot
$ /boot/sys/boot -v

/boot/sys/Proc32
$ /boot/sys/Proc32 -l 7

/boot/sys/Slib32
$ /boot/sys/Slib32

/boot/sys/Slib16
$ /boot/sys/Slib16

/bin/Fsys
$ /bin/Fsys

/bin/Fsys.eide
$ /bin/Fsys.eide fsys -M 3 -Ndsk0 -n0=hd0. -n1=hd0. -n5=cd1.
eide -a1f0 -i14

/bin/mount
$ /bin/mount -p /dev/hd0.0 /dev/hd0.0t77 /

/bin/mount
$ /bin/mount -p /dev/hd0.1 /dev/hd0.1t77 /ps

/bin/sinit
$ /bin/sinit TERM=qnxm

The new sysinit.7 looks like this:

set -v
#Image: /boot/sys/boot -v
#Image: /boot/sys/Proc32 -l 7
#Image: /boot/sys/Slib32
#Image: /boot/sys/Slib16
#Image: /bin/Fsys
#Image: /bin/Fsys.eide fsys -Ndsk0 -n0=hd0. -n1=hd1. -n5=cd0.
eide -a1f0 -i14
#Image: /bin/mount -p /dev/hd0.0 /dev/hd0.0t77 /
#Image: /bin/mount -p /dev/hd1.0 /dev/hd1.0t77 /second
#Image: /bin/sinit TERM=qnxm
#export NODE=7
export KBD=en_US_101.kbd
export ABLANG=en
export CON_KBD=USA
export TZ=utc00
/bin/rtc -l hw
Dev -n96 &
emu87 &
Pipe &
/bin/Dev.ser -N/dev/ser1 3f8,4 &
/bin/Dev.ser -N/dev/ser2 2f8,3 &
/bin/Dev.ser -N/dev/ser3 3e8,10 &
Dev.ansi -Q -n8 &
reopen /dev/con1
kbd $CON_KBD
prefix -A /dev/console=/dev/con1
Dev.par &
Dev.pty -n16 &
Dev.pty -lq -n16 &
/bin/Fsys.floppy -a3f0 -i6
/bin/Iso9660fsys /cd1.0=/dev/cd1.0 &

Define the default CD Rom

/bin/prefix -A /cd=//0/cd1.0
nameloc &
#nettrap start
/bin/Net -d 2 &
/bin/Net.arcnet -l1 -i5 &
/bin/Net.ether509 -l2 -i10 -p240 &
netmap -f
#/usr/ucb/Socket node2 &
#/usr/ucb/inetd &

#/usr/ucb/Socket node2 &
#/usr/ucb/ifconfig en2 node2 up
#/usr/ucb/ifconfig lo0 localhost up
#/usr/ucb/inetd &

chkfsys /
Dosfsys a=/dev/fd0 &
#if test -f /etc/config/bin/tcpip.$NODE
#then
#. /etc/config/bin/tcpip.$NODE
#fi
#if test -f /etc/config/bin/ph.$NODE
#then
#. /etc/config/bin/ph.$NODE
#else
tinit
tinit -t /dev/con1 &
tinit -t /dev/con[2-6] &
#fi
tinit -c “modem -L -b 57600” -m 10 -t /dev/ser3 &
stty baud=38400 +edit +echo </dev/ser2
#Mouse msoft </dev/ser1 &
clr_all
clock -f bcyan -b black “+%b %d %r” &

The primary and second hard drives mount just fine. But after a
minute
or so I
get and error stateing:

Couldn’t add ‘/cd1.0’

Any suggestions.

Thanks,

Larry

Richard R. Kramer wrote:

If Fsys.eide were started with no args, I should think it would
find
the two hard drives nd call them hd0 (for the primary) and hd1
(the
new drive). The command line has “used” hd1, however.

What I would do is to remove all the args from the Fsys.eide line
and change the subsequent mount command to refer to hd0 instead of
hd1. Also, in the sysinit file you would need to change any refs
to
hd1 and add a mount command for the new drive (which will be hd1).

Dixie Sams wrote:

The version of the OS is version4.25 patch B dated Feb 26,1999.
This was
obtained by doing a more on /etc/version/qnx.

The fsys driver command which is built into the OS image with
parameters is:

Fsys.eide fsys -Ndsk1 -n0=hd1. -n5=cd1. eide -a170 -i15

Thanks,

Hardware Support Account wrote:

Hi Larry,

What version on the OS are you running (What patch?).
How are you starting the Fsys driver?

Regards,

Joe

Dixie Sams <> dixie@imaginei.com> > wrote:
We have a QNX4.25 node that has an 8.4 GB hard drive in it.
This drive
is 100% QNX/OS. We would like to install a second hard
drive
6
GB also
100% QNX4. The bios see the drive and as a slave on the
primary
channel. But, I can not get the drive to function or even
be
seen under
the OS. There is no entry in the /dev directory for it.

What am I missing? Interesting that the installation manual
does not
address this very well.

Thanks for the help,

Larry
\