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.