HomeAssistant - shrink a HAOS qcow2 filesystem 0 ▲ Terence Eden 1 hour ago · Tech · hide Mostly notes to myself, I hope they're helpful to you too! My HomeAssistant OS (HAOS) was originally thinly provisioned with a 30GB virtual disk stored in a qcow2 file. In theory, the file should only take up as much space as the virtual filesystem. In reality, it grows to accommodate the maximum size allowed. My HAOS was showing only 10GB used: But running ls -lh showed 32GB was allocated. To see the actual space on disk, I ran du -h haos.qcow2 which showed 28GB. As it is 2026, I can't afford to simply buy a few more TB of SSD, so here's how to manually shrink the file so it only takes up the space it needs. Within HomeAssistant's web interface, completely shut down. Settings → ⋮ → Restart Home Assistant → More options → Shut Down System Wait a few minutes for everything to finish shutting down. Within your host Operating System, backup your existing file! sudo cp haos.qcow2 haos.qcow2.bak Check the size of the disk: sudo qemu-img info haos.qcow2 Shrink (sparsify) the disk. sudo… Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town