Back to feed
Dev.to
Dev.to
8/5/2026
Linxr | Part 9 — Dynamic Storage Expansion & Automatic resize2fs on Boot

Linxr | Part 9 — Dynamic Storage Expansion & Automatic resize2fs on Boot

Short summary

Linxr Part 9 explains how dynamic virtual disk expansion was implemented for Alpine Linux running in QEMU on Android. The root cause was that QCOW2 overlay expansion enlarged the block device but the ext4 filesystem never grew to fill it. A custom OpenRC init service runs resize2fs at boot, expanding the filesystem in milliseconds with zero data loss.

  • QCOW2 overlay grew block device but ext4 partition stayed at 1.4 GB
  • Custom OpenRC init service runs resize2fs before sshd at boot
  • resize2fs is a fast online no-op when disk is unchanged, expands instantly when larger

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more