Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5060

Advanced users • Re: Image File Utilities

$
0
0
Without some way to reproduce your problem, I'm at a loss to know what to suggest.


What about the 'rsync' process I mentioned?
...
I wonder why this 'rsync' process continued to run after the 'image-backup' process was terminated?

That would be a question for the author of rsync. image-backup simply creates an empty image file that appears as a storage device with a BOOT partition formatted FAT32 and a ROOT partition formatted EXT4. That empty image file is then mounted as a loop device and rsync is executed to copy files to it:

Code:

  rsync -aDH --partial --numeric-ids --delete --force --exclude "${MNTPATH}" --exclude '/dev' --exclude '/lost+found' --exclude '/media' --exclude '/mnt' \--exclude '/proc' --exclude '/run' --exclude '/sys' --exclude '/tmp' --exclude '/var/swap' --exclude '/etc/udev/rules.d/70-persistent-net.rules' \--exclude '/var/lib/asterisk/astdb.sqlite3-journal' "${OPTIONS[@]}" / "${MNTPATH}/"  if [[ $? -ne 0 && $? -ne 24 ]]; then    errexit "Unable to create backup"  fi
image-backup is out of the loop while rsync is running. This code hasn't changed in literally years. The changes for Bookworm (using /boot/firmware instead of /boot) and NVMe (allowing /dev/nvme0n1 in addition to /dev/mmcblk0) were tiny changes. They appear to work properly for Raspberry Pi 5/Bookworm installations other than yours.

Have you considered copying your SD card to an NVMe device using usb-boot instead of rpi-clone? I believe you've said the problem only occurs when running from an NVMe device, which begs the question of it being the source of the problem. With no other reports of problems and not seeing any problems here, I'm limited as to what I can do for you.

Statistics: Posted by RonR — Sat Mar 09, 2024 7:29 pm



Viewing all articles
Browse latest Browse all 5060

Trending Articles