How to use debug.exe to load a flash drive [ pendrive ] and view its boot record?

2.7k views Asked by At

The drive letter if F, and i want to read its boot record for this task : http://joelgompert.com/OS/lesson1.htm ... [ i am using xp ] I cant get the l command to work properly... when they ask us to type this is debug.exe :

-l 0 0 0 1

I replaced it with :

-l 0 5 0 1

Cause i do not have a floppy at drive A... I get a prompt telling me :

C:\WINDOWS\system32\cmd.exe - debug.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. And the option to choose are Close and Ignore. I selected ignore and it gives me the following output in the CMD :

Disk error reading drive F

What am i doing wrong ? Isn't it supported to use a flash drive ? Any alternative programs for the task ? Any help will be appreciated :)

1

There are 1 answers

4
MBu On BEST ANSWER

In all NT-based systems (Windows NT, 2000, XP/2003, Vista/2008, 7/2008 R2) direct disk access to hard drives is prohibited for older software. There are special APIs for accessing hard drivers directly, but older software simply does not know them.

DEBUG under XP does allow for direct access to floppy disks, so if you want to learn DEBUG, an USB floppy drive is an option. If you want to learn about data structures on HDD and don't care about debug, look for more recent disk editor. I think you'll find something suitable in this article at Wikipedia.