billw2 / rpi-clone

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

Copy problem on Bullseye with rpi-clone #154

Open mgnthe54 opened 1 year ago

mgnthe54 commented 1 year ago

Hello, I have a new problem with Bullseye 64 bit and this time it's with rpi-clone.

I boot on a 120 G0 SSD and my crontab I make a weekly backup of this SSD on an SD (in the SD slot of the raspberry). via the command: sudo rpi-clone mmcblk0 -v -U >> /home/pi/script/copy_disk_boot.log On Buster no worries, but since I switched to bullseye the copy no longer works (the files are present but if I put this SD in another pi no boot, I don't even make the image of Raspberry 4 bit I have a blinking cursor). If I make a copy using the SD Card Copier accessory, no problem, the copy is operational! However, the sudo rpi-clone command's action tracking file... tells me this: `Booted disk: sda 128.0GB Destination disk: mmcblk0 63.9GB


Part Size FS Label Part Size FS Label 1 256.0M fat32 -- 1 256.0M fat32 -- 2 root 119.0G ext4 rootfs 2 59.2G ext4 rootfs


== SYNC sda file systems to mmcblk0 == / (4.5G used): SYNC to mmcblk0p2 (59.2G size)


Run setup script: no. Verbose mode: yes. -----------------------: Destination disk has same Disk ID as source, changing it. Disk identifier changed from 0x392a8b00 to 0x5e35b5bb.

Syncing file systems (can take a long time) Syncing mounted partitions: Mounting /dev/mmcblk0p2 on /mnt/clone => rsync // /mnt/clone with-root-excludes ...sending incremental file list dev/ etc/fake-hwclock.data etc/resolv.conf ... ... sent 467,172,063 bytes received 20,626 bytes 11,535,621.95 bytes/sec total size is 5,181,620,046 speedup is 11.09

Editing /mnt/clone/etc/fstab PARTUUID to use 5e35b5bb

Done with clone to /dev/mmcblk0 Start - 21:34:04 End - 21:34:49 Elapsed Time - 0:45 unmount /mnt/clone ===============================`

Booted disk: sda 128.0GB Destination disk: mmcblk0 63.9GB


Part Size FS Label Part Size FS Label 1 256.0M fat32 -- 1 256.0M fat32 -- 2 root 119.0G ext4 rootfs 2 59.2G ext4 rootfs


== SYNC sda file systems to mmcblk0 == / (4.5G used): SYNC to mmcblk0p2 (59.2G size)


Run setup script: no. Verbose mode: yes. -----------------------: Destination disk has same Disk ID as source, changing it. Disk identifier changed from 0x392a8b00 to 0x5e35b5bb.

Syncing file systems (can take a long time) Syncing mounted partitions: Mounting /dev/mmcblk0p2 on /mnt/clone => rsync // /mnt/clone with-root-excludes ...sending incremental file list dev/ etc/fake-hwclock.data etc/resolv.conf ... ... sent 467,172,063 bytes received 20,626 bytes 11,535,621.95 bytes/sec total size is 5,181,620,046 speedup is 11.09

Editing /mnt/clone/etc/fstab PARTUUID to use 5e35b5bb

Done with clone to /dev/mmcblk0 Start - 21:34:04 End - 21:34:49 Elapsed Time - 0:45 unmount /mnt/clone

Has anyone had this problem before and found a solution? THANKS