• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 202
  • Last Modified:

boot process

I'v got a bootable 98 disk with a special dos program that gets executed via the autoexec.bat. When the program ends it restarts the computer. How do I modify io.sys, master boot record, or the master boot code on the floppy previous to the restart to tell the bios to boot from the hard drive instead of the floppy? I'm using Borland C++ 4.5.
1 Solution
backdrafAuthor Commented:
Adjusted points to 200
Don^t think that this possible (on a INTEL PC with a MAC there would be no problem) since the booting sequence is determinated by the BIOS. The only way I see is to alter the BIOS entries.
Simply remove the floppy disk when rebooting. Your bios should boot off the hd.
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

TO DVB. Sure this would be simplest method. But I don´t think that this is the answer backraf awaits.
    in an ans. some guy gave a program to reset the
bios .
in dos ..
he claimed it resets the bios ... hope this help u...
what u can do is put the executale in the  autoexec.bat just before the program u want to run .... this will put the bios boot sequence to (c a scsi)default... which is what u want...
If that is what I think it is, it will not help at all. It will still boot from the floppy if there is one in A:. Besides, it might mess up some user personal BIOS adjustments.

I don't think it's possible to transfer the booting sequence from the floppy to the hd, because the BIOS has already been informed that there is an executable boot sector on the floppy.
tell me your mail address. I'll send a boot sector for the FD that boots the HD.
backdrafAuthor Commented:
For example the 98 cd when booted to while give you the option of booting to the cd or the hard drive. Granted there may be something in the el torito standard that may make this possible when booting to cds, I don't know, but if I can find out exactly how Microsoft is able to let you choose your booting device after post then I can incorporate it into my scenario.
You don't need to modify the MBR or IO.SYS (and in fact, as some folks have pointed out,  it won't help).  All you need to do (and I say ALL guardedly here), is get into real mode (you may already be since you booted from floppy), load the MBR from the HD into memory, and jump to it.

Each computer/HD has a slightly different MBR, but in general they are all the same idea, and they need to be loaded into a specific memory location (2200 I think, but my memory is a little stale here).

If you look at the MBR, you will see the partition table followed by the actual boot code.  All it takes is to reproduce the BIOSs activity - load the MBR and execute it.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free tool for managing users' photos in Office 365

Easily upload multiple users’ photos to Office 365. Manage them with an intuitive GUI and use handy built-in cropping and resizing options. Link photos with users based on Azure AD attributes. Free tool!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now