Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Bug confirmed (Users)

posted by tom Homepage, Germany (West), 03.01.2021, 15:45

> I again played a bit with FD fdisk. Here's again the 2 overlapping
> partitions:
>
>
> type          start sec  size            abs. sectors   
> > FAT32,LBA     390703104  16777216   8192 390703104-407480319
> > FAT32,LBA     407472660  16787925   8197 407472660-424260584
>


is it correct that the 1st partition was created by linux, the 2nd by FDISK?

>
> Now, one missing information is the geometry returned by Int 0x13,
> ah=0x48:
>
> Cyl/Head/Sec=121601/255/63
>
> This gives a good hint where the problem is:
>
> 1. Multiplying "heads" and "sectors": 255x63=16065
> 2. Dividing the 2. start sector thru this value: 407472660/16065=25364
>
> The division has no remainder. And so I conclude: FD fdisk tries to align
> the partition's start sector (and size) to a "cylinder" boundary, either
> rounding or skipping remainders. This indeed works - as long as FD fdisk
> handles the MBR exclusively. Linux fdisk, however, doesn't seem to care
> about cylinder boundaries, at least not if the partition type is
> FAT32-LBA.

most likely correct; DOS for historical reasons aligns partitions on track boundaries, linux and newer windows on 4K or 1M boundaries.

of course this is a FDISK bug; it should round up the 1st partition and not down.

 

Complete thread:

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