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

Truncate SD Card Image #39

Open
frezik opened this issue Feb 22, 2016 · 1 comment
Open

Truncate SD Card Image #39

frezik opened this issue Feb 22, 2016 · 1 comment

Comments

@frezik
Copy link
Contributor

frezik commented Feb 22, 2016

I ran into an issue with flashing the SD card. I have a card that's sold as 8GB. However, storage manufacturers often play it fast and loose with sizes by advertising 1000 bytes to a kilobyte (and megabyte, etc.). This means the current EasyRaceLapTimer image of 7,948,206,080 bytes will not quite fit on the SD card (which fdisk -l reports as 7,746,879,488 bytes).

I was able to fix this by running the automatic image resizer script from:

http://sirlagz.net/2013/03/10/script-automatic-rpi-image-downsizer/

This brought the total size of the image down to 4,835,115,520 bytes. This is tantalizingly close to being able to fit on a 4GB SD card. As a tangentially related issue, perhaps a few hundred megabytes could be chewed off the installation? Doing apt-cache autoclean might be a good start.

I suggest the shrinking be done by default on future releases. In addition to the issue of questionable SD card sizes, it will make downloading and flashing quicker. The partition can be enlarged by the user to the full size of the card using raspi-config, as usual.

@NicoLoco
Copy link
Contributor

NicoLoco commented May 6, 2016

I have started an install on my Pi3 from the default Jessie Lite image, followed setup_guide.md and installed missing packages on the way. I also did the WiFi AP another way because Pi3 has built-in Wifi.
As a result the SD card image is about 2.5G !

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

2 participants