From fd5631e3b4fc7d2e0f217e683a147b0ebd60ec41 Mon Sep 17 00:00:00 2001 From: Nestor Soriano Date: Sun, 29 Oct 2023 12:36:56 +0100 Subject: [PATCH] FDISK now creates new partitions with code 15, not 5. Code 15 is "extended partition LBA", code 5 is the old "extended partition CHS". --- source/kernel/bank5/fdisk2.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/source/kernel/bank5/fdisk2.c b/source/kernel/bank5/fdisk2.c index 178d0356..7fe7025c 100644 --- a/source/kernel/bank5/fdisk2.c +++ b/source/kernel/bank5/fdisk2.c @@ -515,11 +515,7 @@ int CreatePartition(int index) if(index != (partitionsCount - 1)) { tableEntry++; - //Theorically here we should set PARTYPE_EXTENDED_LBA instead, - //but we stick to PARTYPE_EXTENDED for robustness, as older - //versions of MAPDRV don't recognize PARTYPE_EXTENDED_LBA - //as an extended partition type. - tableEntry->partitionType = PARTYPE_EXTENDED; + tableEntry->partitionType = PARTYPE_EXTENDED_LBA; tableEntry->firstAbsoluteSector = nextDeviceSector; if(index == 0) { mainExtendedPartitionFirstSector = nextDeviceSector;