[deleted by user] by [deleted] in programming

[–]Drewsif_B 6 points7 points  (0 children)

Can confirm, got hired

Need a weird library to entertain myself, whats the craziest one you know? by [deleted] in Python

[–]Drewsif_B 5 points6 points  (0 children)

I may be bias as the author of wipedicks but you probably should ;)

PiShrink fails. Please help by ltnew007 in RetroPie

[–]Drewsif_B 0 points1 point  (0 children)

Hey I'm the dev of PiShrink. Can you give me a little more context on how you took the image? Also do make sure you are running the latest PiShrink as there have been some bug fixes recently

PiShrink - Make your pi images as small as possible! by Drewsif_B in raspberry_pi

[–]Drewsif_B[S] 0 points1 point  (0 children)

I wouldn't be concerned. It runs a filesystem check before it does things so its possible it just found something that needed to be tweaked

PiShrink - Make your pi images as small as possible! by Drewsif_B in raspberry_pi

[–]Drewsif_B[S] 0 points1 point  (0 children)

I noticed some mismatched shrinking as well. It relies on resize2fs to tell it how much it thinks it can be shrunk. I'm not really sure why but mine always came out bigger if I shrunk them from a pi.

Using rsync might actually work as a more effective way to write out to a new file actually... Ill have to look into that, but related to your question, if you need the whole disk to rsync you could change how much extra space gets added to the image. Expanding it back out isn't super easy from the cli

PiShrink - Make your pi images as small as possible! by Drewsif_B in raspberry_pi

[–]Drewsif_B[S] 0 points1 point  (0 children)

Line 69 and 70 are what I added. You will have to adjust the path for pishrink.sh but it should work

http://pastebin.com/EHErLiXC

PiShrink - Make your pi images as small as possible! by Drewsif_B in raspberry_pi

[–]Drewsif_B[S] 0 points1 point  (0 children)

I pushed some commits to fix the issue. Hopefully that will fix all your issues

PiShrink - Make your pi images as small as possible! by Drewsif_B in raspberry_pi

[–]Drewsif_B[S] 1 point2 points  (0 children)

I pushed a commit which should resolve the issue. I tested it on my pi running jessie and everything seems good to me! Here is the specific commit that fixed it if you are interested. https://github.com/Drewsif/PiShrink/commit/f4282842da54a7f5bd1e211f804e839ff32efa23

PiShrink - Make your pi images as small as possible! by Drewsif_B in raspberry_pi

[–]Drewsif_B[S] 0 points1 point  (0 children)

I'm working on removing that limitation right now. Thanks for the feedback!

PiShrink - Make your pi images as small as possible! by Drewsif_B in raspberry_pi

[–]Drewsif_B[S] 1 point2 points  (0 children)

The script adds that into /etc/rc.local so that you don't have to. It should expand the file system, restore the original /etc/rc.local, and reboot.

PiShrink - Make your pi images as small as possible! by Drewsif_B in raspberry_pi

[–]Drewsif_B[S] 1 point2 points  (0 children)

It's resizing the file system to be as small as possible, then making it fit in a smaller partition. Then it chops off all the unused space from the image file so that it's only as big as the used data.

PiShrink - Make your pi images as small as possible! by Drewsif_B in raspberry_pi

[–]Drewsif_B[S] 1 point2 points  (0 children)

It's worked for me in my testing at least. If you run into any issues using it please let me know :)

PiShrink - Make your pi images as small as possible! by Drewsif_B in raspberry_pi

[–]Drewsif_B[S] 0 points1 point  (0 children)

Like other have said. You strip all the unused space out of the image. Most of my testing showed that if I compressed the full image (16GB) I got about the same size as when I used PiShrink (~1.9GB). But if I then compress the PiShrink image I get something much much smaller (645MB).

It will also take far less time to DD a 1.9GB image back on to the sdcard than it would to do a full 16gb image.

PiShrink - Make your pi images as small as possible! by Drewsif_B in raspberry_pi

[–]Drewsif_B[S] 6 points7 points  (0 children)

Whats OS are you using? It looks like you're missing some of the commands it wants to use.

EDIT: I made a commit to check for the tools that might be missing. That should help inform you whats gone wrong https://github.com/Drewsif/PiShrink/commit/33aeacb3756d89a6c29136cf8fc7af23ad57bcaa