We want to keep giving and improving our machine for you! We thought, since it was the season of giving, now is the perfect time to gift you with more file space on your Onefinity CNC!
The article describes how to expand the Onefinity Raspberry Pi image to utilize all the available free space on the SD card. The original SD images were designed to fit a 4gb SD card. Onefinity uses 32gb SD cards, so we can increase the available storage amount from 1.1gbs to 26gbs!
- Onefinity CNC Controller
- USB Keyboard
PLEASE NOTE: It is VERY important to type the following commands EXACTLY as shown. Make sure to include the spaces as well. Even ONE character missing will cause this procedure to fail. Do not perform this expansion if you are uncomfortable with these instructions.
(starting in 2021, we’ll be performing this procedure in house before shipping future machines)
Connect the touchscreen and start up the controller as usual. This operation MUST be performed on the touch screen. It will not work if you try to perform it via a network.
Plug in the USB keyboard to one of the free USB ports on the back of the controller.
After the controller boots up, you should see the machine control interface.
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.
Type the command “df -h” (notice there is a space between the f and the -) 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.
- Type the command “sudo raspi-config --expand-rootfs” (again, there is a space between g and -) into the terminal. Note the two dashes before the second parameter. You will be prompted for the root password (default is onefinity).
- Now we will reboot the Raspberry Pi to take advantage of the new partition. Type “sudo reboot” to reboot the controller.
- 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.