[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.

Eric Valette eric.valette at free.fr
Wed Feb 3 16:34:10 GMT 2021


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...


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.

more my_disk_partition.txt
label: dos
label-id: 0x0006411f
device: /dev/sdb
unit: sectors
sector-size: 512
gain: 512

/dev/sdb1 : start=        2048, size=   117184512, type=7, bootable
/dev/sdb3 : start=   117188606, size=   117252098, type=5
/dev/sdb5 : start=   117190656, size=    41013248, type=83
/dev/sdb6 : start=   158203904, size=     9762816, type=83
/dev/sdb7 : start=   167968768, size=    13670400, type=83
/dev/sdb8 : start=   181641216, size=     1951744, type=83
/dev/sdb9 : start=   183595008, size=    39059456, type=83
/dev/sdb10 : start=   222656512, size=    11784192, type=82

To recreate an identically partitionned disk

you can recreate the same disk format via:

sfdisk /dev/sdb < my_disk_partition.txt

-- eric



More information about the Parted-maintainers mailing list