Tweak sfdisk with the total number of sectors from gdisk on /dev/nvme...
New sector count: 1953525168 Prev sector count: 61071327 Just offset everything in the last sfdisk (last sfdisk was just from dd if=/dev/mmcblk0 of=/dev/nvme... while booted in runlevel 0)
Disk /dev/mmcblk0: 61071360 sectors, 29.1 GiB
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): 51E74661-F18B-4F9B-9FC2-8D66F49CC472
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 4097, last usable sector is 61071327
Partitions will be aligned on 8-sector boundaries
Total free space is 8 sectors (4.0 KiB)
Number Start (sector) End (sector) Size Code Name
1 4104 58724359 28.0 GiB 0700 APP
2 58724360 58732551 4.0 MiB 0700 mts-bootpack
3 58732552 58740743 4.0 MiB 0700 mts-bootpack_b
4 58740744 58741767 512.0 KiB 0700 cpu-bootloader
5 58741768 58742791 512.0 KiB 0700 cpu-bootloader_b
6 58742792 58743815 512.0 KiB 0700 bootloader-dtb
7 58743816 58744839 512.0 KiB 0700 bootloader-dtb_b
8 58744840 58750983 3.0 MiB 0700 secure-os
9 58750984 58757127 3.0 MiB 0700 secure-os_b
10 58757128 58761223 2.0 MiB 0700 eks
11 58761224 58769415 4.0 MiB 0700 adsp-fw
12 58769416 58777607 4.0 MiB 0700 adsp-fw_b
13 58777608 58778815 604.0 KiB 0700 bpmp-fw
14 58778816 58780023 604.0 KiB 0700 bpmp-fw_b
15 58780024 58782071 1024.0 KiB 0700 bpmp-fw-dtb
16 58782072 58784119 1024.0 KiB 0700 bpmp-fw-dtb_b
17 58784120 58788215 2.0 MiB 0700 sce-fw
18 58788216 58792311 2.0 MiB 0700 sce-fw_b
19 58792312 58804599 6.0 MiB 0700 sc7
20 58804600 58816887 6.0 MiB 0700 sc7_b
21 58816888 58820983 2.0 MiB 0700 FBNAME
22 58820984 59083127 128.0 MiB 0700 BMP
23 59083128 59345271 128.0 MiB 0700 BMP_b
24 59345272 59474295 63.0 MiB 0700 recovery
25 59474296 59475319 512.0 KiB 0700 recovery-dtb
26 59475320 59475831 256.0 KiB 0700 kernel-bootctrl
27 59475832 59476343 256.0 KiB 0700 kernel-bootctrl_b
28 59476344 59640183 80.0 MiB 0700 kernel
29 59640184 59804023 80.0 MiB 0700 kernel_b
30 59804024 59805047 512.0 KiB 0700 kernel-dtb
31 59805048 59806071 512.0 KiB 0700 kernel-dtb_b
32 59806072 60420471 300.0 MiB 0700 RECROOTFS
33 60420472 61071326 317.8 MiB 0700 UDA
device: /dev/mmcblk0
unit: sectors
first-lba: 4097
last-lba: 61071327
/dev/mmcblk0p1 : start= 4104, size= 58720256, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=15FD1B2D-8314-4329-8C5B-992034C7530D, name="APP"
/dev/mmcblk0p2 : start= 58724360, size= 8192, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=0A7F3498-481D-4E9A-A085-A60487D7506A, name="mts-bootpack"
/dev/mmcblk0p3 : start= 58732552, size= 8192, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=300124CB-7657-4583-969C-5D69F4D1B846, name="mts-bootpack_b"
/dev/mmcblk0p4 : start= 58740744, size= 1024, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=105FF4E5-7EAE-424F-BBCE-C92820833621, name="cpu-bootloader"
/dev/mmcblk0p5 : start= 58741768, size= 1024, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=04F4AD57-8B07-49F1-8A1F-715B6EEF3028, name="cpu-bootloader_b"
/dev/mmcblk0p6 : start= 58742792, size= 1024, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=3403D3CB-E920-4B60-857F-EC615E506375, name="bootloader-dtb"
/dev/mmcblk0p7 : start= 58743816, size= 1024, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=056755FA-25F3-4286-98AD-560F1303A673, name="bootloader-dtb_b"
/dev/mmcblk0p8 : start= 58744840, size= 6144, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=056F36C2-89AD-4AEB-9261-2064EF516C1B, name="secure-os"
/dev/mmcblk0p9 : start= 58750984, size= 6144, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=1E150CC1-BD9E-44B9-A319-C02859419428, name="secure-os_b"
/dev/mmcblk0p10 : start= 58757128, size= 4096, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=135405BC-9EC4-4D66-A018-E512872A5543, name="eks"
/dev/mmcblk0p11 : start= 58761224, size= 8192, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=72EA151B-B576-4C42-BCFC-0D0A000A4A03, name="adsp-fw"
/dev/mmcblk0p12 : start= 58769416, size= 8192, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=1E923424-CB37-42D7-A08D-80247BE18623, name="adsp-fw_b"
/dev/mmcblk0p13 : start= 58777608, size= 1208, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=1CC9563E-ACAA-4FF1-AAD0-B74B092ACD50, name="bpmp-fw"
/dev/mmcblk0p14 : start= 58778816, size= 1208, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=6B5295CA-506F-4DA4-A77A-3046C5EBB970, name="bpmp-fw_b"
/dev/mmcblk0p15 : start= 58780024, size= 2048, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=302A7662-2840-4587-98EE-5F6424AD9935, name="bpmp-fw-dtb"
/dev/mmcblk0p16 : start= 58782072, size= 2048, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=2072B1ED-50AB-4880-94FF-0551AEBE873E, name="bpmp-fw-dtb_b"
/dev/mmcblk0p17 : start= 58784120, size= 4096, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=4D3A0E49-1837-49C6-8800-1C6705148E60, name="sce-fw"
/dev/mmcblk0p18 : start= 58788216, size= 4096, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=272CB6FB-18E8-4A01-8D3E-E32316CC161A, name="sce-fw_b"
/dev/mmcblk0p19 : start= 58792312, size= 12288, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=7643CE5F-3B09-4DF1-96D6-601D8302D614, name="sc7"
/dev/mmcblk0p20 : start= 58804600, size= 12288, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=60C90640-6337-41E1-BFE3-5C387E5C927D, name="sc7_b"
/dev/mmcblk0p21 : start= 58816888, size= 4096, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=41D30FE1-B4E9-4414-8786-5F4EACA5252D, name="FBNAME"
/dev/mmcblk0p22 : start= 58820984, size= 262144, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=31B90558-00EF-4490-B191-DF1DBA7BE361, name="BMP"
/dev/mmcblk0p23 : start= 59083128, size= 262144, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=6A17292F-8049-423F-9F28-7D171CDB890A, name="BMP_b"
/dev/mmcblk0p24 : start= 59345272, size= 129024, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=4ABFD0F4-27F3-4883-8A99-11493EDFF917, name="recovery"
/dev/mmcblk0p25 : start= 59474296, size= 1024, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=6249402A-99D2-402D-83F3-877826F77509, name="recovery-dtb"
/dev/mmcblk0p26 : start= 59475320, size= 512, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=2A2EB2BB-31D0-4C6B-BCC3-8C231A817220, name="kernel-bootctrl"
/dev/mmcblk0p27 : start= 59475832, size= 512, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=4A5C6CD9-9953-40ED-9D83-48351973252B, name="kernel-bootctrl_b"
/dev/mmcblk0p28 : start= 59476344, size= 163840, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=02CEFC8A-679C-4DA5-97CF-B7286B0CA244, name="kernel"
/dev/mmcblk0p29 : start= 59640184, size= 163840, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=71BA1C85-561F-4717-97B2-C771DD217323, name="kernel_b"
/dev/mmcblk0p30 : start= 59804024, size= 1024, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=0BA7570E-4388-4FA7-989D-56053D80BE75, name="kernel-dtb"
/dev/mmcblk0p31 : start= 59805048, size= 1024, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=11E6C3D2-C677-4CD3-995B-4800C694A65C, name="kernel-dtb_b"
/dev/mmcblk0p32 : start= 59806072, size= 614400, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=0556EE6A-F523-4959-8474-A074942EA067, name="RECROOTFS"
/dev/mmcblk0p33 : start= 60420472, size= 650855, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=79878EF6-6748-4D28-BA25-1671B141B623, name="UDA"
GPT fdisk (gdisk) version 1.0.3
The protective MBR's 0xEE partition is oversized! Auto-repairing.
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Command (? for help): p
Disk /dev/nvme0n1: 1953525168 sectors, 931.5 GiB
Model: Samsung SSD 980 1TB
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): 51E74661-F18B-4F9B-9FC2-8D66F49CC472
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 4097, last usable sector is 61071327
Partitions will be aligned on 8-sector boundaries
Total free space is 8 sectors (4.0 KiB)
Number Start (sector) End (sector) Size Code Name
1 4104 58724359 28.0 GiB 0700 APP
2 58724360 58732551 4.0 MiB 0700 mts-bootpack
3 58732552 58740743 4.0 MiB 0700 mts-bootpack_b
4 58740744 58741767 512.0 KiB 0700 cpu-bootloader
5 58741768 58742791 512.0 KiB 0700 cpu-bootloader_b
6 58742792 58743815 512.0 KiB 0700 bootloader-dtb
7 58743816 58744839 512.0 KiB 0700 bootloader-dtb_b
8 58744840 58750983 3.0 MiB 0700 secure-os
9 58750984 58757127 3.0 MiB 0700 secure-os_b
10 58757128 58761223 2.0 MiB 0700 eks
11 58761224 58769415 4.0 MiB 0700 adsp-fw
12 58769416 58777607 4.0 MiB 0700 adsp-fw_b
13 58777608 58778815 604.0 KiB 0700 bpmp-fw
14 58778816 58780023 604.0 KiB 0700 bpmp-fw_b
15 58780024 58782071 1024.0 KiB 0700 bpmp-fw-dtb
16 58782072 58784119 1024.0 KiB 0700 bpmp-fw-dtb_b
17 58784120 58788215 2.0 MiB 0700 sce-fw
18 58788216 58792311 2.0 MiB 0700 sce-fw_b
19 58792312 58804599 6.0 MiB 0700 sc7
20 58804600 58816887 6.0 MiB 0700 sc7_b
21 58816888 58820983 2.0 MiB 0700 FBNAME
22 58820984 59083127 128.0 MiB 0700 BMP
23 59083128 59345271 128.0 MiB 0700 BMP_b
24 59345272 59474295 63.0 MiB 0700 recovery
25 59474296 59475319 512.0 KiB 0700 recovery-dtb
26 59475320 59475831 256.0 KiB 0700 kernel-bootctrl
27 59475832 59476343 256.0 KiB 0700 kernel-bootctrl_b
28 59476344 59640183 80.0 MiB 0700 kernel
29 59640184 59804023 80.0 MiB 0700 kernel_b
30 59804024 59805047 512.0 KiB 0700 kernel-dtb
31 59805048 59806071 512.0 KiB 0700 kernel-dtb_b
32 59806072 60420471 300.0 MiB 0700 RECROOTFS
33 60420472 61071326 317.8 MiB 0700 UDA
Command (? for help):
label: gpt
label-id: 51E74661-F18B-4F9B-9FC2-8D66F49CC472
device: /dev/nvme0n1
unit: sectors
first-lba: 4097
last-lba: 61071327
/dev/nvme0n1p1 : start= 4104, size= 58720256, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=15FD1B2D-8314-4329-8C5B-992034C7530D, name="APP"
/dev/nvme0n1p2 : start= 58724360, size= 8192, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=0A7F3498-481D-4E9A-A085-A60487D7506A, name="mts-bootpack"
/dev/nvme0n1p3 : start= 58732552, size= 8192, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=300124CB-7657-4583-969C-5D69F4D1B846, name="mts-bootpack_b"
/dev/nvme0n1p4 : start= 58740744, size= 1024, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=105FF4E5-7EAE-424F-BBCE-C92820833621, name="cpu-bootloader"
/dev/nvme0n1p5 : start= 58741768, size= 1024, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=04F4AD57-8B07-49F1-8A1F-715B6EEF3028, name="cpu-bootloader_b"
/dev/nvme0n1p6 : start= 58742792, size= 1024, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=3403D3CB-E920-4B60-857F-EC615E506375, name="bootloader-dtb"
/dev/nvme0n1p7 : start= 58743816, size= 1024, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=056755FA-25F3-4286-98AD-560F1303A673, name="bootloader-dtb_b"
/dev/nvme0n1p8 : start= 58744840, size= 6144, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=056F36C2-89AD-4AEB-9261-2064EF516C1B, name="secure-os"
/dev/nvme0n1p9 : start= 58750984, size= 6144, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=1E150CC1-BD9E-44B9-A319-C02859419428, name="secure-os_b"
/dev/nvme0n1p10 : start= 58757128, size= 4096, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=135405BC-9EC4-4D66-A018-E512872A5543, name="eks"
/dev/nvme0n1p11 : start= 58761224, size= 8192, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=72EA151B-B576-4C42-BCFC-0D0A000A4A03, name="adsp-fw"
/dev/nvme0n1p12 : start= 58769416, size= 8192, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=1E923424-CB37-42D7-A08D-80247BE18623, name="adsp-fw_b"
/dev/nvme0n1p13 : start= 58777608, size= 1208, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=1CC9563E-ACAA-4FF1-AAD0-B74B092ACD50, name="bpmp-fw"
/dev/nvme0n1p14 : start= 58778816, size= 1208, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=6B5295CA-506F-4DA4-A77A-3046C5EBB970, name="bpmp-fw_b"
/dev/nvme0n1p15 : start= 58780024, size= 2048, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=302A7662-2840-4587-98EE-5F6424AD9935, name="bpmp-fw-dtb"
/dev/nvme0n1p16 : start= 58782072, size= 2048, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=2072B1ED-50AB-4880-94FF-0551AEBE873E, name="bpmp-fw-dtb_b"
/dev/nvme0n1p17 : start= 58784120, size= 4096, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=4D3A0E49-1837-49C6-8800-1C6705148E60, name="sce-fw"
/dev/nvme0n1p18 : start= 58788216, size= 4096, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=272CB6FB-18E8-4A01-8D3E-E32316CC161A, name="sce-fw_b"
/dev/nvme0n1p19 : start= 58792312, size= 12288, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=7643CE5F-3B09-4DF1-96D6-601D8302D614, name="sc7"
/dev/nvme0n1p20 : start= 58804600, size= 12288, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=60C90640-6337-41E1-BFE3-5C387E5C927D, name="sc7_b"
/dev/nvme0n1p21 : start= 58816888, size= 4096, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=41D30FE1-B4E9-4414-8786-5F4EACA5252D, name="FBNAME"
/dev/nvme0n1p22 : start= 58820984, size= 262144, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=31B90558-00EF-4490-B191-DF1DBA7BE361, name="BMP"
/dev/nvme0n1p23 : start= 59083128, size= 262144, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=6A17292F-8049-423F-9F28-7D171CDB890A, name="BMP_b"
/dev/nvme0n1p24 : start= 59345272, size= 129024, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=4ABFD0F4-27F3-4883-8A99-11493EDFF917, name="recovery"
/dev/nvme0n1p25 : start= 59474296, size= 1024, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=6249402A-99D2-402D-83F3-877826F77509, name="recovery-dtb"
/dev/nvme0n1p26 : start= 59475320, size= 512, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=2A2EB2BB-31D0-4C6B-BCC3-8C231A817220, name="kernel-bootctrl"
/dev/nvme0n1p27 : start= 59475832, size= 512, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=4A5C6CD9-9953-40ED-9D83-48351973252B, name="kernel-bootctrl_b"
/dev/nvme0n1p28 : start= 59476344, size= 163840, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=02CEFC8A-679C-4DA5-97CF-B7286B0CA244, name="kernel"
/dev/nvme0n1p29 : start= 59640184, size= 163840, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=71BA1C85-561F-4717-97B2-C771DD217323, name="kernel_b"
/dev/nvme0n1p30 : start= 59804024, size= 1024, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=0BA7570E-4388-4FA7-989D-56053D80BE75, name="kernel-dtb"
/dev/nvme0n1p31 : start= 59805048, size= 1024, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=11E6C3D2-C677-4CD3-995B-4800C694A65C, name="kernel-dtb_b"
/dev/nvme0n1p32 : start= 59806072, size= 614400, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=0556EE6A-F523-4959-8474-A074942EA067, name="RECROOTFS"
/dev/nvme0n1p33 : start= 60420472, size= 650855, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=79878EF6-6748-4D28-BA25-1671B141B623, name="UDA"