As we work more and more with Photon OS, we encounter typical system administrator tasks, but are used to Debian or Ubuntu.
So here comes a guideline to resize the Photon OS system disk (first disk of the virtual machine). Its pretty simple and straightforward.
Hint: When the menu is greyed out, there is a snapshot active! You need to delete the snapshot to extend the disk.
echo 1 > /sys/class/block/sda/device/rescan
fdisk -l
tdnf update
tdnf install parted
parted commands:
resize2fs /dev/sda2
All done and the partition is resized and fully usable. You can check using df -h