Skip to content

Commit

Permalink
FDISK now creates new partitions with code 15, not 5.
Browse files Browse the repository at this point in the history
Code 15 is "extended partition LBA", code 5 is the old
"extended partition CHS".
  • Loading branch information
Konamiman committed Oct 29, 2023
1 parent 7985450 commit fd5631e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions source/kernel/bank5/fdisk2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fd5631e

Please sign in to comment.