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

Updated Nov 5, 2018

Reported In

Hardware

  • cRIO-9030
  • cRIO-9031
  • cRIO-9032
  • cRIO-9033
  • cRIO-9034
  • cRIO-9035
  • cRIO-9036
  • cRIO-9037
  • cRIO-9038
  • cRIO-9039
  • cRIO-9063
  • cRIO-9064
  • cRIO-9065
  • cRIO-9066
  • cRIO-9067
  • cRIO-9068
  • sbRIO-9651
  • sbRIO-9607
  • sbRIO-9627
  • sbRIO-9637
  • myRIO-1900
  • myRIO-1950
  • cDAQ-9132
  • cDAQ-9133
  • cDAQ-9134
  • cDAQ-9135
  • cDAQ-9136
  • cDAQ-9137
  • CompactRIO Controller

Software

  • LabVIEW Real-Time Module
  • Measurement & Automation Explorer (MAX)

Operating System

  • NI Linux Real-Time

Issue Details

  • 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, complete the following steps:
 
  1. Access your controller remotely and remove any unneeded files or logs.
  2. If the controller has a safe mode option, boot the controller in safe mode by using the reset button or dip switches. Consult the 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.
  3. If the controller still gives you this error when trying to format in safe mode, try with another computer.
  4. 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:
 

WAS THIS ARTICLE HELPFUL?

Not Helpful