Bios disk read error help
-
- Member
- Posts: 46
- Joined: Mon Sep 07, 2020 5:50 pm
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.
-
- Member
- Posts: 46
- Joined: Mon Sep 07, 2020 5:50 pm
Re: Bios disk read error help
Oh that's funny. I still can't read past 40 blocks, even with the BIOS extension.
-
- Member
- Posts: 5568
- Joined: Mon Mar 25, 2013 7:01 pm
Re: Bios disk read error help
Does your disk have 40 blocks?
-
- Member
- Posts: 46
- Joined: Mon Sep 07, 2020 5:50 pm
Re: Bios disk read error help
I'm not entirely sure. How can I check?
-
- Member
- Posts: 5568
- Joined: Mon Mar 25, 2013 7:01 pm
Re: Bios disk read error help
How big is one block?
How big is your disk?
How many blocks can fit in your disk?
How big is your disk?
How many blocks can fit in your disk?
-
- Member
- Posts: 46
- Joined: Mon Sep 07, 2020 5:50 pm
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???
-
- Member
- Posts: 5568
- Joined: Mon Mar 25, 2013 7:01 pm
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.
-
- Member
- Posts: 46
- Joined: Mon Sep 07, 2020 5:50 pm
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.
-
- Member
- Posts: 5568
- Joined: Mon Mar 25, 2013 7:01 pm
Re: Bios disk read error help
Of course.
The drive size is determined by the size of the disk image you're using.
The drive size is determined by the size of the disk image you're using.
-
- Member
- Posts: 46
- Joined: Mon Sep 07, 2020 5:50 pm
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.