Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

YSDDT 0.1.2 (DOS Toolkit for Working with Disks & Partitions) (Announce)

posted by boeckmann, Aachen, Germany, 30.09.2025, 16:55

> BTW how important is CHS values matching to LBA values in the partition
> table? Is there some tool that automatically recalc CHS from LBA values in
> partition table? And what CHS values should be set for partitions beyond
> 8,4GB? Is there some rule of thumb or it doesn't matter in any way?

In case cylinder > 1023 there are basically three possibilities:

a) calculate a "virtual" cylinder > 1023 based on the disk geometry and write the value modulo 1024 into the MBR
b) write a marker value as CHS, typically something like 1023/254/63
c) write total garbage

Free FDISK does a) by default, but via config option may be instructed to do b).

For partitions where cyl <= 1023, the CHS / LBA values should agree. But most tools use the LBA values. This should also be safer in case the drive is transferred between different systems, as the systems might disagree about the drive geometry.

 

Complete thread:

Back to the forum
Board view  Mix view
22747 Postings in 2119 Threads, 402 registered users, 416 users online (0 registered, 416 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum