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

Default disk space is too small? #39

Open
CamDavidsonPilon opened this issue Jun 23, 2021 · 3 comments
Open

Default disk space is too small? #39

CamDavidsonPilon opened this issue Jun 23, 2021 · 3 comments

Comments

@CamDavidsonPilon
Copy link

Hi, I'm new to docker and qemu, so I maybe missing something. When I follow your install instructions, specifically docker run -it lukechilds/dockerpi, and log into the Rpi, there is a very small disk space:

pi@raspberrypi:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       1.8G  1.2G  533M  69% /
devtmpfs        124M     0  124M   0% /dev
tmpfs           124M     0  124M   0% /dev/shm
tmpfs           124M  1.9M  122M   2% /run
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           124M     0  124M   0% /sys/fs/cgroup
/dev/sda1       253M   52M  201M  21% /boot
tmpfs            25M     0   25M   0% /run/user/1000

How can I give move space to the Rpi? I saw #18, but I don't understand how that solution is implemented.

@lupodellasleppa
Copy link

Hello,

I don't know about the default image, but you can try sudo raspi-config and under Advanced options you have Resize filesystem. You let it do its thing and after the next reboot it will have expanded to all available space (the size of the .img file).

If you intend to use a custom .img file, you first need to bring that to the size you want. You can use qemu-img for that.

Suppose you have your-raspios-img-file.img which is 2GB and you want to bring it up to 4GB:

qemu-img resize your-raspios-img-file.img 4G

Then you launch dockerpi with that image as filesystem and expand the filesystem using raspi-config, at next boot you'll have 4GB

@cdupont
Copy link

cdupont commented Sep 10, 2021

I tried to expand the image size using raspi-config. I go "Advanced Option"/"Expand File System" but it says "sda2 is not an SD card. Don't know how to expand"

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

3 participants