How to clone with new UUID? #155
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello, I am desperately looking for how to clone an SSD (therefore USB) to an SD with different UUID numbers.
A bit like the "new partition UUIDs" option in the "SD Card Copier" accessory.
Currently on my pi4 I boot in USB then SD if USB not available (eeprom).
I do a full copy of my SSD to my SD every week using the following command:
sudo rpi-clone mmcblk0 -v -U
in this configuration in case of reboot of the Pi I restart on the SD (although the eeprom of the pi is on USB,) which I do not want, and on the desktop we did not see the SSD!
So I tried this:
sudo rpi-clone -l mmcblk0 -v -U
there I reboot well on the SSD and the SD card is well seen on the desktop but they always have the same UUID and that causes problems for example impossible to succeed in ejecting via the desktop the SD card!
How can I do this? (change UUID of the copy therefore of the SD?)
THANKS
I unfortunately don't know how to achieve this with rpi-clone :-(.
But as an alternative you can achieve this with raspiBackup :-) Just create a backup of your SSD and then restore the SSD backup to your SD card with option
--updateUUIDs
.Thanks for that, I'll take a look.
Otherwise I did this (script) to modify the copy.
Your script looks pretty good 👍
Would be great if you attach the script file instead to add it in a reply. This makes it much easier to reuse your srcipt ;-)
Here is the complete script with log file size management!
script.txt