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
list-usage.png

Check available space on disk

1
fdisk -l
check-available-space-on-disk.png

Install Diskpart

tdnf install parted

install-diskpart.png

Diskpart

1
2
parted
print free
diskpart.png

Increase size

1
2
3
resizepart
2
100000
1
2
print free
quit
increase-size.png

Reboot

1
reboot

Resize filesystem

1
resize2fs /dev/sda2
1
df -h

And a reboot just for good measure

resize-filesystem.png