How to add a slave drive?

Hi everyone,

I have an old computer running QNX 3.15E, which were using with our Starrett
CMM machine. It has a 50 MB hard drive, which is getting to small. I have
a 500 MB hard drive that I want to add as a slave drive.

The questions are; can it be done? And how?
I know how to do it in DOS or Windows but my QNX knowledge is somewhat
limited.

Please help, thank-you.

Andrew Pensko

the options on mount will show you…
do a ‘mount ?’ and you will see the syntax.

mount disk 4 /drivers/disk.atc c=170 i=15 s=0

this should work for you.
i would recommend making a backup of your critical data on the primary drive
first though just in case there are problems.

then you can fdisk 4 and partition it. make sure the size is right, and
the heads/tracks/sectors are correct.

Andrew Pensko <apensko@hotmail.com> wrote:

Hi everyone,

I have an old computer running QNX 3.15E, which were using with our Starrett
CMM machine. It has a 50 MB hard drive, which is getting to small. I have
a 500 MB hard drive that I want to add as a slave drive.

The questions are; can it be done? And how?
I know how to do it in DOS or Windows but my QNX knowledge is somewhat
limited.

Please help, thank-you.

Andrew Pensko


Randy Martin randy@qnx.com
Manager of FAE Group, North America
QNX Software Systems www.qnx.com
175 Terence Matthews Crescent, Kanata, Ontario, Canada K2M 1W8
Tel: 613-591-0931 Fax: 613-591-3579

please review my comments… you do NOT want to start a second driver but you
want the existing driver to control both interfaces.

my comments are if you are adding to a second interface, not a slave off the
first… my mistake… sorry!


so the syntax should be:

mount disk 4 d=3 p=2 s=0

then do the fdisk 4
dinit etc…


sorry for misreading your message! and i hope you got this second response
before trying the first!!!




Randy Martin <randy@qnx.com> wrote:

the options on mount will show you…
do a ‘mount ?’ and you will see the syntax.

mount disk 4 /drivers/disk.atc c=170 i=15 s=0

this should work for you.
i would recommend making a backup of your critical data on the primary drive
first though just in case there are problems.

then you can fdisk 4 and partition it. make sure the size is right, and
the heads/tracks/sectors are correct.

Andrew Pensko <> apensko@hotmail.com> > wrote:
Hi everyone,

I have an old computer running QNX 3.15E, which were using with our Starrett
CMM machine. It has a 50 MB hard drive, which is getting to small. I have
a 500 MB hard drive that I want to add as a slave drive.

The questions are; can it be done? And how?
I know how to do it in DOS or Windows but my QNX knowledge is somewhat
limited.

Please help, thank-you.

Andrew Pensko


Randy Martin > randy@qnx.com
Manager of FAE Group, North America
QNX Software Systems > www.qnx.com
175 Terence Matthews Crescent, Kanata, Ontario, Canada K2M 1W8
Tel: 613-591-0931 Fax: 613-591-3579


Randy Martin randy@qnx.com
Manager of FAE Group, North America
QNX Software Systems www.qnx.com
175 Terence Matthews Crescent, Kanata, Ontario, Canada K2M 1W8
Tel: 613-591-0931 Fax: 613-591-3579

Previously, Randy Martin wrote in qdn.public.qnx2:

please review my comments… you do NOT want to start a second driver but you
want the existing driver to control both interfaces.

my comments are if you are adding to a second interface, not a slave off the
first… my mistake… sorry!


so the syntax should be:

mount disk 4 d=3 p=2 s=0

then do the fdisk 4
dinit etc…


sorry for misreading your message! and i hope you got this second response
before trying the first!!!

Randy,

You’ve got this right the 2nd time for using a Master and Slave
on the same controller.

Just a side note, mounting a second driver will have very bad
consequences. Because the same driver is being mounted, it will occupy
the same driver slot. Any drives on the first controller will no longer
be accessable, and accessing them may cause a crash.

You can do this my disk.ata driver. I’ve created a
2nd’ary version called disk.ata_2 or something similar that uses
a different slot. Anyone who needs this can get it through me for
free.



Mitchell Schoenbrun --------- maschoen@pobox.com

Thank you for your help.

What do I do to mount additional drive automatically; each time I restart my
computer?

Is there an “autoexec” or “config” file in which I can write this command
into and how?

Thank-you,

Andrew Pensko

Andrew Pensko <apensko@hotmail.com> wrote:

Thank you for your help.

What do I do to mount additional drive automatically; each time I restart my
computer?

Is there an “autoexec” or “config” file in which I can write this command
into and how?

Yes there is. Look for sys.init or sys.init.node in the /etc/config
directory. Hm… I think that’s the right place… been a lot of
years.

-David

QNX Training Services
dagibbs@qnx.com