cfdisk UI problem with a small partition starting and ending before sector 2048 (1MiB)
I tested sfdisk/cfdisk from the latest git while setting up a new disk. It finds some free space where there isn't any:
Disk: /dev/sde
Size: 2.7 TiB, 3000592982016 bytes, 5860533168 sectorsLabel: gpt, identifier: 7E471862-5089-4C54-A3BC-722ADD08808A
Device Start End Sectors Size Type/dev/sde1 40 2047 2008 1004K BIOS boot
Free space 2048 39 18446744073709549608 16E/dev/sde2 2048 30722047 30720000 14.7G Linux RAID
...
sfdisk --dump dumps/restores it just fine. (Thanks fixing that bug last year with sfdisk refusing to create the boot partition starting at sector 40.)
Here's the dump so you can recreate it easily:
label: gpt
label-id: 7E471862-5089-4C54-A3BC-722ADD08808A
device: /dev/sde
unit: sectors
first-lba: 34
last-lba: 5860533134
/dev/sde1 : start= 40, size= 2008, type=21686148-6449-6E6F-744E-656564454649, uuid=336580CD-6D34-4148-8708-DB3308CE667C, name="BIOS boot partition"/dev/sde2 : start= 2048, size= 30720000, type=A19D880F-05FC-4D3B-A006-743F0F84911E, uuid=A3F01280-2490-4925-B2D7-4A31F0B8556A/dev/sde3 : start= 30722048, size= 614400, type=0657FD6D-A4AB-43C4-84E5-0933C84B4F4F, uuid=B07E3680-FC7E-4BE3-A14A-568011F9D410/dev/sde4 : start= 31336448, size= 134217728, type=A19D880F-05FC-4D3B-A006-743F0F84911E, uuid=CA777D0F-0DA2-4F9C-98D8-67187479BA81/dev/sde5 : start= 165554176, size= 209715200, type=A19D880F-05FC-4D3B-A006-743F0F84911E, uuid=C7C67ABA-9483-4FF7-9D96-5BC37BED19FF/dev/sde6 : start= 375269376, size= 5485263759, type=A19D880F-05FC-4D3B-A006-743F0F84911E, uuid=FE8DFE27-11B1-438B-BA24-0CD64B474897
Signature · 6 lines
#define X(x,y) x##y Peter Cordes ; e-mail: X(peter@cor , des.ca) "The gods confound the man who first found out how to distinguish the hours! Confound him, too, who in this place set up a sundial, to cut and hack my day so wretchedly into small pieces!" -- Plautus, 200 BC
Karel Zak
maintainerQuoted 2 lines · Peter Cordes
I tested sfdisk/cfdisk from the latest git while setting up a new disk. It finds some free space where there isn't any:
Fixed by commit b362a4cb986f7eea4b884c800719971502e2e8a8.
Note that technically there is a free space between sectors 34 and 40, but after align to MiBs it's useless and libfdisk code has been confused with it...
Karel
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com