-
Notifications
You must be signed in to change notification settings - Fork 338
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
rpi-clone from NVME to USB-Stick #150
Comments
Please check #147 |
Sorry don't solve my problem. begin at line 1060if [[ |
My NVME has 256 GB but I only have written 20 GB |
As far as I know it has to have at least 20GB and some space for the boot partition.
I don't have a NVMe SSD but a CM4 with NVMe. I will check whether #147 fails for me. |
OK I try to copy with this command |
This will not work. dd is a 1:1 copy and you need at least the same size of your source device for your target device. I thought you want to use rpi-clone 😟 |
Yes I want to use rpi-clone but this dont work for me. Then I run I can run this:
|
Please delete the bash debug output in your previous comment and attach the contents in a file 😉 Anyhow I was just able to create a clone of my CM4 from NVMe to an USB flash drive.
That's the code I use (It's the PR from @geerlingguy merged into my fork of rpi-clone):
Please use this code and try again. |
I figured out why this wasn't working and how to make it work. A newly formatted microsd card won't work because it doesn't have partitions and file systems. I tried using the rpi-clone command with -f and -f2 and -p 256M but that didn't work. If the microsd card doesn't have file systems, the rpi-clone tries to dd convert and copy the entire To make this work I had to create two partitions on the microsd card and then create file systems on them.
Here is the procedure I used: Using gdisk, Print the partitions and delete them if there are any. Using gdisk, Create new partitions 1 (size 256M) and 2 (8G) and write the change to the sd card. Using mkfs, Create new file systems on partitions 1 (FAT16) and 2 (EXT4). See captured printout below. Create backup of nvme drive with sudo ./rpi-clone sda Use the new PR change mentioned above. git clone https://github.com/framps/rpi-clone.git
Example of how to print and delete partitions, using gdisk.
Example of sudo ./rpi-clone that failed becasue microsd card had no file systems created.
|
I have a Notebook with an NVME SSD and Debian 11 64 bit.
If I install rpi-clone
$ git clone https://github.com/billw2/rpi-clone.git
$ cd rpi-clone
$ sudo cp rpi-clone /usr/local/sbin/sys-clone
$ sudo cp rpi-clone-setup /usr/local/sbin/sys-clone-setup
I get no Errors.
If I want to Clone my System from the nvme ssd I get the following error:
root@debian:~# rpi-clone
Error: Could not stat device /dev/nvme0n1p - No such file or directory.
sdc 8:32 1 28.8G 0 disk
nvme0n1 259:0 0 238.5G 0 disk
├─nvme0n1p1 259:1 0 512M 0 part /boot/efi
└─nvme0n1p2 259:2 0 237G 0 part /
Sdc is my USB Stick where I have to Clone my System
Nvme01n is the System and boot Partition.
Can anyone help me with this error?
I want with rpi-clone a bootable system if my system crash.
Thanks in advance
The text was updated successfully, but these errors were encountered: