Code: Select all
ln -s /srv/ /mnt/srv
Code: Select all
ln -s /srv/ /mnt/srv
Code: Select all
/usr/local/bin/image-tools/image-backup /mnt/backup/raspi42023-02-01.img
rsync: write failed on "/tmp/img-backup-mnt/etc/fake-hwclock.data": 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
Code: Select all
# df -h
/dev/root 59G 3,5G 53G 7% /
devtmpfs 776M 0 776M 0% /dev
tmpfs 937M 0 937M 0% /dev/shm
tmpfs 937M 71M 866M 8% /run
tmpfs 5,0M 4,0K 5,0M 1% /run/lock
tmpfs 937M 0 937M 0% /sys/fs/cgroup
/dev/mmcblk0p1 253M 49M 204M 20% /boot
log2ram 100M 67M 34M 67% /var/log
192.168.1.101:/mnt/zfs_storage/backup/raspi4 20T 1,9T 18T 10% /mnt/backup
tmpfs 188M 0 188M 0% /run/user/1001
Code: Select all
sudo ./pishrink opencpn-ssd.img
Code: Select all
pishrink v0.1.2
pishrink gathering data
Error: /mnt/usb/opencpn-ssd.img unrecognosed disk label
pishrink: ERROR occured in line 281: parted failed with rc 1
pishrink: Possibly invalid image. Run 'parted opencpn-ssd.img unit B print' manually to investigate ...
Code: Select all
sudo parted opencpn-ssd.img unit B print
Code: Select all
ERROR: /mnt/usb/opencpn-ssd.img: unrecognsed disk label
Model: (file)
Disk /mnt/usb/opencpn-ssd.img: 812B/512B
Partition Table: unknown
Disk Flags:
Erik84750 wrote: ↑Sat Feb 04, 2023 4:43 pmBuster 64b, Raspberry 4B, 8GB.
An image was made from an SSD (250GB) used as boot disk (with Rufus). Copied that to a 500GB USB stick and mounted this in the RPi.
The image size is 244.198.585kB.
I copied the pishrink script to the USB stick, made it executable and launched (from the mount directory)Error shown:Code: Select all
sudo ./pishrink opencpn-ssd.img
The USB stick had been formatted to NTFS.Code: Select all
pishrink v0.1.2 pishrink gathering data Error: /mnt/usb/opencpn-ssd.img unrecognosed disk label pishrink: ERROR occured in line 281: parted failed with rc 1 pishrink: Possibly invalid image. Run 'parted opencpn-ssd.img unit B print' manually to investigate ...
What could be wrong?
AvJoe wrote: ↑Sat Feb 04, 2023 9:18 amAfter image-backup has been working for me ok for a few days, I'm now getting the following error trying to make a backup:
...Code: Select all
/usr/local/bin/image-tools/image-backup /mnt/backup/raspi42023-02-01.img rsync: write failed on "/tmp/img-backup-mnt/etc/fake-hwclock.data": 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
Any hint on where I could look for the root cause of this, please?
FYI: Starting a new, full backup works without issues.
Code: Select all
sudo ./image-shrink opencpn-ssd.img
Erik84750 wrote: ↑Sat Feb 04, 2023 11:07 pmHi RonR, this time I tried to shrink with the correct script of image-shrink.
Image from an SSD of 250GB, size: 244.198.585kB.
The script resides in the same folder as the image to be shrunk, on a 500GB USB stick, mounted to /mnt/usb.
The image-shrink is made executable.
When performingnothing happens, the cursor just moves on to the next line.Code: Select all
sudo ./image-shrink opencpn-ssd.img
What is wrong please?
Code: Select all
./image-backup backup.img
Code: Select all
./image-shrink backup.img
Code: Select all
cannot execute binary file Wrong executable file not executed
Code: Select all
sudo chmod u+x /mnt/usb/image-shrink
Erik84750 wrote: ↑Sun Feb 05, 2023 2:38 pmHi RonR, after succesfully executingas root user (from a SSD with 250GB capacity, 53.97GB space available of which 31.89GB is used by the Rpi) the result is an image of 31.3GB.Code: Select all
./image-backup backup.img
I am surprised that the image is only as large as the occupied space on the SSD and not the entire SSD size.
Erik84750 wrote: ↑Sun Feb 05, 2023 2:38 pmHowever, when performing image-shrink as root on this image asthe printout showsCode: Select all
./image-shrink backup.img
(literally, translated from Dutch).Code: Select all
cannot execute binary file Wrong executable file not executed
I haddone on the file.Code: Select all
sudo chmod u+x /mnt/usb/image-shrink
What has been done wrong?
Code: Select all
Inode 564627 extent tree (at level 1) could be shorter. Optimize? no
Erik84750 wrote: ↑Wed Feb 08, 2023 9:30 amDuring image-backup operation following lines appear several times:..with a different number each time.Code: Select all
Inode 564627 extent tree (at level 1) could be shorter. Optimize? no
When performing image-shrink on the previously made image (using image-backup) the same messages appear.
What does this mean? Does it need some action? Does it need remediation?
@RonR I have tried this, and it seems to be mounted when I check ls /mnt/srv because it returns the name of the drive as I named it in openmediavault - so I think it recognizes it, but Im still getting the same error of "-i does not begin with /mnt/ or /media/"
Elechtman wrote: ↑Fri Feb 10, 2023 2:37 am@RonR I have tried this, and it seems to be mounted when I check ls /mnt/srv because it returns the name of the drive as I named it in openmediavault - so I think it recognizes it, but Im still getting the same error of "-i does not begin with /mnt/ or /media/"
Any suggestions?
Code: Select all
image-backup -i /mnt/srv/test.img
Code: Select all
pi@raspberrypi:~$ cd /home/pi/bin
pi@raspberrypi:~$ ./image-backup
Code: Select all
image-backup
Code: Select all
/home/pi/bin/image-backup must be run as root user
Erik84750 wrote: ↑Fri Feb 10, 2023 5:18 amCurrently the only way I can run image-backup (which is made executable) isWhy can this not simply be ran asCode: Select all
pi@raspberrypi:~$ cd /home/pi/bin pi@raspberrypi:~$ ./image-backup
?Code: Select all
image-backup
Code: Select all
echo $PATH
Erik84750 wrote: ↑Fri Feb 10, 2023 5:18 amIf I try that from user root directory response isCode: Select all
/home/pi/bin/image-backup must be run as root user
Code: Select all
echo $PATH
Code: Select all
pi@raspberrypi:~$ sudo image-backup
Code: Select all
/home/pi/bin/image-backup must be run as root user
Code: Select all
pi@raspberrypi:~$ sudo ./image-backup
Code: Select all
root@raspberrypi:/home/pi# image-backup
Code: Select all
root@raspberrypi:/home/pi/bin# image-backup
Code: Select all
root@raspberrypi:/home/pi/bin# ./image-backup
Code: Select all
pi@raspberrypi:~/bin $ sudo ./image-backup
Code: Select all
sudo mv /home/pi/bin/image-backup /usr/local/bin/
sudo chown root:root /usr/local/bin/image-backup
sudo chmod 755 /usr/local/bin/image-backup
Erik84750 wrote: ↑Fri Feb 10, 2023 6:45 amif I runthen the reply isCode: Select all
pi@raspberrypi:~$ sudo image-backup
Code: Select all
/home/pi/bin/image-backup must be run as root user
Erik84750 wrote: ↑Fri Feb 10, 2023 6:45 amIf I runthen the screen returns "command not found".Code: Select all
pi@raspberrypi:~$ sudo ./image-backup
Erik84750 wrote: ↑Fri Feb 10, 2023 6:45 amIf I runthe screen returns "command not found".Code: Select all
root@raspberrypi:/home/pi# image-backup