Open b-morgan opened 8 months ago
Using bash -x sys-clone /dev/nvme0n1 2>&1 | tee output.log
I was able to discover that the message is generated by parted and the valid responses are Fix/Ignore
. This allowed the script to continue but there is a new error:
Mounting /dev/nvme0n12 on /mnt/clone
+ mount /dev/nvme0n12 /mnt/clone
mount: /mnt/clone: special device /dev/nvme0n12 does not exist.
dmesg(1) may have more information after failed mount system call.
+ echo ' Mount failure of /dev/nvme0n12 on /mnt/clone.'
Mount failure of /dev/nvme0n12 on /mnt/clone.
+ '[' '' '!=' '' ']'
+ echo 'Aborting!'
Aborting!
+ exit 1
From the previous fdisk output the partitions are nvme0n1p1
and nvme0n1p2
.
You should check #147 because rpi-clone does not support NVMe
@framps Thanks! That issue gave me the clue but there were two lines that needed to be changed, 576:
if [[ $disk == *"mmcblk"* || $disk == *"nvme"* ]]
and 1062:
if [[ $dst_disk == *"mmcblk"* || $disk == *"nvme"* ]]
@framps Thanks! That issue gave me the clue but there were two lines that needed to be changed, 576:
if [[ $disk == *"mmcblk"* || $disk == *"nvme"* ]]
and 1062:
if [[ $dst_disk == *"mmcblk"* || $disk == *"nvme"* ]]
Great tweak, @b-morgan This got my attempt to clone SD -> NVMe past the issue I was having, after fixing your typo. Line 1062 should actually read:
if [[ $dst_disk == *"mmcblk"* || $dst_disk == *"nvme"* ]]
Just a heads up for anyone else who arrives here and doesn't notice it. Cloning process completed and reported success. Despite that, the clone system boots to initramfs command line for BusyBox. Currently troubleshooting that...
Disregard my responses. The best option is to use Jeff's (@geerlingguy) version/fork: https://rpi-clone.jeffgeerling.com
After troubleshooting above for a short time I full removed and reinstalled his fork, ran clone to my nvme with no flags or script edits. Immediate success and system booted great.
Yes, everybody should head over to Jeff's repo. Bills repo is no longer maintained and rpi-clone does not work on Bookworm any more.
I have an Orange Pi 3B with an eMMC (256GB) and an NVMe (256GB) on which I have installed Debian 12 (Bookworm). I have installed rpi-clone 2.0.22 and copied the files to /local/user/sbin as suggested in the README.md.
Here is a lsblk:
When I attempt to do the clone, I get a Warning that requires a response but I have no idea where it comes from or what response will continue.
Here is the output from fdisk for both the source and the target devices:
Can you tell me what response is needed to continue (and where this warning comes from)?