npaisnel wrote: ↑Tue Jun 08, 2021 7:13 pmStill does not offer a reduced size option..but does this time offer to add extra if a small image size is manually created.
Code: Select all
pi@homevision:~ $ blkid /dev/mmcblk0p1: SEC_TYPE="msdos" UUID="D2D9-C6B4" TYPE="vfat" PARTUUID="d704444e-01" /dev/mmcblk0p2: UUID="9b77c019-7802-416f-81e7-267560473405" TYPE="ext4" PARTUUID="d704444e-02" pi@homevision:~ $ cd /usr/bin pi@homevision:/usr/bin $ sudo ./image-backup Image file to create? /media/pi/2f41b0ce-44b2-4f63-8080-862574e2d6fc/210608-RPi2_HV-GUI-HAB.img Initial image file ROOT filesystem size (MB) ? 1800 Added space for incremental updates after shrinking (MB) ? Create /media/pi/2f41b0ce-44b2-4f63-8080-862574e2d6fc/210608-RPi2_HV-GUI-HAB.img (y/n)? y
I think you're confused. image-backup does not utilize compression and cannot make the resulting image file smaller than the actual filesystem space used.
It appears you're loading Raspberry Pi OS Desktop onto an 8GB SD card. The used space was approximately 4.134 GB. You cannot stuff 4.134 GB into a 1.8 GB image file. If you try, you will get (this was on an 8GB SD card loaded with Raspberry Pi OS Desktop):
Code: Select all
root@raspberrypi:~# ./image-backup Image file to create? /mnt/xxx.img Initial image file ROOT filesystem size (MB) ? 1800 Added space for incremental updates after shrinking (MB) ? Create /mnt/xxx.img (y/n)? y Starting full backup (for incremental backups, run: ./image-backup /mnt/xxx.img) rsync: write failed on "/tmp/img-backup-mnt/usr/lib/python2.7/dist-packages/jinja2/visitor.pyc": No space left on device (28) rsync error: error in file IO (code 11) at receiver.c(374) [receiver=3.1.3] Unable to create backup