Drewsif / PiShrink

Make your pi images smaller!
MIT License
3.5k stars 644 forks source link

shrink.sh: ERROR occurred in line 376: parted failed with rc 1 #282

Closed frankozland closed 1 month ago

frankozland commented 2 months ago

The dd is ext4 type. parted is not detecting ext4 - and instead passing "PRIMARY" in mkpart.
This wont work on ext4

primary is only used in logical or msdos partition types.

                     Create a new partition. **part-type may be specified only with msdos and dvh partition tables**, it should be one of "primary", "log‐
                     ical", or "extended".  name is required for GPT partition tables and fs-type is optional.  fs-type can be one of "btrfs", "ext2",
                     "ext3", "ext4", "fat16", "fat32", "hfs", "hfs+", "linux-swap", "ntfs", "reiserfs", "udf", or "xfs".
Drewsif commented 1 month ago

PiShrink works on the entire SD card, not just one partition. If you dd the whole disk it should work for you