Current FreeDOS fdisk utility (Users)
> > 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).
>
> I do not understand...
exactly. You do not understand.
It could help to read the relevant source code; search for Read_Partitiontables().
> Why should FDISK "round down" the
> start or end of the partition at all? It always has to
> round AWAY from the actual start and end of existing
> partitions. So in your example, if new partitions are
> to have boundaries which are multiples of 1000 sectors,
> the previous partition has to end at or before 5000 in
> both examples and the next partition has to start at
> 10000 or later in the first and 11000 or later in the
> second example. Rounding to NEAREST cylinder boundaries
> seems to be always a bad idea?
it's not 'rounding to NEAREST'. it's round DOWN for partition start,
round UP for (partition end + partition size). basically, FDISK thinks that partitions start at head=0, sector = 1, and end at head = 255, sector 63.
> Or are you saying the rounding just fails to know whether
> it has to be up or rather down at the relevant moment, so
> the author decided to simply round to nearest all times?
no.
> Regarding your next post: You say it would be hard to mark
> clusters in non-FAT filesystems as blocked. My assumption
> was that the FDISK bug only makes the END of FAT partitions
> overlap later partitions.
this bug has absolutely nothing to do with partition types.
> I agree that it is a good thing if the KERNEL detects any
> overlaps. Which makes me wonder whether it would be easy
> to automatically block access to trailing overlapping FAT
> clusters?
I really doubt other OS will implement code not to overwrite
partitions created by some buggy FDISK.
> Of course that still will not help you when the
> partitions are also accessed by OTHER operating systems, so
> a tool to mark overlapping clusters bad still sounds good.
Sure. And of course, you are not in charge to create such a tool
Complete thread:
- Current FreeDOS fdisk utility - Japheth, 01.01.2021, 20:51
- Current FreeDOS fdisk utility - RayeR, 01.01.2021, 23:45
- Current FreeDOS fdisk utility - Japheth, 02.01.2021, 02:54
- Current FreeDOS fdisk utility - RayeR, 02.01.2021, 03:17
- Current FreeDOS fdisk utility - Japheth, 02.01.2021, 03:26
- Current FreeDOS fdisk utility - rr, 02.01.2021, 12:44
- Current FreeDOS fdisk utility - Japheth, 02.01.2021, 15:41
- Current FreeDOS fdisk utility - rr, 05.01.2021, 21:46
- Current FreeDOS fdisk utility - Japheth, 06.01.2021, 11:03
- Current FreeDOS fdisk utility - tom, 06.01.2021, 16:34
- Forum monospaced font bug - ecm, 06.01.2021, 16:54
- Current FreeDOS fdisk utility - Japheth, 06.01.2021, 17:14
- Current FreeDOS fdisk utility - rr, 07.01.2021, 23:49
- Current FreeDOS fdisk utility - ecm, 08.01.2021, 00:04
- Current FreeDOS fdisk utility - mceric, 08.01.2021, 01:18
- Current FreeDOS fdisk utility - rr, 08.01.2021, 22:21
- Current FreeDOS fdisk utility - mceric, 09.01.2021, 01:49
- Current FreeDOS fdisk utility - rr, 08.01.2021, 22:21
- Current FreeDOS fdisk utility - Japheth, 08.01.2021, 05:05
- Current FreeDOS fdisk utility - tom, 08.01.2021, 13:53
- Current FreeDOS fdisk utility - Japheth, 08.01.2021, 22:51
- BBCode code tag - rr, 08.01.2021, 23:24
- BBCode code tag - Japheth, 09.01.2021, 05:24
- BBCode code tag - rr, 09.01.2021, 19:56
- BBCode code tag - Japheth, 10.01.2021, 02:22
- BBCode code tag - rr, 10.01.2021, 15:16
- BBCode code tag - Japheth, 10.01.2021, 02:22
- BBCode code tag - rr, 09.01.2021, 19:56
- BBCode code tag - Japheth, 09.01.2021, 05:24
- BBCode code tag - rr, 08.01.2021, 23:24
- Current FreeDOS fdisk utility - Japheth, 08.01.2021, 22:51
- Current FreeDOS fdisk utility - rr, 08.01.2021, 22:02
- Current FreeDOS fdisk utility - tom, 08.01.2021, 13:53
- Current FreeDOS fdisk utility - rr, 07.01.2021, 23:49
- Current FreeDOS fdisk utility - glennmcc, 06.01.2021, 19:01
- Current FreeDOS fdisk utility - glennmcc, 06.01.2021, 19:17
- Current FreeDOS fdisk utility - tom, 06.01.2021, 16:34
- Current FreeDOS fdisk utility - Japheth, 06.01.2021, 11:03
- Current FreeDOS fdisk utility - rr, 05.01.2021, 21:46
- Current FreeDOS fdisk utility - Japheth, 02.01.2021, 15:41
- Current FreeDOS fdisk utility - rr, 02.01.2021, 12:44
- Current FreeDOS fdisk utility - Japheth, 02.01.2021, 03:26
- Current FreeDOS fdisk utility - RayeR, 02.01.2021, 03:17
- Current FreeDOS fdisk utility - rr, 08.01.2021, 23:52
- Current FreeDOS fdisk utility - boeckmann, 22.03.2023, 15:45
- Current FreeDOS fdisk utility - kerravon, 24.03.2023, 02:28
- Current FreeDOS fdisk utility - tom, 24.03.2023, 18:47
- Current FreeDOS fdisk utility - tom, 24.03.2023, 18:49
- Current FreeDOS fdisk utility - Rugxulo, 25.03.2023, 03:18
- Current FreeDOS fdisk utility - kerravon, 24.03.2023, 02:28
- Current FreeDOS fdisk utility - boeckmann, 22.03.2023, 15:45
- Current FreeDOS fdisk utility - Japheth, 02.01.2021, 02:54
- Current FreeDOS fdisk utility - rr, 02.01.2021, 12:50
- Current FreeDOS fdisk utility - other FreeDOS bugs and fixes - mceric, 02.01.2021, 16:13
- Current FreeDOS fdisk utility - other FreeDOS bugs and fixes - ecm, 02.01.2021, 17:21
- Current FreeDOS fdisk utility - other FreeDOS bugs and fixes - mceric, 02.01.2021, 20:23
- Current FreeDOS fdisk utility - other FreeDOS bugs and fixes - tom, 09.01.2021, 19:56
- Current FreeDOS fdisk utility - other FreeDOS bugs and fixes - mceric, 10.01.2021, 00:40
- Current FreeDOS fdisk utility - other FreeDOS bugs and fixes - tom, 09.01.2021, 19:56
- Current FreeDOS fdisk utility - other FreeDOS bugs and fixes - mceric, 02.01.2021, 20:23
- Current FreeDOS fdisk utility - other FreeDOS bugs and fixes - ecm, 02.01.2021, 17:21
- Current FreeDOS fdisk utility - other FreeDOS bugs and fixes - mceric, 02.01.2021, 16:13
- Current FreeDOS fdisk utility - Japheth, 02.01.2021, 15:39
- Current FreeDOS fdisk utility - marcov, 02.01.2021, 16:56
- Bug confirmed - Japheth, 03.01.2021, 11:16
- Bug confirmed - tom, 03.01.2021, 15:45
- Bug confirmed - Japheth, 03.01.2021, 20:40
- Bug confirmed - tom, 06.01.2021, 17:31
- Bug confirmed - Japheth, 06.01.2021, 18:16
- Bug confirmed - RayeR, 16.01.2021, 05:14
- Bug confirmed - tom, 16.01.2021, 12:01
- Bug confirmed - RayeR, 16.01.2021, 05:14
- Bug confirmed - rr, 07.01.2021, 23:48
- Bug confirmed - Japheth, 06.01.2021, 18:16
- Bug confirmed - tom, 03.01.2021, 15:45
- Current FreeDOS fdisk utility - tom, 10.01.2021, 19:10
- Current FreeDOS fdisk utility - Japheth, 11.01.2021, 11:49
- Current FreeDOS fdisk utility - mceric, 11.01.2021, 14:16
- Current FreeDOS fdisk utility - tom, 11.01.2021, 20:11
- Current FreeDOS fdisk utility - Ringding, 13.01.2021, 12:09
- Current FreeDOS fdisk utility - tom, 11.01.2021, 20:11
- Current FreeDOS fdisk utility - rr, 11.01.2021, 18:12
- Current FreeDOS fdisk utility - tom, 11.01.2021, 19:57
- Current FreeDOS fdisk utility - mceric, 11.01.2021, 22:20
- Current FreeDOS fdisk utility - tom, 11.01.2021, 23:13
- Current FreeDOS fdisk utility - mceric, 12.01.2021, 02:51
- Current FreeDOS fdisk utility - mceric, 12.03.2021, 16:13
- Current FreeDOS fdisk utility - tom, 14.03.2021, 21:14
- Current FreeDOS fdisk utility - tom, 11.01.2021, 23:13
- Current FreeDOS fdisk utility - tom, 15.01.2021, 22:37
- Current FreeDOS fdisk utility - Japheth, 16.01.2021, 18:56
- Current FreeDOS fdisk utility - tom, 17.01.2021, 14:58
- Current FreeDOS fdisk utility - RayeR, 17.01.2021, 21:24
- Current FreeDOS fdisk utility - tom, 18.01.2021, 10:19
- Current FreeDOS fdisk utility - RayeR, 21.01.2021, 02:57
- Current FreeDOS fdisk utility - tom, 23.01.2021, 19:14
- Current FreeDOS fdisk utility - RayeR, 23.01.2021, 20:51
- Current FreeDOS fdisk utility - tom, 23.01.2021, 21:18
- Current FreeDOS fdisk utility - RayeR, 26.01.2021, 04:01
- Current FreeDOS fdisk utility - tom, 26.01.2021, 18:46
- Current FreeDOS fdisk utility - Japheth, 28.01.2021, 22:21
- Current FreeDOS fdisk utility - tom, 28.01.2021, 22:35
- Current FreeDOS fdisk utility - RayeR, 29.01.2021, 00:58
- Current FreeDOS fdisk utility - tom, 30.01.2021, 17:09
- Current FreeDOS fdisk utility - rr, 31.01.2021, 12:07
- Current FreeDOS fdisk utility - RayeR, 01.02.2021, 12:51
- Current FreeDOS fdisk utility - tom, 01.02.2021, 13:53
- Current FreeDOS fdisk utility - tom, 01.02.2021, 14:54
- Current FreeDOS fdisk utility - RayeR, 02.02.2021, 07:28
- Current FreeDOS fdisk utility - Japheth, 02.02.2021, 08:59
- Current FreeDOS fdisk utility - RayeR, 02.02.2021, 13:18
- Current FreeDOS fdisk utility - tom, 02.02.2021, 15:59
- Current FreeDOS fdisk utility - RayeR, 02.02.2021, 19:40
- Current FreeDOS fdisk utility - RayeR, 03.02.2021, 04:05
- Current FreeDOS fdisk utility - tom, 09.02.2021, 17:35
- Current FreeDOS fdisk utility - Japheth, 10.02.2021, 06:45
- Current FreeDOS fdisk utility - RayeR, 11.02.2021, 19:03
- Current FreeDOS fdisk utility - RayeR, 12.02.2021, 02:44
- Current FreeDOS fdisk utility - Japheth, 10.02.2021, 06:45
- Current FreeDOS fdisk utility - RayeR, 02.02.2021, 19:40
- Current FreeDOS fdisk utility - tom, 02.02.2021, 15:59
- Current FreeDOS fdisk utility - RayeR, 02.02.2021, 13:18
- Current FreeDOS fdisk utility - Japheth, 02.02.2021, 08:59
- Current FreeDOS fdisk utility - RayeR, 02.02.2021, 07:28
- Current FreeDOS fdisk utility - tom, 30.01.2021, 17:09
- Current FreeDOS fdisk utility - Japheth, 29.01.2021, 06:37
- Current FreeDOS fdisk utility - Ringding, 29.01.2021, 09:30
- Current FreeDOS fdisk utility - Japheth, 29.01.2021, 15:19
- Current FreeDOS fdisk utility - Ringding, 29.01.2021, 09:30
- Current FreeDOS fdisk utility - RayeR, 29.01.2021, 00:58
- Current FreeDOS fdisk utility - tom, 28.01.2021, 22:35
- Current FreeDOS fdisk utility - RayeR, 26.01.2021, 04:01
- Current FreeDOS fdisk utility - tom, 23.01.2021, 21:18
- Current FreeDOS fdisk utility - RayeR, 23.01.2021, 20:51
- Current FreeDOS fdisk utility - tom, 18.01.2021, 10:19
- Current FreeDOS fdisk utility - RayeR, 17.01.2021, 21:24
- Current FreeDOS fdisk utility - mceric, 11.01.2021, 22:20
- Current FreeDOS fdisk utility - mceric, 11.01.2021, 14:16
- Current FreeDOS fdisk utility - Japheth, 11.01.2021, 11:49
- Current FreeDOS fdisk utility - RayeR, 01.01.2021, 23:45