Bios disk read error help

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
abstractmath
Member
Member
Posts: 46
Joined: Mon Sep 07, 2020 5:50 pm

Re: Bios disk read error help

Post by abstractmath »

Actually, scratch my last post. It seems to be working now? I think I forgot to rebuild my project or something.
abstractmath
Member
Member
Posts: 46
Joined: Mon Sep 07, 2020 5:50 pm

Re: Bios disk read error help

Post by abstractmath »

Oh that's funny. I still can't read past 40 blocks, even with the BIOS extension.
Octocontrabass
Member
Member
Posts: 5568
Joined: Mon Mar 25, 2013 7:01 pm

Re: Bios disk read error help

Post by Octocontrabass »

Does your disk have 40 blocks?
abstractmath
Member
Member
Posts: 46
Joined: Mon Sep 07, 2020 5:50 pm

Re: Bios disk read error help

Post by abstractmath »

I'm not entirely sure. How can I check?
Octocontrabass
Member
Member
Posts: 5568
Joined: Mon Mar 25, 2013 7:01 pm

Re: Bios disk read error help

Post by Octocontrabass »

How big is one block?

How big is your disk?

How many blocks can fit in your disk?
abstractmath
Member
Member
Posts: 46
Joined: Mon Sep 07, 2020 5:50 pm

Re: Bios disk read error help

Post by abstractmath »

I. Do. Not. Know. I'm looking at int 13h on wikipedia and I do not know how to get that information. Do I use AH = 0x48 or is there something better suited to what I need to know???
Octocontrabass
Member
Member
Posts: 5568
Joined: Mon Mar 25, 2013 7:01 pm

Re: Bios disk read error help

Post by Octocontrabass »

If you're reading a hard disk with INT 0x13, the block size is 512 bytes. The specifications allow for different block sizes, but in practice no BIOS supports it.
abstractmath
Member
Member
Posts: 46
Joined: Mon Sep 07, 2020 5:50 pm

Re: Bios disk read error help

Post by abstractmath »

Is there a way that I can specify a drive size in qemu? I think that might help a bit.
Octocontrabass
Member
Member
Posts: 5568
Joined: Mon Mar 25, 2013 7:01 pm

Re: Bios disk read error help

Post by Octocontrabass »

Of course.

The drive size is determined by the size of the disk image you're using.
abstractmath
Member
Member
Posts: 46
Joined: Mon Sep 07, 2020 5:50 pm

Re: Bios disk read error help

Post by abstractmath »

Ohhhhh okay, now it's making sense. My entire image file is about 21K in size, and that would make sense that the drive size wouldn't be past 40 blocks since 40 * 512 = ~21K.
Post Reply