In the FAT table info like the number of heads and the number of sectors per track is saved by the format utility. My code uses it to convert the LBA cluster number to CHS for int 13. This should work well in theory, if the BIOS uses the same CHS settings. But it is not working, so I guess the BIOS picks different settings.
How can I fix this problem?
edit: I should notice that I use an USB pen to boot.
Big FAT CHS problems
- Revelation
- Member
- Posts: 47
- Joined: Sat Jun 21, 2008 8:15 am
Big FAT CHS problems
Now is the winter of my disk content.
Re: Big FAT CHS problems
Hi,
I don't know if this has all the info you want, but you may find int 13h AH=08h (get drive parameters) useful.
Cheers,
Adam
I don't know if this has all the info you want, but you may find int 13h AH=08h (get drive parameters) useful.
Cheers,
Adam
- Revelation
- Member
- Posts: 47
- Joined: Sat Jun 21, 2008 8:15 am
Re: Big FAT CHS problems
Not long after my post, I implemented int 13 0x8. It's working for me in bochs, but not on the real system. Maybe it's because the real boot device is an usb pen, while in bochs it is a hdd image.
edit: it's not working on the real system, because my device is larger. when I tested the 10mb image I dd'd on the usb pen, it did work. I guess I'm crossing a maximum.
edit: it's not working on the real system, because my device is larger. when I tested the 10mb image I dd'd on the usb pen, it did work. I guess I'm crossing a maximum.
Now is the winter of my disk content.