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.

1) Increase the virtual disk

Resize Photon OS system disk

Hint: When the menu is greyed out, there is a snapshot active! You need to delete the snapshot to extend the disk.

2) Rescan the SCSI Bus

echo 1 > /sys/class/block/sda/device/rescan

3) check the new disk size using

fdisk -l

check disk size

4) Install parted

tdnf update

tdnf install parted

Install parted

5) Resize the partition

Resize Photon OS partition

parted commands:

  1. parted /dev/sda
  2. print
  3. resizepart 2 100%
  4. quit

6) Resize the filesystem

resize2fs /dev/sda2

All done and the partition is resized and fully usable. You can check using df -h


Save energy without reducing VM performance in your VMware vSphere cluster
16 August 2022
Over the last couple of decades energy consumption went up massively in every data center and while the…
Metrics & Logs support for IoT - Bringing Secure Monitoring and Logging to the Edge
7 July 2022
Simple uptime monitoring for Internet-of-Things (IoT) is well-known and requires knowing if the devices are up and running.…
Monitoring Azure SQL Managed Instance with Opvizor Metrics & Logs
17 January 2022
When you have critical applications and business processes that rely on Azure resources, it's critical to keep an…

White Paper — Registration

You will receive the research paper by mail.

Codenotary — Webinar

White Paper — Registration

Please let us know where we can send the whitepaper on Codenotary Trusted Software Supply Chain. 

Become a partner

Start Your Trial

Please enter contact information to receive an email with the virtual appliance download instructions.

Start Free Trial

Please enter contact information to receive an email with the free trial details.

Subscribe to our newsletter