I use the Photon minimal distribution quite extensively. It does come with a tiny disk size of 8GB. This is a writeup of the detailed instructions of this original post: https://communities.vmware.com/thread/521416.
Install gpart
tdnf install gptfdisk -y |
Run it on the disk
gdisk /dev/sda |
List the root partition’s info and copy the unique GUID
List the root partition’s info:
Command (? for help): i |
Partition number (1-2): 2 |
Partition number (1-2): 2 |
Now delete the root partition
Command (? for help): d |
Now make a new partition with the default parameters. It should fill all available space with the defaults
Command (? for help): n |
Enter the partition’s new unique GUID
Copy the GUID from before to the new partition you just created
x<enter>c<enter>2<enter>DB3788E4-5613-4E7A-820B-15E269340E29<enter> |
w<enter>y<enter> |
Resize filesystem
Reread the partition table and resize the partition:
partx -u /dev/sda |
Check your new partition size:
df -h |