Re: ntvdm encountered a hard error



Galbu wrote:
Hi all. While writing a boot sector reader, I encountered this error:
NTVDM encountered a hard error. That occurs when i call the int 13h
with these parameters:

ah=02h
al=1 ;how many sectors?
ch=0 ;cylinder
cl=0 ;sector to read
dh=0 ;head
dl=80h ;first hard drive
es:bx => buffer 512 bytes long

if I read a floppy drive (dl=0), than everything goes right, but I
cannot read a hd. What is wrong? I'm using windows vista rc1 (but I
don't think it's a beta system bug)
thx everybody

Shouldn't cause a "hard error", but sector numbering usually starts at 1 (weird, I know). I'm surprised it worked on a floppy.

Best,
Frank

.



Relevant Pages

  • [PATCH] Numerous fixes to kernel-doc info in source files.
    ... static inline int ffs ... @buffer: where the data must be copied. ... * struct kfifo with kfree. ... @timer: ...
    (Linux-Kernel)
  • [UNIX] Multiple Vulnerabilities in Citadel/UX
    ... could allow complete control over a vulnerable server. ... Citadel server as can be seen by this simplistic code snippet: ... configuration buffers, leading to the possibility of carrying out a buffer ... int connect_to_host; ...
    (Securiteam)
  • Re: pushing the envelope with sockets
    ... receiving on the socket they are received (upto the buffer size), you can even change what happens if the buffer runs full. ... int read = S.EndReceive; ... class AsyncReader: Reader ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: [PATCH] Updated: Reworked Cell OProfile: SPU mutex lock fix
    ... arch-independent pieces of the OProfile kernel driver that this patch ... kernel driver patches. ... into the kernel buffer without holding the buffer_mutex lock. ... int spu_sync_start; ...
    (Linux-Kernel)
  • [PATCH] char: make functions static in synclinkmp.c
    ... int *eof, void *data) ... /* Allocate DMA buffers for the transmit and receive descriptor lists. ... * This buffer is used to pass an assembled frame to the line discipline. ...
    (Linux-Kernel)