更改分区的(类型)GUID?

Cub*_*i73 5 partitioning guid

使用 gdisk 的i命令我可以查看分区的“唯一 GUID”(标识分区)和“GUID/类型代码”(提示分区的类型/用途/格式),并且tgdisk 中的命令允许我更改该类型代码,但只能使用预定义类型代码的列表。如果 gdisk 的预定义类型代码列表不包含该类型,是否可以手动更改分区的类型 GUID?(最好是一些不涉及打开十六进制编辑器的方法。)

例如,Elementary OS 5.0 的 live CD 上的 gdisk 版本不包含 LUKS 分区的类型 GUID ,CA7D7CCB-63ED-4C53-861C-1742536059CC但 ArchLinux live CD 上的 gdisk 版本包含,并且列为类型代码8309

Fre*_*ddy 8

您可以输入CA7D7CCB-63ED-4C53-861C-1742536059CCgdisk 而不是内部类型代码。

以下是我将 EFI 系统分区更改为 LUKS 的示例C12A7328-F81F-11D2-BA4B-00A0C93EC93B

Command (? for help): i
Partition number (1-7): 1
Partition GUID code: C12A7328-F81F-11D2-BA4B-00A0C93EC93B (EFI System)
Partition unique GUID: 57DA3874-BAD6-4C30-90C6-F7B894246615
First sector: 34 (at 17.0 KiB)
Last sector: 534527 (at 261.0 MiB)
Partition size: 534494 sectors (261.0 MiB)
Attribute flags: 0000000000000000
Partition name: ''

Command (? for help): t
Partition number (1-7): 1
Current type is 'EFI System'
Hex code or GUID (L to show codes, Enter = 8300): CA7D7CCB-63ED-4C53-861C-1742536059CC
Changed type of partition to 'Unknown'

Command (? for help): i
Partition number (1-7): 1
Partition GUID code: CA7D7CCB-63ED-4C53-861C-1742536059CC (Unknown)
Partition unique GUID: 57DA3874-BAD6-4C30-90C6-F7B894246615
First sector: 34 (at 17.0 KiB)
Last sector: 534527 (at 261.0 MiB)
Partition size: 534494 sectors (261.0 MiB)
Attribute flags: 0000000000000000
Partition name: ''
Run Code Online (Sandbox Code Playgroud)

请注意,提示说Hex code or GUID