The boot sector, as its name implies, is used to
control the boot process of a bootable device,
e.g. a hard disk. Since it is not possible to boot
from a USB device, there seems to be little point
in writing a boot sector to it.
If you still wish to go ahead then you can use
humble old debug.exe:
l 100 0 0 2
l 100 2 0 2
The first command will load the floppy's boot sector into
RAM location 100 whereas the second will load the boot
sector of the first partition into location 100.
The boot sector, as its name implies, is used to
control the boot process of a bootable device,
e.g. a hard disk. Since it is not possible to boot
from a USB device, there seems to be little point
in writing a boot sector to it.
If you still wish to go ahead then you can use
humble old debug.exe:
l 100 0 0 2
l 100 2 0 2
The first command will load the floppy's boot sector into
RAM location 100 whereas the second will load the boot
sector of the first partition into location 100.
The numerous discussions I have followed in several newsgroups.
So far I have seen just one post that said it could be done, in a
very roundabout and exotic way. If you know how to do it then
I'm sure you'll have a captive audience. Over to you!
Actually I'm NOT trying to create a Win-bootable compact flash. I want
to write the boot sector under XP, move the compact flash to a
non-windows target system, and boot it there.
However, I should have been more specific in my earlier post: how can I
write to the boot sector programatically, i.e. from a C++ program?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.