Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for recognizing partition type code 15 as "extended partition" #121

Merged
merged 5 commits into from Nov 30, 2023

Conversation

Konamiman
Copy link
Owner

@Konamiman Konamiman commented Apr 16, 2023

Add support for recognizing partition type code 15 ("extended partition LBA") as a valid extended partition type, additionally to 5 ("extended partition CHS") in the kernel and in MAPDRV.COM.

A new command line tool is provided, EPTCFT.COM (Extended Partition Type Code Fix Tool) that allows changing the partition type code of existing extended partitions from 5 to 15, and also back from 15 to 5 should that be needed for compatibility with old tools.

Additionally:

  • FDISK will not use the partition type code 15 ("extended partition LBA") when creating new extended partitions.
  • Added the EPTCFT.COM (Extended Partition Code Fix Tool), which will change the code for existing extended partitions from 5 to 15 (or the other way around).
  • Small fix in FDISK, which was creating FATs with one extra sector when creating FAT16 filesystems due to a sector count rounding bug.
  • Removed some unused code.

Closes #113.

("extended partition LBA") as a valid extended partition type,
additionally to 5 ("extended partition CHS") in the kernel
and in MAPDRV.COM.

Additionally, small fix in FDISK, which was creating FATs with one
extra sector when creating FAT16 filesystems.
@Konamiman Konamiman added this to the v2.1.2 milestone Apr 16, 2023
@Konamiman Konamiman self-assigned this Apr 16, 2023
Code 15 is "extended partition LBA", code 5 is the old
"extended partition CHS".
@Konamiman Konamiman force-pushed the support-extended-partition-lba branch 2 times, most recently from 6276986 to 1de0e55 Compare November 1, 2023 19:24
Add a paragraph explaining that 15 (extended LBA) is recognized
as a valid extended partition type code since Nextor 2.1.2.
@Konamiman Konamiman force-pushed the support-extended-partition-lba branch from 1de0e55 to 4b9c0d4 Compare November 5, 2023 15:13
@Konamiman Konamiman changed the base branch from v2.1 to v2.1.2 November 21, 2023 12:18
@Konamiman Konamiman merged commit 7e8d5f8 into v2.1.2 Nov 30, 2023
1 check passed
@Konamiman Konamiman deleted the support-extended-partition-lba branch November 30, 2023 12:10
@Konamiman Konamiman mentioned this pull request Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FAT size rounding issue in fdisk?
1 participant