LBA -> CHS?
-
hi,
wie kann ich eine Logische Block Addresse in eine Cylinder Head Sector Addresse umrechnen?
Marcel
-
CYL = LBA / (HPC * SPT)
TEMP = LBA % (HPC * SPT)
HEAD = TEMP / SPT
SECT = TEMP % SPT + 1Where:
LBA: linear base address of the block
CYL: value of the cylinder CHS coordinate
HPC: number of heads per cylinder for the disk
HEAD: value of the head CHS coordinate
SPT: number of sectors per track for the disk
SECT: value of the sector CHS coordinate
TEMP: buffer to hold a temporary value(http://www.wikipedia.org/wiki/CHS_conversion)
cu todo