Booting QNX from W2k,Configuration Boot.ini on W2k

Hi all,
I have got installed QNX 6.2NC on Fat32 partition and also Win2000 on
NTFS partition.I’m using NT boot manager for loading W2k and QNX I’m
booting from floppy.My question is:is some way how to configurate
boot.ini in w2k to adding menu for booting QNX from Fat32 where is
installed? I guess that I have to create some image from floppy and copy
it to fat32 and than only add path to boot.ini ,is it possible?
PS: I would like keep NT loader.

Thanks for all answers.
Otto

When 6.0 came out a couple of years ago, I had read on a newsgroup
somewhere that someone had been able to change the boot.ini (I think)
to boot QNX as well. I never got a chance to try it out so I cannot
verify this, I tried looking around again and cannot find that post,
but if you search the newsgroups again it may turn up.

Best regards,

Erick

Otto Mixa <ottomixa@email.cz> wrote:

Hi all,
I have got installed QNX 6.2NC on Fat32 partition and also Win2000 on
NTFS partition.I’m using NT boot manager for loading W2k and QNX I’m
booting from floppy.My question is:is some way how to configurate
boot.ini in w2k to adding menu for booting QNX from Fat32 where is
installed? I guess that I have to create some image from floppy and copy
it to fat32 and than only add path to boot.ini ,is it possible?
PS: I would like keep NT loader.

Thanks for all answers.
Otto

On 2 Jan 2003 17:24:45 GMT, Hardware Support Account <hw@qnx.com>
wrote:

See the “Boot from Ntloader” thread on qdn.public.qnxrtp.installation

ako

When 6.0 came out a couple of years ago, I had read on a newsgroup
somewhere that someone had been able to change the boot.ini (I think)
to boot QNX as well. I never got a chance to try it out so I cannot
verify this, I tried looking around again and cannot find that post,
but if you search the newsgroups again it may turn up.

Best regards,

Erick

Otto Mixa <> ottomixa@email.cz> > wrote:
Hi all,
I have got installed QNX 6.2NC on Fat32 partition and also Win2000 on
NTFS partition.I’m using NT boot manager for loading W2k and QNX I’m
booting from floppy.My question is:is some way how to configurate
boot.ini in w2k to adding menu for booting QNX from Fat32 where is
installed? I guess that I have to create some image from floppy and copy
it to fat32 and than only add path to boot.ini ,is it possible?
PS: I would like keep NT loader.

Thanks for all answers.
Otto

Hello ,
I found that,but…Press ESC for .altbootD
My problem is that I have got installed Win2000 on first partition(17GB) and
QNX6.2 on second partition(2GB).
I want to use ntloader and in boot.ini I want add menu like “QNX”…So just
now I’m booting from floppy.
I was create the image from this floppy with name “boot.qnx” with dd utility
in QNX and I was placed this file first patition where is ntldr, also I was
placed menu to boot.ini…
Evrything look likes fine… exept if I will try this one… image with qnx
loader give me:
Press ESC for .altbootD and freeze.But booting from floppy is OK.
I know that this is reason I have got HDD 20GB and this is err message for
HDD bigger than 8GB.
And official help give me advice reinstall system with support more than
8GB.(That I don’t want).
So my question is:
Is it possible to avoid .altbootD error with creating some other boot image,
and how?
Thanks a lot for your comments.
Otto


“Andrzej Kocon” <ako@box43.gnet.pl> wrote in message
news:3e15f52f.167781@inn.qnx.com

On 2 Jan 2003 17:24:45 GMT, Hardware Support Account <> hw@qnx.com
wrote:

See the “Boot from Ntloader” thread on qdn.public.qnxrtp.installation

ako

When 6.0 came out a couple of years ago, I had read on a newsgroup
somewhere that someone had been able to change the boot.ini (I think)
to boot QNX as well. I never got a chance to try it out so I cannot
verify this, I tried looking around again and cannot find that post,
but if you search the newsgroups again it may turn up.

Best regards,

Erick

Otto Mixa <> ottomixa@email.cz> > wrote:
Hi all,
I have got installed QNX 6.2NC on Fat32 partition and also Win2000 on
NTFS partition.I’m using NT boot manager for loading W2k and QNX I’m
booting from floppy.My question is:is some way how to configurate
boot.ini in w2k to adding menu for booting QNX from Fat32 where is
installed? I guess that I have to create some image from floppy and
copy
it to fat32 and than only add path to boot.ini ,is it possible?
PS: I would like keep NT loader.

Thanks for all answers.
Otto

In article <avh03m$as$1@inn.qnx.com>, Otto Mixa wrote:

Hello ,
I found that,but…Press ESC for .altbootD
My problem is that I have got installed Win2000 on first partition(17GB) and
QNX6.2 on second partition(2GB).
I want to use ntloader and in boot.ini I want add menu like “QNX”…So just
now I’m booting from floppy.
I was create the image from this floppy with name “boot.qnx” with dd utility
in QNX and I was placed this file first patition where is ntldr, also I was
placed menu to boot.ini…
Evrything look likes fine… exept if I will try this one… image with qnx
loader give me:
Press ESC for .altbootD and freeze.But booting from floppy is OK.
I know that this is reason I have got HDD 20GB and this is err message for
HDD bigger than 8GB.
And official help give me advice reinstall system with support more than
8GB.(That I don’t want).
So my question is:
Is it possible to avoid .altbootD error with creating some other boot image,
and how?

.altboot isn’t the problem. The image has wrong data for the
second stage loader.

Here’s a way that will work ( for any system ) but use at your own risk !
Be sure to read, and understand, ALL of this, as even ONE wrong
keystroke can and will lose all of BOTH systems almost immediately.
I have done this many times, but will take no responsibility for any
loss of data, or usability of the machine in the event something goes
wrong.
Even ONE wrong keystroke can be fatal, so before you hit “enter”
sit on your hands ( literally ) and re-read what you typed.
The re-read it again, and make sure there are no errors.
Failing to do so ONE time was what started the education that now
allows me to do professional data recovery from almost any system.
That education was not cheap !

Find two floppy disks that you can trust, as a bad floppy
will have very nasty consequences. Maybe four floppies !

First, boot qnx any way you can. Floppy is fine.
Now, BACKUP the master boot sector of the hard disk.
dd if=/dev/hd0 of=bootsect.w2k bs=512 count=1
will create a bit-for-bit copy in the file bootsect.w2k
in the current working directory.
I’ld strongly suggest you copy this file someplace it WILL be
accessible no matter what, like to a nice, clean, blank but
DOS formatted floppy. Maybe make two, just in case…

Now, install qnx such that it uses its own loader, installed
into the master boot record of the hard disk.
At this point, you have lost ALL access to Win2000.
You can re-boot, and make certain that the machine will boot
qnx as if it were the only system on the hard disk.

If the machine won’t boot, then you’ll need to restore using
the qnx bootable CD. Details on that are lower down in this
post.

Assuming qnx boots normally…
dd if=/dev/hd0 of=bootsect.qnx bs=512 count=1
Now you have a file that is the qnx MBR and behaves as if qnx
were the only OS installed on the machine. It has no knowledge
of the existance of Win2K, though you can set it up to also
boot win2k as a part of the qnx install. You may wish to do
that, and you may find you like it. It’s not strictly necessary,
but it IS advisable.
Again. copy this file someplace safe, like another nice, clean
but DOS formatted floppy. You’ll use it later.

Now, we need to restore Win2K.
Place the floppy with bootsect.w2k in the floppy drive, and
mount it ( probably /fs/floppy ).
Restore the Win2000 boot sector, and the system.
dd if=/fs/floppy/bootsect.w2k of=/dev/hd0
The system should now re-boot into Win2K normally, and
things are back where they were.

Now, with Win2K running, you can use the file bootsect.qnx
from the DOS floppy.
Copy that to the root directory C:\ of Win2K.
Modify boot.ini to add the entry for QNX = C:\bootsect.qnx
( I forget the exact boot.ini syntax. I assume you can handle
that part, as you already have with an image that doesn’t work )

You should now have a WinNT loader that will boot either system.
The file bootsect.qnx will be treated by the qnx loader as if
the system were booting from track zero, sector zero of the first
IDE hard drive. Once the NT loader has loaded that file, it terminates
and has nothing furthur to do with the boot process.

If this all fails, the Win2000 restore utilities WILL NOT WORK !
You will need to boot the qnx bootable CD, mount the floppy with
the file bootsect.w2k ( again, probably to /fs/floppy ) and execute
dd if=/fs/floppy/bootsect.w2k of=/dev/hd0
and re-boot.
If THAT fails, you are probably screwed, and would need the services
of a data recovery professional, such as myself, but there are others.

Note that we are refering to /dev/hd0 with no partition designation.
That’s because we are modifying the master boot record of the
raw hard disk. We do not want to modify any of the partition
information, which is in that sector, but only the boot code.

Again, this procedure can completely destroy any chance of
booting this machinw without a full re-install of everything,
so make sure you thoroughly understand first.
It would be a very good idea to do a practice run on a machine
you don’t care that much about, just in case…

Note that this procedure is also documented on the web someplace,
though it refers to linux, or win95, or some such. The procedure
is the same in any case, but it wouldn’t hurt to search for it,
and double-check everything I’ve written here for your own safety.

Hope this helps…


Cowboy

You will be advanced socially, without any special effort on your part.

Thanks a lot.

I will be very carefully to do this.But I want to ask you…

Because I don’t want reinstall my QNX (also not W2k),

is it possible to do everything in this order?

1)restore QNX booting with using the qnx bootable CD(as you also
mentioned)…its mean overwrite MBR

and lost booting to W2k and normaly boot to QNX? ( I don’t know if the
bootable QNX6.2 NC CD

is possible to do this…I mean overwrite MBR and make bootable second
partition where is

already installed QNX).

2)in QNX get boot image dd (if=/dev/hd0 of=bootsect.qnx bs=512 count=1)

3)booting from W2k CD and with recovery console use utility fixmbr ( now I
will be able boot only to W2k)

4)copying the file bootsect.qnx to disk C: and modifying boot.ini.

5)Possibility have got menu booting up to both systems.

Is that way also possible? I guess that should be, but I’m worry that
bootable QNX CD is not able to restore

(overwrite MBR) to booting up to the second partition.

Can you please answer me and give advice if this way is possible? And some
advice about restoring from QNX CD (I never tried this).

I’m not worry about restoring booting up to W2k…I did restoring it many
times :slight_smile:

Thanks a lot

Otto

“Cowboy” <curt@gwis.com> wrote in message
news:slrnb1oln4.er.curt@ctx.cowboy.loc

In article <avh03m$as$> 1@inn.qnx.com> >, Otto Mixa wrote:
Hello ,
I found that,but…Press ESC for .altbootD
My problem is that I have got installed Win2000 on first partition(17GB)
and
QNX6.2 on second partition(2GB).
I want to use ntloader and in boot.ini I want add menu like “QNX”…So
just
now I’m booting from floppy.
I was create the image from this floppy with name “boot.qnx” with dd
utility
in QNX and I was placed this file first patition where is ntldr, also I
was
placed menu to boot.ini…
Evrything look likes fine… exept if I will try this one… image with
qnx
loader give me:
Press ESC for .altbootD and freeze.But booting from floppy is OK.
I know that this is reason I have got HDD 20GB and this is err message
for
HDD bigger than 8GB.
And official help give me advice reinstall system with support more than
8GB.(That I don’t want).
So my question is:
Is it possible to avoid .altbootD error with creating some other boot
image,
and how?

.altboot isn’t the problem. The image has wrong data for the
second stage loader.

Here’s a way that will work ( for any system ) but use at your own risk !
Be sure to read, and understand, ALL of this, as even ONE wrong
keystroke can and will lose all of BOTH systems almost immediately.
I have done this many times, but will take no responsibility for any
loss of data, or usability of the machine in the event something goes
wrong.
Even ONE wrong keystroke can be fatal, so before you hit “enter”
sit on your hands ( literally ) and re-read what you typed.
The re-read it again, and make sure there are no errors.
Failing to do so ONE time was what started the education that now
allows me to do professional data recovery from almost any system.
That education was not cheap !

Find two floppy disks that you can trust, as a bad floppy
will have very nasty consequences. Maybe four floppies !

First, boot qnx any way you can. Floppy is fine.
Now, BACKUP the master boot sector of the hard disk.
dd if=/dev/hd0 of=bootsect.w2k bs=512 count=1
will create a bit-for-bit copy in the file bootsect.w2k
in the current working directory.
I’ld strongly suggest you copy this file someplace it WILL be
accessible no matter what, like to a nice, clean, blank but
DOS formatted floppy. Maybe make two, just in case…

Now, install qnx such that it uses its own loader, installed
into the master boot record of the hard disk.
At this point, you have lost ALL access to Win2000.
You can re-boot, and make certain that the machine will boot
qnx as if it were the only system on the hard disk.

If the machine won’t boot, then you’ll need to restore using
the qnx bootable CD. Details on that are lower down in this
post.

Assuming qnx boots normally…
dd if=/dev/hd0 of=bootsect.qnx bs=512 count=1
Now you have a file that is the qnx MBR and behaves as if qnx
were the only OS installed on the machine. It has no knowledge
of the existance of Win2K, though you can set it up to also
boot win2k as a part of the qnx install. You may wish to do
that, and you may find you like it. It’s not strictly necessary,
but it IS advisable.
Again. copy this file someplace safe, like another nice, clean
but DOS formatted floppy. You’ll use it later.

Now, we need to restore Win2K.
Place the floppy with bootsect.w2k in the floppy drive, and
mount it ( probably /fs/floppy ).
Restore the Win2000 boot sector, and the system.
dd if=/fs/floppy/bootsect.w2k of=/dev/hd0
The system should now re-boot into Win2K normally, and
things are back where they were.

Now, with Win2K running, you can use the file bootsect.qnx
from the DOS floppy.
Copy that to the root directory C:\ of Win2K.
Modify boot.ini to add the entry for QNX = C:\bootsect.qnx
( I forget the exact boot.ini syntax. I assume you can handle
that part, as you already have with an image that doesn’t work )

You should now have a WinNT loader that will boot either system.
The file bootsect.qnx will be treated by the qnx loader as if
the system were booting from track zero, sector zero of the first
IDE hard drive. Once the NT loader has loaded that file, it terminates
and has nothing furthur to do with the boot process.

If this all fails, the Win2000 restore utilities WILL NOT WORK !
You will need to boot the qnx bootable CD, mount the floppy with
the file bootsect.w2k ( again, probably to /fs/floppy ) and execute
dd if=/fs/floppy/bootsect.w2k of=/dev/hd0
and re-boot.
If THAT fails, you are probably screwed, and would need the services
of a data recovery professional, such as myself, but there are others.

Note that we are refering to /dev/hd0 with no partition designation.
That’s because we are modifying the master boot record of the
raw hard disk. We do not want to modify any of the partition
information, which is in that sector, but only the boot code.

Again, this procedure can completely destroy any chance of
booting this machinw without a full re-install of everything,
so make sure you thoroughly understand first.
It would be a very good idea to do a practice run on a machine
you don’t care that much about, just in case…

Note that this procedure is also documented on the web someplace,
though it refers to linux, or win95, or some such. The procedure
is the same in any case, but it wouldn’t hurt to search for it,
and double-check everything I’ve written here for your own safety.

Hope this helps…


Cowboy

You will be advanced socially, without any special effort on your part.

In article <avjgu8$qhl$1@inn.qnx.com>, Otto Mixa wrote:

Thanks a lot.

Followup in e-mail.
( I saw that first )

short version…

3)booting from W2k CD and with recovery console use utility fixmbr ( now I
will be able boot only to W2k)

In my experience, the Win2k ( and XP ) recovery console will NOT work
in this kind of situation.


Cowboy

The games have always strengthened us. Death becomes a familiar
pattern. We don’t fear it as you do.
– Proconsul Marcus Claudius, “Bread and Circuses”,
stardate 4041.2

I will try all later. (when I will haven’t any important data to lost :slight_smile:)
Thanks a lot.
Otto

“Cowboy” <curt@gwis.com> wrote in message
news:slrnb1smpg.1g3.curt@ctx.cowboy.loc

In article <avjgu8$qhl$> 1@inn.qnx.com> >, Otto Mixa wrote:
Thanks a lot.

Followup in e-mail.
( I saw that first )

short version…

3)booting from W2k CD and with recovery console use utility fixmbr ( now
I
will be able boot only to W2k)

In my experience, the Win2k ( and XP ) recovery console will NOT work
in this kind of situation.


Cowboy

The games have always strengthened us. Death becomes a familiar
pattern. We don’t fear it as you do.
– Proconsul Marcus Claudius, “Bread and Circuses”,
stardate 4041.2

ottomixa@email.cz sed in <avh03m$as$1@inn.qnx.com>:

I found that,but…Press ESC for .altbootD

BIOS wasn’t able to load /.boot residing in QNX partiton.

see
<URL:news:anhjbc$8ha$1@inn.qnx.com>
URL:nntp://inn.qnx.com/qdn.public.sysadmin/54

You said somewhere else allocating 20GB for Windows;
note some BIOS couldn’t load things beyond 8GB.
(did QNX bootloader use LBA? dunno…)

It also could happen by sucking up boot.ini file from other than
/dev/hd0t77 whatever (like from floppy), but the error letter
should be different then.
Ditto for ntldr passing wild value for DX register; I guess
using 6.1 bootloader will “fix” this.

kabe

So do you mean that I should create qnx boot image from /dev/hd0t77 instead
from floppy thought I’m booting QNX from floppy.
And also I should use 6.1 bootloader, but where I can get it? And what is
different from 6.2 bootloader?
Thanks

<kabe@sra-tohoku.co.jp> wrote in message news:avstra$cci$2@inn.qnx.com

ottomixa@email.cz > sed in <avh03m$as$> 1@inn.qnx.com> >:

I found that,but…Press ESC for .altbootD

BIOS wasn’t able to load /.boot residing in QNX partiton.

see
URL:news:anhjbc$8ha$> 1@inn.qnx.com
URL:nntp://inn.qnx.com/qdn.public.sysadmin/54

You said somewhere else allocating 20GB for Windows;
note some BIOS couldn’t load things beyond 8GB.
(did QNX bootloader use LBA? dunno…)

It also could happen by sucking up boot.ini file from other than
/dev/hd0t77 whatever (like from floppy), but the error letter
should be different then.
Ditto for ntldr passing wild value for DX register; I guess
using 6.1 bootloader will “fix” this.

kabe

In article <avu5no$ogn$1@inn.qnx.com>, Otto Mixa wrote:

So do you mean that I should create qnx boot image from /dev/hd0t77 instead
from floppy thought I’m booting QNX from floppy.

That’s not the way I’ld do it, because the info in the bootsector
of the partition will not be properly referenced by Win2K.
The bootsector of a partition is NOT the same as the MBR.

And also I should use 6.1 bootloader, but where I can get it? And what is
different from 6.2 bootloader?

Methinks what he meant was the the qnx loaders prior to 6.1 would
definately not load beyond cylinder 1024, while 6.1 and later can.


Cowboy

One way to make your old car run better is to look up the price of a new model.

Still smal error.

  1. I was boot from QNX CD
  2. I’d make backup of W2k
  3. I’d create QNX bootable ( I think with dloader or dinit I think I tried
    both … dloader /dev/hd0 pc1 or dinit -some switches /dev/hd0 )
  4. after reboot I had QNX boot loader in MBR (I guess)… It gave me choose
    from witch parttition I want boot 1,2,3,4 (1=NTFS W2k,2-3=Linux, 4= QNX on
    FAT32)

If I’m choose 1 than I have got menu from boot.ini…so I can start Win2000,
but
now the problem is that if I’m choose 4 I receive error as 2chracters: * 0?
*
I guess that it is because my parttition number 4 is not bootable and also
because it is FAT32 and not QNX file system.
Or did I make somewhere mistake? I mean with dloader and dinit…what
should be the right step with these utilities?
Thanks

“Cowboy” <curt@gwis.com> wrote in message
news:slrnb265ro.k3.curt@ctx.cowboy.loc

In article <avu5no$ogn$> 1@inn.qnx.com> >, Otto Mixa wrote:
So do you mean that I should create qnx boot image from /dev/hd0t77
instead
from floppy thought I’m booting QNX from floppy.

That’s not the way I’ld do it, because the info in the bootsector
of the partition will not be properly referenced by Win2K.
The bootsector of a partition is NOT the same as the MBR.

And also I should use 6.1 bootloader, but where I can get it? And what is
different from 6.2 bootloader?

Methinks what he meant was the the qnx loaders prior to 6.1 would
definately not load beyond cylinder 1024, while 6.1 and later can.


Cowboy

One way to make your old car run better is to look up the price of a new
model.

In article <b06dv7$aig$1@inn.qnx.com>, Otto Mixa wrote:

Still smal error.

  1. I was boot from QNX CD
  2. I’d make backup of W2k
  3. I’d create QNX bootable ( I think with dloader or dinit I think I tried
    both … dloader /dev/hd0 pc1 or dinit -some switches /dev/hd0 )
  4. after reboot I had QNX boot loader in MBR (I guess)… It gave me choose
    from witch parttition I want boot 1,2,3,4 (1=NTFS W2k,2-3=Linux, 4= QNX on
    FAT32)

If I’m choose 1 than I have got menu from boot.ini…so I can start Win2000,
but
now the problem is that if I’m choose 4 I receive error as 2chracters: * 0?
*
I guess that it is because my parttition number 4 is not bootable and also
because it is FAT32 and not QNX file system.
Or did I make somewhere mistake? I mean with dloader and dinit…what
should be the right step with these utilities?
Thanks

“Cowboy” <> curt@gwis.com> > wrote in message

Methinks what he meant was the the qnx loaders prior to 6.1 would
definately not load beyond cylinder 1024, while 6.1 and later can.

Hmm…
Sounds like strictly a qnx boot problem now.

Personally, I boot exactly the same systems in the same partitions
that you are doing, but with LILO the linux loader.
I use lilo specificly because it does not require any partition
be marked as “bootable” and none of mine are !

At this point, you’re a bit out of my league. I have no useful
experience with the qnx loader in this configuration.


Cowboy

I have a very good DENTAL PLAN. Thank you.

ottomixa@email.cz sed in <b06dv7$aig$1@inn.qnx.com>:

  1. after reboot I had QNX boot loader in MBR (I guess)… It gave me choose
    from witch parttition I want boot 1,2,3,4 (1=NTFS W2k,2-3=Linux, 4= QNX on
    FAT32)

You can’t directly boot from QNX installed in FAT;
it uses DOS/Win95 loader intermediately.

But your machine don’t have either so you’re stuck to floppy boot.
You need QNX4 partition somewhere (floppy provides this).

You couldn’t have finished installed stock QNX in FAT properly
without DOS/Win{95,98}, so it’s likely you’ve ignored some errors.

kabe

I guess that I have got installed QNX properly. I was install it from
Win2000 to Fat32 and I was let write bootloader to floppy insted to HDD.
But now I think I know that if I want multiboot with ntloader
(Win2000,Linux,Qnx) I will need QNX installed on QNX4 partition.
My question is still open: is some possibility to boot from ntloader to QNX
installed on FAT32 as *.qfs and *.ifs files? If not I will have to reinstall
QNX to QNX4 partition.
Thanks.
Otto

<kabe@sra-tohoku.co.jp> wrote in message news:b0f03c$r4u$2@inn.qnx.com

ottomixa@email.cz > sed in <b06dv7$aig$> 1@inn.qnx.com> >:

  1. after reboot I had QNX boot loader in MBR (I guess)… It gave me
    choose
    from witch parttition I want boot 1,2,3,4 (1=NTFS W2k,2-3=Linux, 4= QNX
    on
    FAT32)

You can’t directly boot from QNX installed in FAT;
it uses DOS/Win95 loader intermediately.

But your machine don’t have either so you’re stuck to floppy boot.
You need QNX4 partition somewhere (floppy provides this).

You couldn’t have finished installed stock QNX in FAT properly
without DOS/Win{95,98}, so it’s likely you’ve ignored some errors.

kabe

ottomixa@email.cz sed in <b0h5td$csm$1@inn.qnx.com>:

My question is still open: is some possibility to boot from ntloader to QNX
installed on FAT32 as *.qfs and *.ifs files? If not I will have to reinstall
QNX to QNX4 partition.

General answer is No.

Although if you are willing to code a custom bootloader
(in assembly of course),
yes it should be possible.
Embedded engineers are doing that every time.
See “Building Embedded Systems”,Chapter 3 for details.
URL:http://www.qnx.com/developer/docs/momentics_nc_docs/neutrino/building/about.html

kabe