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, 20:11

> > Even if the bug won't be fixed and recommended to use another tool for
> > partitioning, there still exist potential data losses due to the usage
> of
> > FD FDISK in the past 15-20 years. Is this to be ignored? Wouldn't it at
> > least be necessary to supply a tool that detects those overlaps and
> warns
> > the user?
>
> That sounds like a great idea. It could even mark the affected clusters as
> broken to prevent using them.

it's a bit demanding to mark clusters in EXTFS/NTFS/BTTRFS partitions as broken to avoid overwriting a broken FAT partition.

anyway: when would such a tool be used, even if it existed?
after partitions have been set up, FDISK will typically never be used again.

at update time? typically every 5-10 years?

IMO the right point to check this would be in the kernel at INIT time.
it scans the partition tables anyway.

adding code to check for overlap between any partition and any other partition (including unknown partition types) is trivially a N^2 operation, certainly acceptable at init time.

and the kernel InitDisk code is executed regularly. printing a warning would be easy, and helpful.

and it would be really interesting to learn what Windows/Linux to with such damaged partitions.

 

Complete thread:

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