Homebridge-Image mittels pishrink.sh verkleinern
Hallo zusammen
meine Homebridge auf dem RAspi 4 läuft mit einer 32GB SD-Karte.
Nun wollte ich das Image mit pishrink verkleinern. Jedochj kriege ich Fehler
gleich am Anfang der Procedure:
-----------
root@Kodi:/media/root/DISK111# pishrink.sh
pishrink.sh v0.1.2
pishrink.sh: Gathering data ...
Skipping autoexpanding process...
pishrink.sh: Checking filesystem ...
rootfs: recovering journal
rootfs: Clearing orphaned inode 2053 (uid=33, gid=33, mode=0100666, size=0)
rootfs: Inodes that were part of a corrupted orphan linked list found.
rootfs: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)
pishrink.sh: Filesystem error detected! ...
pishrink.sh: Trying to recover corrupted filesystem ...
e2fsck 1.46.2 (28-Feb-2021)
rootfs contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Inodes that were part of a corrupted orphan linked list found. Fix? yes
Inode 151646 was part of the orphaned inode list. FIXED.
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Free blocks count wrong (6545259, counted=6535428).
Fix? yes
Free inodes count wrong (1817877, counted=1817863).
Fix? yes
rootfs: ***** FILE SYSTEM WAS MODIFIED *****
rootfs: 119225/1937088 files (0.2% non-contiguous), 1191292/7726720 blocks
resize2fs 1.46.2 (28-Feb-2021)
pishrink.sh: Shrinking filesystem ...
resize2fs 1.46.2 (28-Feb-2021)
Resizing the filesystem on /dev/loop0 to 1142670 (4k) blocks.
Begin pass 2 (max = 490013)
Relocating blocks XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Begin pass 3 (max = 236)
Scanning inode table XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Begin pass 4 (max = 26454)
Updating inode references XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The filesystem on /dev/loop0 is now 1142670 (4k) blocks long.
pishrink.sh: Shrinking image ...
pishrink.sh: Shrunk 8GB.img from 30G to 4.7G ...
-----------------------------
Das Image wir erstellt nur kann ich es nicht verwenden. Kopiere ich das Image auf eine 8GB SD-Card so meckert
der RASPI-Imager bei der Verifizierung nach dem copieren. Die SD-Karte läßt sich auch im Raspi nicht mehr lesen - d.h. der Bootvorgang
findet nicht statt.
Hat vielleicht jemand eine Idee ?
Wie gesagt die 32GB SD-Karte läuft wunderbar im Raspi
LG Roger