-
Notifications
You must be signed in to change notification settings - Fork 642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V24.10.23 - won't work on Pi 32bit Bookworm ? #294
Comments
PS - I've since manually created rc.local.bak - that didn't make any difference. |
Can you attach your logs? Im guessing one of the external utilities we call is hanging with the network drive. Does it work when the image is local? |
Thanks for the swift response. |
there should be a |
So i have run a few tests today. Noting that the exact same version on Buster writes and works on the same NAS. pishrink_nas to nas file copy.log |
Is it possible to spin up a version that will do enhanced logging with a -D switch? |
I've been scratching my head on this for a few hours now.
I have a number of Pi's running various editions of Raspbian, most of them use a pibackup.sh and that launches pishrink.sh
In order to try and unravel the problem, I have broken down the two scripts and run them independently.
Using 2 Pis as examples, one running Bookworm, the other Buster. Both mount a network drive and can create .imgs there.
The Pi that is running Buster quite happily shrinks the image (in this example compressing with Gzip too.):
_pi@Coop:~ $ sudo pishrink.sh -advz /media/backup/pi3btest/2024-11-03.img /media/backup/pi3btest/test4.img
pishrink.sh: Creating log file /home/pi/pishrink.log
PiShrink v24.10.23 - https://github.com/Drewsif/PiShrink
_pishrink.sh: Copying /media/backup/pi3btest/2024-11-03.img to /media/backup/pi3btest/test4.img...
pishrink.sh: Gathering data
Creating new /etc/rc.local
pishrink.sh: Checking filesystem
rootfs: 117373/904960 files (0.2% non-contiguous), 932718/3652608 blocks
resize2fs 1.44.5 (15-Dec-2018)
pishrink.sh: Shrinking filesystem
resize2fs 1.44.5 (15-Dec-2018)
Resizing the filesystem on /dev/loop0 to 934619 (4k) blocks.
Begin pass 2 (max = 115452)
Relocating blocks XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Begin pass 3 (max = 112)
Scanning inode table XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Begin pass 4 (max = 13854)
Updating inode references XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The filesystem on /dev/loop0 is now 934619 (4k) blocks long.
pishrink.sh: Zeroing any free space left
pishrink.sh: Zeroed 157M
pishrink.sh: Shrinking partition
pishrink.sh: Truncating image
pishrink.sh: Using pigz on the shrunk image
/media/backup/pi3btest/test4.img to /media/backup/pi3btest/test4.img.gz
pishrink.sh: Shrunk /media/backup/pi3btest/test4.img.gz from 15G to 1.2G
However, the 32 bit Bookworm version hangs at the gathering data point and doesn't move on:
pi@pi3btest:~ $ sudo pishrink.sh -v /media/backup/pi3btest/2024-11-03.img /media/backup/pi3btest/test3.img
PiShrink v24.10.23 - https://github.com/Drewsif/PiShrink
pishrink.sh: Copying /media/backup/pi3btest/2024-11-03.img to /media/backup/pi3btest/test3.img...
pishrink.sh: Gathering data
There's nothing more added to the log file either if i use the -d switch.
The install was completed using the text from your Linux Installation instructions.
All the prerequsites (parted gzip pigz xz-utils udev e2fsprogs) are all listed in their own folders when running a sudo which:
eg:
pi@pi3btest:~ $ sudo which parted
/usr/sbin/parted
It feels like an issue creating the new /etc/rc.local?
There's certainly no .bak verison of it on the bookworm unit
Bookworm:
Buster:
Note that this is not a recent file creation?
I'm at a loss now - do you have any suggestions?
The text was updated successfully, but these errors were encountered: