Is it possible to expand the file system only to a certain amount?

I guess everyone is familiar with the following problem: You start with for e.g. an 8 GB sd card. Expand the file system and when you backup your sd card to another 8 GB sd card there are just a few MB missing. So you have to use a bigger one and so on.

There are a few but fairly complicated guides explaining how to shrink the partition using gparted.

But is it possible to limit the expanding of the file system (with raspi-config) during the initial set up? I would like to limit it to for e.g. size_of_sd_card-10 MB and never have to worry again about those missing block due to manufacturing variance.

If not, could someone link to a good resource to shrink the partition?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.