Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Current FreeDOS fdisk utility (Users)

posted by tom Homepage, Germany (West), 11.01.2021, 19:57

> > that's a bug by itself.
> > by what criteria are users expected to choose the right one? :-( :-( :-(
>
>
> Somewhat hidden (in file NEWS.TXT) there's an explanation:
>
> Current Stable Production Release: 1.2.1
> Current Beta Release: 1.3.1
>
> > yes, this is a bug. unfortunately fixing this would probably require a
> > major code change. should be possible.
>
> I don't think a "major code change" is necessary. fdisk may remain focused
> on "cylinders", wasting 1 or 2 MBs. That won't hurt.
it's certainly not about 1 or 2 MBs.

I think I understand the problem now, and it's not easy to fix.

for ease of arithmetic, assume a cylinder size of 1000 sectors.

if an existing 4500 sector partition extends from 5200 to 9700, FDISK will "round down" this partition to 5000 through 9999, will create the next partition at 10000, and everybody is happy.

if an existing 4500 sector partition extends from 5600 to 10100, FDISK will "round down" this partition to 5000 through 9999, will create the next partition at 10000, and everybody is unhappy (sooner or later).

this error comes up similarly when calculating available space before/after/between partitions.

good luck coming up with an efficient solution.


IMO the only way to fix this is to transform the code to use sectors, not cylinders. and that's a major transformation.

or use either FDISK exclusively, or use your Linux/windows/pqmagic partitioner only.

 

Complete thread:

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