OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Aug 16, 2022 4:28 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: GPT with fdisk/cfdisk and custom partition types
PostPosted: Tue May 24, 2022 6:53 pm 
Offline

Joined: Tue Aug 18, 2020 6:55 pm
Posts: 10
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.


Top
 Profile  
 
 Post subject: Re: GPT with fdisk/cfdisk and custom partition types
PostPosted: Tue May 24, 2022 7:11 pm 
Offline
Member
Member

Joined: Sun Jun 23, 2019 5:36 pm
Posts: 595
Location: North Dakota, United States
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.


Top
 Profile  
 
 Post subject: Re: GPT with fdisk/cfdisk and custom partition types
PostPosted: Tue May 24, 2022 7:16 pm 
Online
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 4027
Use gdisk.


Top
 Profile  
 
 Post subject: Re: GPT with fdisk/cfdisk and custom partition types
PostPosted: Tue May 24, 2022 9:33 pm 
Offline

Joined: Tue Aug 18, 2020 6:55 pm
Posts: 10
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.


Top
 Profile  
 
 Post subject: Re: GPT with fdisk/cfdisk and custom partition types
PostPosted: Tue May 24, 2022 10:04 pm 
Online
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 4027
Are you talking about modifying fdisk or gdisk? You don't need to modify gdisk to set the GUID.


Top
 Profile  
 
 Post subject: Re: GPT with fdisk/cfdisk and custom partition types
PostPosted: Tue May 24, 2022 10:17 pm 
Offline

Joined: Tue Aug 18, 2020 6:55 pm
Posts: 10
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: PetalBot [Bot] and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group