Skip to content

Increase disk size  #4

@southpolemonkey

Description

@southpolemonkey

Scenario

The pulled images only has 2G disk space which is set in qemu-img resize raspbian-lite.qcow2 +4G \, and get easily out of space after installing some apps.

pi@raspberrypi:/dev $ df --human-readable
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       1.5G  1.4G  4.2M 100% /
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   53M  200M  21% /boot
tmpfs            25M     0   25M   0% /run/user/1000

Changes I made

I increased the size to 10G in qemu-img resize raspbian-lite.qcow2 +10G \, but the newly built image has the same size as the 2G version.

raspbian.   10g                 8b2e42cc8522        4 minutes ago       8.14GB
hannseman/raspbian    latest              afb4152be6c6        8 weeks ago         8.14GB

Is there any other changes I need to make?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions