Rod Smith
edc67b66db
Patch set from Bin Meng to clean up some code & support building sgdisk for Windows
2022-04-10 09:28:08 -04:00
Rod Smith
fd60f74362
Add end-alignment feature.
2022-01-29 10:51:02 -05:00
Rod Smith
43b3df969c
Removed another stray debugging message
2021-10-09 18:40:30 -04:00
Rod Smith
1e084b3ac2
Remove stray debugging code
2021-10-09 15:52:16 -04:00
Rod Smith
331ad9c795
Add ability to reverse byte order of partition names to gdisk and sgdisk
2021-06-08 15:23:02 -04:00
Roderick W. Smith
01725eae7d
Merge /u/morisgi/gptfdisk/ branch enhancements into master
...
https://sourceforge.net/p/gptfdisk/code/merge-requests/15/
2020-02-15 21:10:03 +00:00
Geoff Williams
d4e560771b
Support placing GPT last when for hybrid MBR
...
Some hardware (notably Raspberry PI) requires a small FAT partition be listed
as the first MBR partition to boot. At the moment hybrid MBR disks allowing
this can only be made using the interactive `gdisk` program by choosing `h`
from the recovery menu and answering `N` when asked:
```
Place EFI GPT (0xEE) partition first in MBR (good for GRUB)?
```
This commit brings feature parity to `sgdisk` by changing `-h` to support an
optional final partition `EE` indicating that the GPT partition should be
listed last in the MBR instead of first.
**Examples**:
GPT first (current behaviour)
```shell
sgdisk -h 1:2 sdcard.img
```
GPT last
```shell
sgdisk -h 1:2:EE sdcard.img
```
2019-09-22 22:00:51 +10:00
Gilles Moris
94b1490b7b
Create a constant unusedPartType object instead of recreating it each time
2019-05-15 07:07:21 +02:00
Rod Smith
eed1122809
Version 1.0.2 release.
2017-07-26 21:15:59 -04:00
Rod Smith
503e9ada12
Initial commit of support for moving main partition table to arbitrary
...
location on disk (within limits based on existing partitions).
2017-07-21 21:48:13 -04:00
Rod Smith
c37c487bb9
Removed stray debugging message from "sgdisk -c" operation.
2016-04-13 09:12:10 -04:00
Roderick W. Smith
6aec1dcf15
Fixed bug in sgdisk that caused --largest-new/-N to fail if fed a
...
value of "0" for the partition number. (This should work, according to
the man page, and now it does.)
2015-10-18 15:56:31 -04:00
Roderick W. Smith
bdae070734
Fixed bug that caused sgdisk to not return an appropriate error code
...
(4) when it encountered write errors under some circumstances.
2015-10-17 18:37:07 -04:00
Roderick W. Smith
8017e083aa
Changed -z and -Z behavior in sgdisk so that subsequent changes are
...
written even if -g is not included. Also some man page updates.
2015-04-24 21:39:20 -04:00
Roderick W. Smith
54f8fb17e6
Version 1.0.0 release! Added some type codes and the -O/--print-mbr
...
option for sgdisk.
2015-03-17 19:46:05 -04:00
Roderick W. Smith
d28495e066
Can now pass "0" as partition number to -A, -c, -t, and -u commands in
...
sgdisk *IF* "0" was also used as a partition number in a preceding -n
command.
2014-03-02 11:37:20 -05:00
Roderick W. Smith
a345a92260
Refinements to new treatment of hybrid MBR and MBR conversions that
...
span the 2TiB boundary.
2014-02-22 12:12:32 -05:00
Roderick W. Smith
820d1d04a3
Fixed sgdisk problem when creating hybrid MBR with a partition that
...
ends beyond sector 2^32. Now refuses to create such partitions.
2014-02-20 13:25:22 -05:00
Roderick W. Smith
e3ee733ff8
Removed 0x8302 type code, since the Red Hat parted developers have
...
decided against using it.
2013-09-24 12:56:11 -04:00
srs5694
f5dfbfa418
Change to alignment code in sgdisk.
2013-02-14 20:47:14 -05:00
srs5694
0741fa21ac
0.8.6 release.
2013-01-09 12:55:40 -05:00
srs5694
e842bc1351
Fixed bug: >2TiB partition creation in sgdisk
2012-02-03 11:27:05 -05:00
srs5694
d1b11e8305
Fixed bug in reading GPTs with encoded header sizes other than 92 bytes.
2011-09-18 21:12:28 -04:00
srs5694
3860cbe1ca
New files in support of version 0.8.0
2011-09-10 20:29:53 -04:00