GPT with fdisk/cfdisk and custom partition types

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
kurtmweber
Posts: 10
Joined: Tue Aug 18, 2020 6:55 pm

GPT with fdisk/cfdisk and custom partition types

Post by kurtmweber »

Assuming I've generated a GUID for my filesystem's partition type, is there a way to enter that via the util-linux fdisk/cfdisk utilities? I'm struggling to find one, either in the interface help, the man page, or googling.
Ethin
Member
Member
Posts: 625
Joined: Sun Jun 23, 2019 5:36 pm
Location: North Dakota, United States

Re: GPT with fdisk/cfdisk and custom partition types

Post by Ethin »

To my knowledge this isn't supported and you'd have to manually write the partition table entries. But I might be wrong -- but if so I've never heard of it.
Octocontrabass
Member
Member
Posts: 5563
Joined: Mon Mar 25, 2013 7:01 pm

Re: GPT with fdisk/cfdisk and custom partition types

Post by Octocontrabass »

Use gdisk.
kurtmweber
Posts: 10
Joined: Tue Aug 18, 2020 6:55 pm

Re: GPT with fdisk/cfdisk and custom partition types

Post by kurtmweber »

Thanks for the pointer!

It also seems trivial to add new GUIDs to the list of ones it recognizes, which will make my life much easier.

It'd be even easier if it could be done via a configuration file rather than editing the source and recompiling, but it's just a one-time task so not that big a deal.
Octocontrabass
Member
Member
Posts: 5563
Joined: Mon Mar 25, 2013 7:01 pm

Re: GPT with fdisk/cfdisk and custom partition types

Post by Octocontrabass »

Are you talking about modifying fdisk or gdisk? You don't need to modify gdisk to set the GUID.
kurtmweber
Posts: 10
Joined: Tue Aug 18, 2020 6:55 pm

Re: GPT with fdisk/cfdisk and custom partition types

Post by kurtmweber »

Octocontrabass wrote:Are you talking about modifying fdisk or gdisk? You don't need to modify gdisk to set the GUID.

gdisk

I'm talking about modifying it so I can use a shortcut codes for my filesystem's GUID like those that it recognizes for more widely-known types, rather than having to enter the full GUID every time.
Post Reply