Unable to find target partition "sda1".
A partition and disk imaging/cloning program
Brought to you by:
steven_shiau
Using either Clonezilla 3.2.0-5 stable or 3.2.0-33 testing, I'm not able to clone the internal 512GB SSD of my 2016 15" MacBook Pro with Touch Bar to a 2TB SK Hynix P31 Gold SSD in an external USB 3 adapter. I'm using beginner mode and requesting the partition sizes be increased proportionally. The old disk has a large macOS 15 APFS partition and a small Windows 10 partition. I can select the source and destination disks and the process seems to begin, but fails with:
Old situation:
>>> Script header accepted.
>>> Script header accepted.
>>> Script header accepted.
>>> Script header accepted.
>>> Script header accepted.
>>> First LBA specified by script is out of range.
First LBA specified by script is out of range.
First LBA specified by script is out of range.
Failed to apply script headers, disk label not created: Numerical result out of range
Leaving.
*****************************************************.
This was done by EXTRA_SFDISK_OPT="--force --wipe always" ocs-expand-gpt-pt -icds --batch /tmp/d2d-pseudo-tmp-cnvted/sda-pt.sf /dev/sda 2>&1
Informing the OS of partition table changes..................................................... done!
The disk and partitions in this system now:
*****************************************************.
Model: JMicron Tech (scsi)
Disk /dev/sda: 2000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
*****************************************************.
*****************************************************.
Restoring partition /dev/sda1...
Unable to find target partition "sda1".
*****************************************************.
The disk and partition in this system:
major minor #blocks name
259 0 488552528 nvme0n1
259 5 307200 nvme0n1p1
259 6 428732392 nvme0n1p2
259 7 58975836 nvme0n1p3
259 8 535552 nvme0n1p4
8 0 1953514584 sda
8 16 15446016 sdb
8 17 15446015 sdb1
7 0 400104 loop0
*****************************************************.
Check if the partition sda1 really exists, otherwise maybe the kernel is too old.
Program terminated!.
Press "Enter" to continue......
Apologies for any typos; this was reconstructed from a screenshot.
On another Mac, Clonezilla successfully cloned one SATA SSD to another with proportional partition size scaling, so I know it works generally, just not this time for some reason.
Correction: the old disk has macOS 10.15, not macOS 15.
So it failed at here:
"First LBA specified by script is out of range."
I do not have any physical Mac machine I can access now, hence no way to test it here.
Maybe you can manually run fdisk/gdisk on your destination disk, and when cloning, choose the option "-k", i.e., do not create partition table on the destination disk:
https://clonezilla.org//clonezilla-live/doc/03_Disk_to_disk_clone/images/ocs-05-b-3-expert-param-k.png
Steven