×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Modifying the Boot Sector in DEBUG

Modifying the Boot Sector in DEBUG

Modifying the Boot Sector in DEBUG

(OP)
Hi everyone, you all helped me out A LOT with my last problem so I figure I would throw another one out at you.  This one is a little more complicated though...

I run 4 operating systems on my machine: Windows 98 #1, Windows 98 #2, Linux, and Windows 2000.  Both Windows installations and Linux are on Primary partitions and Windows 2000 is on a logical partition.

I use a program called BootMagic to manage them all.  However, since Windows 2000 is on a logical partition, I cannot boot to it directly from BootMagic and I have to use the generic Windows Bootloader to boot Windows 2000.  This bootloader is on the Windows 98 #1 Installation because the Windows bootloader must be installed on a primary partition.

Now that you have enough background info, here is my situation:  In Bootmagic, I can directly boot Linux and Windows 98 #2, but whenever I choose Windows 98 #1 or Windows 2000, I am taken to the Windows Bootloader where I again have to choose the operating system to boot to. (It is a text menu where I use the arrow keys to select the operating system and enter to choose.)

In DEBUG, can I modify the boot sector so that if I choose Windows 98 #1, BootMagic  will automatically hit ENTER for me on the second menu to boot Windows 98 #1 and if I choose Windows 2000, BootMagic will automatically hit the DOWN ARROW key and then ENTER to boot Windows 2000 so I will never see the second menu?

I don't think it would be all that difficult actually putting the commands in, because I think I would just be inserting a Line Feed / Carriage Return and a Down Arrow / Line Feed / Carriage Return.  What I think is going to be very difficult is finding out where to insert them.

Does anyone know how I would go about doing this?  Is it even feasable?  If you need me to explain what I want more clearly, just ask.  Thanks a lot!

Chuck Caplan
caplan8293@duq.edu

RE: Modifying the Boot Sector in DEBUG

I understand it. but i think you may use System Commander to manage all OS instead of modifying boot sector.In this way you can get what you need easily!

Of course if you really want to change the boot record it is another story.here i will give some suggestion which have not been tested!!!

1.dump boot record
  eg. #dd if=/dev/hda of=/bootsect1 bs=512 count=1
2.disassemble it (i donnt know how ^_^)
3.write back your boot sector
  rg. #dd if=/bootsect1 of=/dev/hda bs=512 count=1

keep in mind it is very dangerous.if you arenot sure donnot do it!


Regards!

RE: Modifying the Boot Sector in DEBUG

I agree with zallen on two points: 1) what you are proposing isn't a do-it-yourself project and 2) it is very dangerous.

It is a simple matter to change the boot record in such a way that you will need to perform an unconditional format before you will be able to use it again. It is a very difficult matter to recover the data from a drive that has been trashed by a small error during an experiment.

Don't laugh. If you plan to experiment with the boot record (I've said it before and I'll probably say it again) make sure you do it on a drive you won't mind throwing away or formatting over and over and over again.

Chuck, I admire your ambition and persistence but I think this project should be shelved until you are really, really ready to tackle it. Don't try to learn the science of brain surgery by practicing on your friends and family... dissect a few dead frogs before you move on to live subjects. I hope that makes sense.



A plain black box
Don't sit down. It's time to dig another one.

RE: Modifying the Boot Sector in DEBUG

(OP)
Heh, thanks for the advice.  I particularly liked your brain surgery analogy Alt255

zallen - Could System Commander solve my problem?  I wasn't aware that it could boot Windows 2000 on a logical drive without running the Windows 2000 Bootloader on a primary drive first... I'll have to do some research.

Thanks!

RE: Modifying the Boot Sector in DEBUG

Sorry!i donnot use System Commander to boot win2k.If you get result ,i will be glad to share with you !

Regards!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close