Blog

Increase Photon System Disk

I use the minimal Photon distribution and it seems the system disk is only around 8GB.

That fills up quickly when installing some humongous Docker containers :/

List usage

1
df -h

Check available space on disk

1
fdisk -l

Install Diskpart

tdnf install parted

Diskpart

1
2
parted
print free

Increase size

1
2
3
resizepart
2
100000
1
2
print free
quit

Reboot

1
reboot

Resize filesystem

1
resize2fs /dev/sda2
1
df -h

And a reboot just for good measure