blob: 2cefea4cee188f88fbaf7f36e826e65a600495de (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
mkgpt
A simple tool for creating disk images with a GPT header and including the
contents of provided partition images.
Compiling:
./configure
make
sudo make install
A Visual C++ 2012 project is also provided for Windows builds
Options:
-o <output_file> Specify output filename
--sector-size <size> Size of a sector (defaults to 512)
--minimum-image-size <size> Minimum size of the image in sectors
(defaults to 2048)
--disk-guid <guid> GUID of the entire disk (see GUID format
below - defaults to random)
--part <file> <options> Begin a partition entry containing the
specified image as its data and
options as below
Partition options
--name <name> Set the name of the entry in the GPT
--type <type> Set the type of the entry, either a GUID,
MBR partition ID _in decimal_ or
one of the known paritition types
--uuid <guid> Specify the UUID of the partition in the GPT
(defaults to a random uuid)
Known partition types:
system - EFI sytem partition
bios - BIOS boot partition
FAT types: fat12, fat16, fat16b, fat32, fat16x, fat32x, fat16+, fat32+
NTFS types: ntfs
Linux types: linux
GUID format:
GUIDs/UUIDs should be represented in the canonical representation as per
https://en.wikipedia.org/wiki/Universally_unique_identifier#Format
without any surrounding braces. An example is:
123E4567-E89B-12D3-A456-426655440000
Optionally, the string 'random' can be used to generate a random GUID.
|