Hi tech@, Here is a diff to add partition type GUIDs for NetBSD in fdisk.
The values come from NetBSD's sys/sys/disklabel_gpt.h header. Before the change: Disk: sd1 Usable LBA: 34 to 937703054 [937703088 Sectors] #: type [ start: size ] ------------------------------------------------------------------------ 0: EFI Sys [ 2048: 262144 ] 1: 49f48d5a-b10e-11dc-b99b-0019d1879648 [ 264192: 874608640 ] 2: 49f48d32-b10e-11dc-b99b-0019d1879648 [ 874872832: 62830223 ] After the change: Disk: sd1 Usable LBA: 34 to 937703054 [937703088 Sectors] #: type [ start: size ] ------------------------------------------------------------------------ 0: EFI Sys [ 2048: 262144 ] 1: NetBSD FFS [ 264192: 874608640 ] 2: NetBSD swap [ 874872832: 62830223 ] Please note that NetBSD used the FreeBSD GUIDs before their own GUIDs were created, so I annotated the old value accordingly as legacy. We could also remove the old entry, I have no strong feeling about this. Comments? OK? Index: sbin/fdisk/part.c =================================================================== RCS file: /cvs/src/sbin/fdisk/part.c,v retrieving revision 1.131 diff -u -p -r1.131 part.c --- sbin/fdisk/part.c 29 Aug 2022 07:19:14 -0000 1.131 +++ sbin/fdisk/part.c 11 Feb 2023 11:23:14 -0000 @@ -191,7 +191,19 @@ const struct gpt_type gpt_types[] = { { 0xA8, 0, "MacOS X", "55465300-0000-11aa-aa11-00306543ecac" }, { 0xA9, 0, "NetBSD", - "516e7cb4-6ecf-11d6-8ff8-00022d09712b" }, + "516e7cb4-6ecf-11d6-8ff8-00022d09712b" }, /* Legacy */ + { 0xA9, 0, "NetBSD swap", + "49f48d32-b10e-11dc-b99b-0019d1879648" }, + { 0xA9, 0, "NetBSD FFS", + "49f48d5a-b10e-11dc-b99b-0019d1879648" }, + { 0xA9, 0, "NetBSD LFS", + "49f48d82-b10e-11dc-b99b-0019d1879648" }, + { 0xA9, 0, "NetBSD RAID", + "49f48daa-b10e-11dc-b99b-0019d1879648" }, + { 0xA9, 0, "NetBSD CCD", + "2db519c4-b10f-11dc-b99b-0019d1879648" }, + { 0xA9, 0, "NetBSD CGD", + "2db519ec-b10f-11dc-b99b-0019d1879648" }, { 0xAB, 0, "MacOS X boot", "426f6f74-0000-11aa-aa11-00306543ecac" }, { 0xAF, 0, "MacOS X HFS+",