Fyde OS Logo

Expand the capacity of FydeOS booted on a portable storage device

Last Update: 2024-03-13

The following guide or recipe requires shell access to your FydeOS installation, therefore developer mode is assumed to be enabled. If altering system file is required, you will also need to disable root file system verification.

When booting FydeOS from a USB-connected removable storage device, the system will automatically run an expansion script to fill the entire disk with the stateful partition. However, this feature is disabled for storage devices not recognised as "removable" at the firmware level, such as certain removable hard drives, to ensure data security. If necessary, you can manually execute the expansion script.

Warning! The following operations may lead to irreversible data loss. This feature is still under testing, and we cannot assume responsibility for any data loss or issues that may arise during installation. We also may not be able to provide immediate technical support. Proceed with caution! This guide assumes basic Linux command line proficiency. If you find the instructions difficult to follow, consider seeking assistance from knowledgeable friends or visit the FydeOS Community for help.

Step 1: Boot FydeOS via USB

Follow this tutorial to prepare and boot FydeOS on your target PC.

Step 2: Access the Terminal

Once the FydeOS graphical interface appears, press Ctrl + Alt + F2 on your keyboard. For some computers, like Apple Mac, you may need to press Fn + Ctrl + Alt + F2. This will switch the system to TTY command line mode. If needed, press Ctrl + Alt + F1 (or Fn + Ctrl + Alt + F1) to return to the graphical interface.

Step 3: System Login

In command line mode, FydeOS will prompt you for your username and password. Log in using the username chronos. By default, FydeOS does not require a password.

Step 4: Identify the Target Disk

Enter the command lsblk to view the list of currently loaded physical disks. The system typically displays physical disk devices as sdX, mmcblkX, and nvmeX. Based on the suggested disk space and the number of partitions (FydeOS has 12 partitions), identify the disk where FydeOS is currently running, such as sda. The following steps will use sda as an example.

Step 5: Execute the Expansion Script

Enter the following command:

sudo expand-partition.sh --dst /dev/sda1

If you see an error prompt like this: The system is not running from removable disk., you may append a -f flag to force the script to execute:

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

Step 6: Confirm Script Execution

Ensure that the script's output does not contain any errors and that the expansion operation has been completed successfully.

We use cookies to improve your browsing experience on our website, to analyse our website traffic, and to understand where our visitors are coming from.