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

resize filesystem to full size on first boot #159

Open
rroohhh opened this issue Aug 4, 2020 · 1 comment
Open

resize filesystem to full size on first boot #159

rroohhh opened this issue Aug 4, 2020 · 1 comment
Labels
enhancement os issues that concern everything actually used while running the camera

Comments

@rroohhh
Copy link
Member

rroohhh commented Aug 4, 2020

Probably using systemd-growfs

@rroohhh rroohhh added enhancement linux os issues that concern everything actually used while running the camera and removed linux labels Aug 4, 2020
@herbertp
Copy link
Member

While I consider this a good idea, I'm not sure we should have 'one' filesystem and grow that to the full size ... why?

SD cards vary significantly in size, even for SD cards marketed as 16GB or 32GB, so if you take three different 16GB SD cards, you will likely end up with three different sizes.
This results in a lot of grieve when trying to backup, restore or simply copy the entire SD image. Some SD cards even get very slow at the end of the available space.

I see some partial solutions for this problem:

  1. have some special command to 'compact' the filesystem again before you make a copy/do a backup.
  2. have a separate, non critical partition which can be considered 'temporary storage' and doesn't need to be backed up/restored and/or can be recreated if incomplete, etc.
  3. make sure to leave some empty space and/or resize to a 'known good' size smaller than the actual SD size, e.g. 14GB for a 16GB card, etc.
  4. have special tools to create compact backups which are (mostly) platform independent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement os issues that concern everything actually used while running the camera
Projects
None yet
Development

No branches or pull requests

2 participants