[Parted-maintainers] Bug#981692: Try to use the gain value and set it to 512 (one sector) instead of default 1MiB. Its a bug in sfdisk BTW.

Phillip Susi phill at thesusis.net
Wed Feb 3 19:22:22 GMT 2021


Eric Valette writes:

> Its and very old SSD that has been partitionned at time where thedefault 
> 1MiB space limit between partition was was no there. Apart that I did 
> partition probably usinf cfisk at that time.
>
> What is strange is that in my case sfdisk -V reports no error and the 
> partitions are correctly detected so the EBR are obviously stored...

It is theretically possible to say, store multipe EBRs in the start of
the extended partition before the first logical partition, then have no
space between each logical partition, but parted does not support this.
It requires the EBR to be between the previous partition and the next,
so there must be at least one unused sector between them.  I have seen
reports over the years of people running into disks built this way but
never been able to figure out how they got that way.

> I guess that it happens that the default size for sfdisk "grain" value 
> (see man sfdisk) has chnaged from one sector to one MiB. I created the 
> following output. see the gain value below.

I still get an error:

img6: /dev/sdb6 : start=   158203904, size=     9762816, type=83
Start sector 158203904 out of range.
Failed to add #6 partition: Numerical result out of range



More information about the Parted-maintainers mailing list