billw2 / rpi-clone

A shell script to clone a booted disk.
BSD 3-Clause "New" or "Revised" License
2.49k stars 327 forks source link

Booting with initramfs on Ubuntu 18.04.2.LTS #121

Closed Nixies closed 3 years ago

Nixies commented 3 years ago

Hello,

I'm trying to clone an sd card on which is installed an Ubuntu 18.04.2 LTS. During the cloning process everything goes ok but when I try the cloned sd card into the rpi 3b+ I land into initramfs prompt. When I type exit it gives me the following message:

Gave up wainting for root file system device. Common problems:

I tried to change the delay value without success. The original card work perfectly on the rpi 3b+.

Do you have any idea ? Thank you very much.

Nixies commented 3 years ago

Hello, Finally I solved the problem: 1- add Label to the root partition 2- modify the fstab: replace the LABEL="writable" by the PARTUUID value of this partition.

SomebodySysop commented 2 years ago

Hello, Finally I solved the problem: 1- add Label to the root partition 2- modify the fstab: replace the LABEL="writable" by the PARTUUID value of this partition.

I just cloned a Raspberry Pi 4 system using example 1), and but it into new Raspberry Pi 4 system and got the same exact error messages. This is kind of new to me. Could you elaborate just a bit on how you did steps 1 and 2.

How did you add Label to the root partition?

As for the 2nd step, could you just show your fstab so we could see the change you made?

This is what mines looks like:

# UNCONFIGURED FSTAB FOR BASE SYSTEM
LABEL=writable    /     ext4    defaults,x-systemd.growfs    0 0
/swapfile         none  swap    sw    0 0
LABEL=system-boot       /boot/firmware  vfat    defaults        0       1

Thanks!

SomebodySysop commented 2 years ago

I actually resolved the problem by using this to clone the sdcard: https://github.com/nwright-mcc/piclone_cmd

New system booted immediately.