#6287: partition-type inconsistency
-------------------------------------+-------------------------------------
Reporter: starsseed | Owner: stippi
Type: enhancement | Status: new
Priority: normal | Milestone: R1
Component: | Version: R1/alpha2
Applications/DriveSetup | Keywords: MBR file-system
Resolution: | partition-type
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
-------------------------------------+-------------------------------------
Comment (by alpopa):
I also faced the problem with wrong partition type. Although in BIOS/MBR
setup it may seem completely irrelevant, in **EFI/GPT setup Haiku
bootloader prevent booting from the Haiku partition unless it has
appropriate partition type** and regardless of the filesystem it uses. It
is particularly true on Mac's hardware. As soon as the partition type was
changed to Haiku (with `gdisk` from Linux) it boots fine.
- Haiku MBR partition type is `0xEB`
(https://en.wikipedia.org/wiki/Partition_type)
- Haiku GPT partition type is `0xEB00` (as reported by `gdisk`)
- Haiku GPT partition GUID is `42465331-3BA3-10F1-802A-4861696B7521`
(https://en.wikipedia.org/wiki/GUID_Partition_Table, https://git.haiku-
os.org/haiku/tree/src/add-
ons/kernel/partitioning_systems/gpt/gpt_known_guids.h)
Even deleting the partition with `DriveSetup` and then creating on its
place a partition for Haiku, it is added to GPT table as the last one,
leaving the deleted partition entry empty. This can create confusion
because the partition table entries are sorted differently than physical
partition layout on disk. `gdisk` has the option to sort entries in
partition table according to physical partition layout of disk,
`DriveSetp` doesn't have this option.
So, without complicated partition management, it would be useful to:
- Either to allow user to choose "Haiku partition type" besides "BFS
filesystem";
- Or to change the partition type during initializing some partition with
BFS. In this case a confirmation dialog may be used.
(Related tickets are #4235, #5968)
--
Ticket URL: <https://dev.haiku-os.org/ticket/6287#comment:4>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.