Skip to content

Easily create disk images with valid GUID partition tables, cross-platform.

License

Notifications You must be signed in to change notification settings

LensPlaysGames/createGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

createGPT

Easily create disk images with valid GUID partition tables, cross-platform.


Using

Call createGPT with no arguments for general help on usage and flags.

Add a partition using the following flag. Specify it multiple times to add multiple partitions.

--part <path> [--type <GUID|preset>]

<path> is a filepath to the contents of the partition.

--type can be passed either a GUID, or a type preset.

Presets:

  • null -- 00000000-0000-0000-0000-000000000000
  • system -- c12a7328-f81f-11d2-ba4b-00a0c93e3b00

When passing GUIDs over the command line, use the following format:

00000000-0000-0000-0000-000000000000

Put the values in mixed-endian, canonical fashion.


Building

  • CMake
  • Any C compiler (MSVC, GCC, Clang)

Generate a build system:

cmake -S . -B bld

Invoke the generated build system to generate an executable:

cmake --build bld