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
MBR signature invalid
-
- Member
- Posts: 97
- Joined: Thu Jul 14, 2022 9:45 am
- Contact:
-
- Member
- Posts: 5563
- Joined: Mon Mar 25, 2013 7:01 pm
Re: MBR signature invalid
That looks like half of a normal Windows MBR. Where's the other half?
-
- Member
- Posts: 97
- Joined: Thu Jul 14, 2022 9:45 am
- Contact:
Re: MBR signature invalid
Okay I am read 256 words as sector, if I set it to 512 nothing changes, so what I am doing wrong with reading?Octocontrabass wrote:Where's the other half?
-
- Member
- Posts: 5563
- Joined: Mon Mar 25, 2013 7:01 pm
Re: MBR signature invalid
You're reading 256 words, but you're displaying 256 bytes. You lost half of each word somewhere.