Skip to content

Expand VMware Storage for FydeOS

Last Updated: 2024-03-13

Prerequisites: This guide requires shell access to your FydeOS installation, assuming developer mode is already enabled. If modifications to system files are necessary, you will also need to disable root file system verification.

This tutorial provides a detailed, step-by-step walkthrough for users looking to expand the storage capacity of FydeOS running on VMware. For those who prefer a visual demonstration, we also offer a tutorial video.

Expand FydeOS Storage on VMware

  1. Increasing Virtual Disk Capacity in VMware Settings

    This initial step involves adjusting your VMware virtual machine settings to allocate additional storage space to your FydeOS virtual disk. The procedure varies slightly depending on whether you are using Windows or macOS as your host operating system. Please select your operating system below for specific instructions:

    For Windows Hosts

    1. Power Off FydeOS: In VMware, right-click on your FydeOS virtual machine in the library and select “Power” > “Shut Down.”

      VMware interface showing the "Power" menu with "Shut Down" selected.

    2. Access Virtual Machine Settings: Right-click on the FydeOS virtual machine again and select “Edit virtual machine settings.”

      VMware interface showing the option to "Edit virtual machine settings" for a FydeOS VM.

    3. Navigate to Hard Disk Expansion: In the Virtual Machine Settings window, select “Hard Disk” and then click the “Expand” button or option.

      VMware Virtual Machine Settings window, highlighting the "Hard Disk" option and the "Expand" functionality.

    4. Specify New Disk Capacity: Enter your desired new storage capacity for the virtual disk in the provided field.

      VMware Virtual Machine Settings window, showing the field to input the new virtual disk capacity.

    5. Apply Changes: Click ‘Apply’ or ‘OK’ to confirm and finalize the virtual disk expansion.

      VMware Virtual Machine Settings window, showing the "Apply" button to finalize disk expansion.

  2. Opening the Terminal in FydeOS

    To expand the partition within FydeOS to utilize the newly allocated space, you will need to access the command-line terminal. The method for opening crosh differs slightly based on your host operating system.

    For Windows Hosts

    Once FydeOS has successfully booted up, press Ctrl+Alt+T simultaneously. This will open a new crosh tab directly within the Chromium browser in FydeOS.

    Accessing the Shell Environment

    Within the crosh tab, type the command shell and press the Enter key. This will transition you from the crosh environment to a full Linux shell. Crosh terminal in FydeOS showing the command "shell" being entered.

  3. Identifying the Target Partition for Expansion

    In the shell, type lsblk and press Enter to display a list of all available block storage devices. This command provides information about your disks and partitions. Shell terminal in FydeOS displaying the output of the lsblk command, listing block devices. In a default FydeOS on VMware setup, the primary stateful partition is typically identified as nvme0n1p1. This is the partition we need to expand to utilize the newly available disk space.

  4. Executing the Partition Expansion Script

    With the target partition (nvme0n1p1) identified, execute FydeOS’s built-in partition expansion script. This script is designed to automatically expand the stateful partition to fill the entire available disk space.

    Enter the following command in the shell and press Enter:

    Terminal window
    sudo expand-partition.sh --dst /dev/nvme0n1p1

    In some cases, you might encounter an error message stating: The system is not running from removable disk. If this occurs, you can force the script to run by appending the -f flag:

    Terminal window
    sudo expand-partition.sh --dst /dev/nvme0n1p1 -f

    Shell terminal in FydeOS showing the command sudo expand-partition.sh --dst /dev/nvme0n1p1 being executed.

  5. Verifying Successful Storage Expansion

    After the script completes, navigate through the FydeOS settings to verify the expanded storage capacity. Go to “Settings” > “Device” > “Storage Management”.

    FydeOS Settings panel, navigating to "Device" and then "Storage Management" to display storage information.

    If the displayed capacity now reflects the increased size you configured in VMware, congratulations! You have successfully expanded the storage capacity of your FydeOS virtual machine on VMware.