Drewsif / PiShrink

Make your pi images smaller!
MIT License
3.51k stars 645 forks source link

Raspbian not completly booting - No GUI underscore blinking #269

Closed davidzfr closed 1 month ago

davidzfr commented 1 year ago

Hi, I've the same problem as issue 73.

pishrink script was used without any option. No error message. Size was clearly reduced. shrinked image was put back on a another SD card with win32diskimager.

Raspbian 12 desktop 32 bits. No GUI, no access to desktop on the screen. Only an underscore blinking at the top left corner of the screen. I can access to the Rpi through ssh. The config.txt is exactly the same.

Any Idea ? Regards, David

Originally posted by @davidzfr in https://github.com/Drewsif/PiShrink/issues/73#issuecomment-1823929684

davidzfr commented 1 year ago

With the same SD card... I've tried with a Raspbian 11 - 64 bits -> OK I've tried with an another script (shrinkwrap) on Raspbian 12 - 32 bits -> same problem as PiShrink

Drewsif commented 12 months ago

Can you run the latest version and post the output here?

davidzfr commented 12 months ago

Hi, I've just tried again with the last 1.04 version. Sorry but the problem is still present with the 32bits version of Raspbian 12.

pishrink.sh v0.1.4 pishrink.sh: Gathering data ... Line 311 beforesize: 30G parted_output: BYT; /home/vboxuser/Rpi/RPI_Moniteur_Salle_Sport_32bits.img:31457280000B:file:512:512:msdos::; 1:4194304B:541065215B:536870912B:fat32::lba; 2:541065216B:31457279999B:30916214784B:ext4::; partnum: 2 partstart: 541065216 parttype: primary tune2fs_output: tune2fs 1.46.5 (30-Dec-2021) Filesystem volume name: rootfs Last mounted on: / Filesystem UUID: 3c215345-c59c-4a79-941a-ab121e090a42 Filesystem magic number: 0xEF53 Filesystem revision #: 1 (dynamic) Filesystem features: has_journal ext_attr resize_inode dir_index filetype extent flex_bg sparse_super large_file dir_nlink extra_isize metadata_csum Filesystem flags: unsigned_directory_hash Default mount options: user_xattr acl Filesystem state: clean Errors behavior: Continue Filesystem OS type: Linux Inode count: 1866480 Block count: 7547904 Reserved block count: 377395 Free blocks: 6181366 Free inodes: 1668741 First block: 0 Block size: 4096 Fragment size: 4096 Reserved GDT blocks: 282 Blocks per group: 32768 Fragments per group: 32768 Inodes per group: 8080 Inode blocks per group: 505 Flex block group size: 16 Filesystem created: Tue Oct 10 11:32:08 2023 Last mount time: Mon Nov 20 10:56:24 2023 Last write time: Thu Jan 1 11:00:06 1970 Mount count: 28 Maximum mount count: -1 Last checked: Tue Oct 10 11:32:08 2023 Check interval: 0 () Lifetime writes: 21 GB Reserved blocks uid: 0 (user root) Reserved blocks gid: 0 (group root) First inode: 11 Inode size: 256 Required extra isize: 32 Desired extra isize: 32 Journal inode: 8 Default directory hash: half_md4 Directory Hash Seed: 25ef0901-c651-489c-8f2a-7f6b180af328 Journal backup: inode blocks Checksum type: crc32c Checksum: 0xdbedd9e1 currentsize: 7547904 blocksize: 4096 Creating new /etc/rc.local pishrink.sh: Checking filesystem ... rootfs: 197740/1866480 files (0.1% non-contiguous), 1366539/7547904 blocks resize2fs 1.46.5 (30-Dec-2021) Line 331 currentsize: 7547904 minsize: 1510259 Line 339 extra_space: 6037645 Line 346 minsize: 1515259 pishrink.sh: Shrinking filesystem ... resize2fs 1.46.5 (30-Dec-2021) Resizing the filesystem on /dev/loop14 to 1515259 (4k) blocks. Begin pass 2 (max = 137197) Relocating blocks ----------------------------------------XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Begin pass 3 (max = 231) Scanning inode table ----------------------------------------XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Begin pass 4 (max = 19695) Updating inode references ----------------------------------------XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX The filesystem on /dev/loop14 is now 1515259 (4k) blocks long.

Line 365 partnewsize: 6206500864 newpartend: 6747566080 pishrink.sh: Shrinking image ... Line 390 endresult: 6747566592 Line 427 aftersize: 6.3G pishrink.sh: Shrunk RPI_Moniteur_Salle_Sport_32bits.img from 30G to 6.3G ...

Drewsif commented 1 month ago

My best guess is it's this issue https://github.com/Drewsif/PiShrink/issues/255. I don't see anything weird in the output. Sorry, hopefully I can get something to address that soon