Error While Reading From the Local Disk When Formatting Real-Time Target

Updated Jan 12, 2024

Reported In

Hardware

  • cDAQ-9132
  • cDAQ-9133
  • cDAQ-9136
  • CompactRIO Controller
  • CompactRIO Single-Board Controller
  • myRIO Student Embedded Device
  • NI ELVIS III

Software

  • LabVIEW Real-Time Module

Operating System

  • NI Linux Real-Time

Issue Details

  • My cRIO has stopped working and has gone into safe mode.
  • When I try to format my Linux-based Real-Time target in Measurement & Automation Explorer (MAX), I get the following error message:

Error while reading a file from the local disk. The file may be corrupt or not present​.

 

 

  • When I try to apply an image to my controller using the System Configuration API or when I use the RAD Utility, it returns the following error message:

Error -2147467259 occurred at nisyscfg.lvlib:Set System Image (Folder).vi:2060001
 

 

  • When I try to deploy my LabVIEW Real-Time application to my NI Linux Real-Time controller, I see an error regarding file permissions.
  • Upon attempting to update the firmware version of one of my NI Linux Real-Time Controllers it never completed the update (after waiting approximately 15 minutes) which led to this error:
Software download in progress. Please wait until the current download completes before attempting this action.

 

Solution

This error often happens because the target's disk space is full. To mitigate this behavior, please try the following steps:
 
  • If the controller has a safe mode option, boot the controller in safe mode by using the reset button or dip switches. Consult your controller's user manual on how to interpret the behavior of the Status LED, and how to set the controller to boot in safe mode.
  • If the controller still gives you this error when trying to format in safe mode, try with another computer if possible.
  • Access your controller remotely and remove any unneeded files or logs .
  • Format the target from the target's console by accessing the shell on your controller and running one of the following commands while in safe mode and reboot. Review the Real-Time Controllers and Real-Time Operating System Compatibility table for more information about your device's processor type.

 

For ARM-based (32-bit) targets:
nisystemformat -f -t ubifs
nisystemformat -f -c -t ubifs
reboot

 
For Intel-based (64-bit) targets:
nisystemformat -f -t ext4
nisystemformat -f -t ext4 -c
reboot

These commands will reset both the run mode and configuration partitions of your target. It will delete all files stored on your controller, but should allow you to reinstall software to your target using MAX or apply an image to your target using the System Configuration API.

Additional Information

You can check your disk space by looking at the System Resources section on the device’s System Settings tab in MAX. The Primary Disk Free Space will have a value below 5 MB if the controller’s disk space is full, as shown below: