Page 1 of 1
MBR signature invalid
Posted: Thu Dec 29, 2022 3:15 pm
by WinExperements
So i am trying to read the MBR partition table from hard drive via ATA PIO, and my mbr structure goes wrong(always zero).
Maybe i am incorrectly reading it? Or something else?
Here the output of readed data and the mbr structure signature
Re: MBR signature invalid
Posted: Thu Dec 29, 2022 3:39 pm
by Octocontrabass
That looks like half of a normal Windows MBR. Where's the other half?
Re: MBR signature invalid
Posted: Thu Dec 29, 2022 3:43 pm
by WinExperements
Octocontrabass wrote:Where's the other half?
Okay I am read 256 words as sector, if I set it to 512 nothing changes, so what I am doing wrong with reading?
Re: MBR signature invalid
Posted: Thu Dec 29, 2022 4:02 pm
by Octocontrabass
You're reading 256 words, but you're displaying 256 bytes. You lost half of each word somewhere.