I have the image file from insightsat that I would like to shrink. The steps are:
sudo losetup --find --partscan OBC_backup_20231015.img
- Then look for the number of the loop:
lsblk
- Abre el loop con gparted
sudo gparted /dev/loop25
- Escribelo en una image
dd if=/dev/loop25 of=test.img
- Mira hasta donde es el ultimo bloque:
fdisk -l -u test.img
- Corrige el bloque que no está en su sitio:
dd if=test.img of=anotherTest.img count=13471743