-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UUID changed only in fstab, not in /boot/firmware/cmdline.txt #31
Comments
I don't own a 3B+ and thus I used a RPi4 in order to recreate your issue. But my cloned image booted successfully with the UUID updated in cmdline.txt and fstab. My OS was a Bookworm lite 32bit. |
Thank you for answering. |
I made another test: I have externally cloned a working SD with Balena Etcher, then plugged it in the Raspi as backup SD. Since then, every backup with |
Ok. I tried it again with a brand new SD card.
As you can see a new PARTUUID was generated and cmdline.txt and fstab were updated. The cloned system boots. Have you ever been able to clone a system with rpi-clone successfully? For me it seems to be some issue with the SD cards you use. Are they all of the same brand? Did you try SD cards from another brand? Do you have a brand new SD card which you didn't use already and can show the output of You may also try to clear the partition table of the SD card first with
and try again. In any case - you have to describe in detail what you did and show all console results you get (see my report above for an example 😉). Otherwise it's just guessing what's the root cause of your issue. |
I understand and I thank you for your efforts. At the moment I have externally cloned the SD card and it is correctly working with rpi-clone. For the time being, this is the result email I received from the "faulty" SD card, before cloning it externally with Balena Etcher:
|
You missed to show the command you used 😉 As far as I see a sync was done and no initialize. Did you specify option Anyhow it's interesting to see a message that fstab is updated but no message for cmdline.txt 🤔 |
No, this was a normal |
Got it. Just to make sure I get your use case correctly. Please confirm:
|
100% accurate I will also add:
|
shasum rpi-clone |
Same for me. Please answer my questions from above 😉 |
Sorry, which questions you refer to? |
|
Yes, I am using rpi-clone from years now and it always worked. Problems start arising with bookworm. |
What's the result of these commands when you execute rpi-clone and the partitions are still mounted ? |
I can send you later, as I am not at home, but the SD in the backup slot is now working correctly, as I mentioned, so I suppose the commands will give correct results. |
Here they are:
|
Indeed the result is correct. The PARTUUIDs are updated in both files.
Now I'm lost. The issue talks about missing PARTUUID update of cmdline.txt and now you write it's working? 😕 |
Yes, because, as I said, in the meantime I have cloned it externally with Balena Etcher. Since then, every backup with rpi-clone was keeping bootable the SD. Before that, the cmdline.txt PARTUUID was not updating and was kept equal to that in the main SD. |
The result of the command of this SD card is useless. It's only interesting for a a failing clone. And please provide also all messages you get when the clone fails. |
As I told you few messages above: |
Do you get the rsync error messages all the time or did you get then just in this rpi-clone run? There is only message
Looks like you use the overlay FS and the boot partition is mounted RO. What's the output of
? |
I get those message every time >i run rpi-clone with -f switch.
(I removed the faulty SD) |
😢 Everything is RW 😢 I'm sorry, but I don't have any idea any more how to locate the root cause of the issue. rpi-clone has no debug log - unfortunately. I opened #32 and maybe somebody volonteers to add debug statements in rpi-clone to help in the future to debug any nasty issues as you have right now..
rpi-clone works perfect on bookworm. I'm not able to reproduce your issue. Looks like you have something very special configured on your bookworm image which causes this issue. |
Ok. Thank you anyway for your assistance. To recap:
|
I think as long as you get these rsync error messages rpi-clone will not be able to update cmdline.txt. I had issues in raspiBackup because folks used usbmount and finally reject a restore if usbmount is active. |
I see, but I am not using usbmount. I have configured udevil/devmon to auto mount usb. |
I'm just guessing. Try rpi-clone with disabled automount. |
Do you mean, disabling automount and manually mount the partitions? |
Yes. Just give it a try. |
@framps I disabled automount, and no more those errors during rpi-clone -f |
Great it works now. Looks like I had the right feeling because I suspected the cloned boot partition may be remounted as read only by some automount service.
I agree. Would be better to have a fix for this. Maybe somebody know how this can be fixed. Root cause for the issue is the RO mounted boot partition if you enable the overlay file system with raspi-config. @geerlingguy I see three different ways to handle this issue:
I suggest to handle it with (2) and (3). What's your opinion on this? |
I think that option 3 is the fastest, even if it should be considered
maybe temporary.
|
As far as I understand |
I've disable automount via
I'm confused what I'm doing wrong. Everything is unmounted before running rpi-clone. Do they HAVE TO be mounted? Command I use to run the script as
|
As per title, after cloning on a brand new SD (with -f) the result is that only
/etc/fstab
is updated with the UUID, but notcmdline.txt
.Resulting in a non-bootable Sd card.. (Raspbian bookworm on a 3B+ raspi)
If I force the UUID in
cmdline.txt
withsyncUUIDs
script, at next run of rpi-clone the UUID is changed again to that of the main boot partition.The text was updated successfully, but these errors were encountered: