Page 1 of 1

LBA to CHS conversion

Posted: Sun Jan 25, 2004 12:00 am
by SystemHalted
I have a few questions:
1.When converting How do i get the sectors per cylnder and number of heads
2.do i just write the CHS value it gives me like this:
void Read_one_sector_LBA(int drv,int sect,word *buffer)
{
   int cyln,head,sect;
   /*do LBA CHS conversion*/
   Read_one_sector_CHS(cyln,head,sect,drv,buffer);
}
Thanks

RE:LBA to CHS conversion

Posted: Mon Jan 26, 2004 12:00 am
by Karig
Read this tutorial at BonaFide OS Development.

http://www.osdever.net/tutorials/chs_lba.php?the_id=87