Here I tried to make an image from a virgin RPi-buster image (2021-05-07-raspios-buster-armhf.img) modified to include the image-backup file in a user folder.
I used a SD card 32GB formatted to ext4 and inserted and mounted to /mnt/usb1
But an error occured, see below. What could be the reason?Code:
pi@raspberrypi:~/bin $ sudo ./image-backupImage file to create? /mnt/usb1/image.imgInitial image file ROOT filesystem size (MB) [4627]? Added space for incremental updates after shrinking (MB) [0]? Create /mnt/usb1/image.img (y/n)? yStarting full backup (for incremental backups, run: ./image-backup /mnt/usb1/image.img)rsync: write failed on "/tmp/img-backup-mnt/opt/vc/src/hello_pi/hello_video/test.h264": Read-only file system (30)rsync: chgrp "/tmp/img-backup-mnt/opt/vc/src/hello_pi/hello_video/.test.h264.xJT9Wb" failed: Read-only file system (30)rsync: rename "/tmp/img-backup-mnt/opt/vc/src/hello_pi/hello_video/.test.h264.xJT9Wb" -> "opt/vc/src/hello_pi/hello_video/test.h264": Read-only file system (30)rsync error: error in file IO (code 11) at receiver.c(374) [receiver=3.1.3]Unable to create backup
A "Read-only file system" error is often an indication that the destination storage device is failing. Have you tried using something other than the 32 GB SD card as the destination of the backup? I would suggest using a known good USB flash drive formatted ext4.
Statistics: Posted by RonR — Sun Jan 12, 2025 6:52 pm