Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

DOS specifications ("standards") - 33-bit LBA support (Developers)

posted by ecm Homepage E-mail, Düsseldorf, Germany, 23.11.2020, 10:01

> > (For a hack, we could try to support "33 bit LBA" schemes, ie the 32-bit
> > fields for start and length are kept, but it is valid for start and
> length
> > to *both* be up to FFFF_FFFFh, so (with 512 B/s) a 2 TiB - 512 B FAT32
> > partition may start at sector FFFF_FFFFh. That is, allowing to use nearly
> 4
> > TiB of hard disk space. I'm considering adding that to my early loader
> > (iniload), debugger, and kernel. Most difficult would be the boot sector
> > loaders due to space being at a premium there.)
>
> That is a reasonable stopgap solution. In fact, it might even be supported
> already by some systems, depending on whether they truncate the LBA numbers
> to 32 bits.

I added 33-bit LBA support to my lDOS boot loaders and lDebug. It was actually easier to do than I expected. The usual fields all hold a sector-in-partition, partition start, or partition length (but not sector-in-unit or partition end). So the sector read/write functions which add the sector-in-partition to the partition start are the only places which need to be patched for 33-bit LBA support.

---
l

 

Complete thread:

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