OSDev.org https://forum.osdev.org/ |
|
Bios disk read error help https://forum.osdev.org/viewtopic.php?f=1&t=37343 |
Page 2 of 2 |
Author: | abstractmath [ Tue Oct 13, 2020 12:16 pm ] |
Post subject: | Re: Bios disk read error help |
Actually, scratch my last post. It seems to be working now? I think I forgot to rebuild my project or something. |
Author: | abstractmath [ Tue Oct 13, 2020 12:22 pm ] |
Post subject: | Re: Bios disk read error help |
Oh that's funny. I still can't read past 40 blocks, even with the BIOS extension. |
Author: | Octocontrabass [ Tue Oct 13, 2020 12:23 pm ] |
Post subject: | Re: Bios disk read error help |
Does your disk have 40 blocks? |
Author: | abstractmath [ Tue Oct 13, 2020 12:26 pm ] |
Post subject: | Re: Bios disk read error help |
I'm not entirely sure. How can I check? |
Author: | Octocontrabass [ Tue Oct 13, 2020 12:28 pm ] |
Post subject: | Re: Bios disk read error help |
How big is one block? How big is your disk? How many blocks can fit in your disk? |
Author: | abstractmath [ Tue Oct 13, 2020 12:35 pm ] |
Post subject: | Re: Bios disk read error help |
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??? |
Author: | Octocontrabass [ Tue Oct 13, 2020 12:40 pm ] |
Post subject: | Re: Bios disk read error help |
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. |
Author: | abstractmath [ Tue Oct 13, 2020 12:45 pm ] |
Post subject: | Re: Bios disk read error help |
Is there a way that I can specify a drive size in qemu? I think that might help a bit. |
Author: | Octocontrabass [ Tue Oct 13, 2020 12:46 pm ] |
Post subject: | Re: Bios disk read error help |
Of course. The drive size is determined by the size of the disk image you're using. |
Author: | abstractmath [ Tue Oct 13, 2020 12:51 pm ] |
Post subject: | Re: Bios disk read error help |
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. |
Page 2 of 2 | All times are UTC - 6 hours |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |