Drewsif / PiShrink

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

[Question]: Detect last sector of used memory #290

Closed hasenradball closed 1 month ago

hasenradball commented 1 month ago

Hi,

I wanted to ask you how you detect the last sector or Byte which is used, to be able to remove the unused Bytes.

Point is I have the problem, that I use a 256 GB ssd for pi and don‘ t want to make an image of the whole ssd. When only 18 GB of the disk is used.