top of page

Expanding the Raspberry Pi File System

The article describes how to expand the OneFinity Raspberry Pi image to utilize all the available free space on the SD card.

Materials required:

  • OneFinity CNC Controller

  • USB Keyboard

  • Touchscreen


1. Connect the touchscreen and start up the controller.

2. Plug in the USB keyboard to one of the free USB ports on the back of the controller.

3. After the controller boots up, you should see the machine control interface.


4. Using the keyboard, hold down the Control key and press the "t" key followed by the "c" key.  (Control-t, Control-c) This should open up a new terminal window.

5. Type the command "df -h" into the terminal to see the disk usage (don't type the quotes).  The screenshot below shows the output of the command.  In this case, the file system (/dev/root) is 4GB in size and has 1.1GB available but we have a 32GB SD card so we can expand the file system to take advantage of the extra space.


6. Type the command "sudo raspi-config --expand-rootfs"  into the termal.  Note the two dashes before the second parameter.  You will be prompted for the root password (default is onefinity).


7. Now we will reboot the Raspberry Pi to take advantage of the new partition.  Type "sudo reboot" to reboot the controller.


8. After the controller restarts you can check the new disk usage by opening a terminal (Control-t, Control-c) and typing the command "df -h".  We now have 26GB free space available.  Return to the controller interface with Control-t, Control-t.

bottom of page