Click to See Complete Forum and Search --> : Copying bootloader onto USB using debug.exe


nappaji
August 10th, 2006, 02:50 PM
Hi,
I am trying to load a bootloader onto my USB stick to make it bootable. I am using the DOS beug.exe utility. The utility works fine when I try to load the bootloader onto a floppy.

Here are the commands that I use to load onto floppy:

c:\debug.exe bld.exe
-W 1495:7C00 0 0 1
-Q

The above commands are executed successfully.

Then, I try the following on a USB stick:

c:\debug.exe bld.exe
-W 1495:7C00 4 0 1
-Q

it gives the error below:

"C:\WINNT\ssytem32\cmd.exe - debug bld2.exe
An application has attempted to directly access the hard disk, which cannot be supported. This may cause the application to function incorrectly. Choose 'Close' to terminate the application."


The second parameter in the Write (W) commmand is the drive number:
0 - A:
1- B:
2- C:
3- D:
4 - E:

USB is discovered as drive E:.

Can anyone please help with this? Why do I get a message that I am trying to write to hardisk whne I am trying to write to floppy.

kumaresh_ana
August 16th, 2006, 08:25 AM
It seems that the operating system is preventing the direct access to the hard disk ( in this case the USB disk ). To solve this simply run the debug in "pure" DOS OS. ( ie. ) ready a MSDOS boot floppy. Boot the system using it and do whatever you need. DOS will allow it, I know it for sure.