How to change the partition GUID?

Solution Unverified - Updated -

Issue

  • The customer wants to edit the partition GUID(Globally Unique Identifier) to fit the cluster software's setting:
# gdisk /dev/sda
GPT fdisk (gdisk) version 0.8.10

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): i
Using 1
Partition GUID code: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 (Linux filesystem)
Partition unique GUID: DE999731-2788-44A7-A6D3-A802ACE273C0    < ======
First sector: 2048 (at 1024.0 KiB)
Last sector: 629112 (at 307.2 MiB)
Partition size: 627065 sectors (306.2 MiB)
Attribute flags: 0000000000000000
Partition name: 'Linux filesystem'

Environment

  • Red Hat Enterprise Linux all versions

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content