Page MenuHomeFreeBSD

mkimg: Add ms-basic-data alias for GPT
ClosedPublic

Authored by jlduran on Jul 12 2026, 7:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Aug 14, 3:37 PM
Unknown Object (File)
Sun, Aug 9, 2:37 AM
Unknown Object (File)
Sat, Aug 8, 9:59 PM
Unknown Object (File)
Sat, Aug 8, 7:43 PM
Unknown Object (File)
Sat, Aug 8, 5:30 PM
Unknown Object (File)
Sat, Aug 8, 9:40 AM
Unknown Object (File)
Fri, Aug 7, 5:29 AM
Unknown Object (File)
Tue, Aug 4, 9:49 PM
Subscribers

Details

Summary

While preparing GPT-schemed RaspberryPi images for the NanoBSD
Reimagined GSoC 2026 project, a discrepancy was identified between
mkimg(1) and gpart(8) regarding Microsoft Basic Data partitions (GUID
!ebd0a0a2-b9e5-4433-87c0-68b6b72699c7).

Currently, mkimg(1) relies on the MBR-centric name "ntfs" to identify
this partition type under the GPT scheme. Conversely, gpart(8)
identifies this type as 'ms-basic-data'.

To allow automation scripts (such as those consuming from gpart backup)
to use a common partition type across tools, add ALIAS_MS_BASIC_DATA as
a valid alias.

This is part of a larger effort to avoid a custom, MBR-based image
generation logic for embedded SoCs like the Raspberry Pi, standardizing
on GPT layouts across all supported FreeBSD embedded devices.

MFC after: 2 weeks

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable