-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Ubuntu Server 24.04 - impossible to boot #43
Comments
After some digging, it appears the Raspberry Pi imager's image uses labels in fstab and cmdline.txt for Ubuntu, while it uses PARTUUID for Raspbian. This broke the behaviour. If I can add a suggestion, |
I had to tweak the process a bit but now it worked for me. |
@kpanoulas2 thank you so much for sharing - this solved the problem! |
Thanks, @kpanoulas2, these steps were crucial. However, after applying these changes, I get another error:
It seems the disk is properly detected, but the OS won't boot. Any idea? |
Ubuntu has some differences in the partition naming (PARTUUID vs LABEL). Looks like that's the root cause and you have to use @kpanoulas2 workaround. I never used rpi-clone on Ubuntu. I will do this when I'm back home to understand what's the root cause the workaround has to be used. Maybe I can create a fix. @logoff Looks like you have some special setup on your system which is different than the standard Ubuntu setup. |
I ended up solving the issue applying @kpanoulas2 steps, plus manually copying files to the boot partition, mounted on |
I can confirm rpi-clone does not support to clone an Ubuntu image
/dev/mmcblk is the running Ubuntu and /dev/sdc is the cloned system. Given the labels are not cloned the cloned system will not boot because Ubutuntu uses labels in /etc/fstab and /boot/cmdline.txt :( Workaround: Execute following commands: on the device you used to clone your system. Then your cloned Ubuntu will boot. Not sure I find some spare time to add Ubuntu support in rpi-clone. |
Maybe #16 will fix this issue. Please try the code in the PR. |
I have an SD card I wrote with the Pi imager of Ubuntu Server 24.04. When I run
sudo rpi-clone -f sda
(with or without the-f
option or in succession), the copy succeeds but the USB disk then never boots.However, if I use the imager to write to the disk directly, it works fine. I have replicated this on 2 Pis and validated that the files are identical on both the card and the drive.
Am I missing an obvious step?
The text was updated successfully, but these errors were encountered: