Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add tune2fs reserved block count? #295

Open
theflyingape opened this issue Nov 7, 2024 · 0 comments
Open

add tune2fs reserved block count? #295

theflyingape opened this issue Nov 7, 2024 · 0 comments

Comments

@theflyingape
Copy link

I may be missing something critical, but here's my ask:

When pishrink.sh creates a new target image filesystem for optimizing and shrinking, can it allow passing a parameter for a reserve block count, i.e., tune2fs -r $(( $BLOCKS * 1024 )) and bypass mkfs default 5% overhead?

With larger SD cards of 256G, 512G and 1T becoming more mainstream, 5% is a LOT of space that can't be immediately used for data when unpacking it onto a new target card.

For example, on a 256G card with 5% reserved, I have less 1G available to work with. I set reserved blocks to $((64 * 1024)) and now have 12G free. If I load another 10G on it afterward, then pishrink.sh -avZ, I can't restore it to a same size SD card.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant