@@ -13,6 +13,7 @@ Synopis
13
13
part start <interface> <dev> <part> <varname>
14
14
part size <interface> <dev> <part> <varname>
15
15
part number <interface> <dev> <part> <varname>
16
+ part set <interface> <dev> <part> <type>
16
17
part type <interface> <dev>:<part> [varname]
17
18
part types
18
19
@@ -82,6 +83,18 @@ part must be specified as partition name.
82
83
varname
83
84
a variable to store the current partition number value into
84
85
86
+ The 'part set' command sets the type of a partition. This is useful when
87
+ autodetection fails or does not do the correct thing:
88
+
89
+ interface
90
+ interface for accessing the block device (mmc, sata, scsi, usb, ....)
91
+ dev
92
+ device number
93
+ part
94
+ partition number
95
+ type
96
+ partition type to use (see 'part types') to check available types
97
+
85
98
The 'part type' command prints or sets an environment variable to the partition type UUID.
86
99
87
100
interface
@@ -147,6 +160,67 @@ Examples
147
160
=> part types
148
161
Supported partition tables: EFI, AMIGA, DOS, ISO, MAC
149
162
163
+ This shows looking at a device with multiple partition tables::
164
+
165
+ => virtio scan
166
+ => part list virtio 0
167
+
168
+ Partition Map for VirtIO device 0 -- Partition Type: EFI
169
+
170
+ Part Start LBA End LBA Name
171
+ Attributes
172
+ Type GUID
173
+ Partition GUID
174
+ 1 0x00000040 0x0092b093 "ISO9660"
175
+ attrs: 0x1000000000000001
176
+ type: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
177
+ guid: a0891d7e-b930-4513-94d8-f629dbd637b2
178
+ 2 0x0092b094 0x0092d7e7 "Appended2"
179
+ attrs: 0x0000000000000000
180
+ type: c12a7328-f81f-11d2-ba4b-00a0c93ec93b
181
+ guid: a0891d7e-b930-4513-94db-f629dbd637b2
182
+ 3 0x0092d7e8 0x0092da3f "Gap1"
183
+ attrs: 0x1000000000000001
184
+ type: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
185
+ guid: a0891d7e-b930-4513-94da-f629dbd637b2
186
+ => ls virtio 0:3
187
+ => part types
188
+ Supported partition tables: EFI, DOS, ISO
189
+ => part set virtio 0 dos
190
+
191
+ Partition Map for VirtIO device 0 -- Partition Type: DOS
192
+
193
+ Part Start Sector Num Sectors UUID Type
194
+ 1 1 9624191 00000000-01 ee
195
+ => part set virtio 0 iso
196
+
197
+ Partition Map for VirtIO device 0 -- Partition Type: ISO
198
+
199
+ Part Start Sect x Size Type
200
+ 1 3020 4 512 U-Boot
201
+ 2 9613460 10068 512 U-Boot
202
+ => part set virtio 0 efi
203
+
204
+ Partition Map for VirtIO device 0 -- Partition Type: EFI
205
+
206
+ Part Start LBA End LBA Name
207
+ Attributes
208
+ Type GUID
209
+ Partition GUID
210
+ 1 0x00000040 0x0092b093 "ISO9660"
211
+ attrs: 0x1000000000000001
212
+ type: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
213
+ guid: a0891d7e-b930-4513-94d8-f629dbd637b2
214
+ 2 0x0092b094 0x0092d7e7 "Appended2"
215
+ attrs: 0x0000000000000000
216
+ type: c12a7328-f81f-11d2-ba4b-00a0c93ec93b
217
+ guid: a0891d7e-b930-4513-94db-f629dbd637b2
218
+ 3 0x0092d7e8 0x0092da3f "Gap1"
219
+ attrs: 0x1000000000000001
220
+ type: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
221
+ guid: a0891d7e-b930-4513-94da-f629dbd637b2
222
+ =>
223
+
150
224
Return value
151
225
------------
152
226
0 commit comments