Home
Support

Knowledge Base

BSPs and drivers
Community resources
Product documentation
Questions?
Contact us

Unable to create a folder or file in the target board
 
________________________________________________________________________

Applicable Environment
________________________________________________________________________
  • Topic: Unable to create a folder or file in the target board
  • SDP: 8.0.0, 7.1.0, 7.0.0, 6.6.0, 6.5.0, 6.5.0SP1
  • Target: Any supported target
________________________________________________________________________

Issue
________________________________________________________________________

Creating a directory or a file on a QNX target fails with Function not implemented or read-only file system.

Example:

# mkdir /var/x
mkdir: /var/x: Function not implemented

________________________________________________________________________

Solution
________________________________________________________________________

If you get this error then the problem is likely that /var is a link to the /tmp directory and /tmp is owned by the QNX kernel (procnto) RAM disk /dev/shmem. The procnto RAM disk has limited file system features.

Another problem can be that /var on the target is in the IFS. The IFS is a read-only boot image that represents the containing files as a file system on a system running QNX.

The solution for both cases is to mount a read/write file system with full POSIX functionality such as the qnx6 filesystem. The file system must contain the directory name that also exists in the IFS before it is mounted, i.e.the /var directory in the example above.

See mkqnx6fs and mkqnx6fsimg in the QNX docs on how to create a file system on a disk.

See also solution 730 "Check mount point of a file".

________________________________________________________________________
NOTE: This entry has been validated against the SDP version listed above. Use caution when considering this advice for any other SDP version. For supported releases, please reach out to QNX Technical Support if you have any questions/concerns.
________________________________________________________________________


Related Attachments
 None Found





Please contact us with your questions or concerns.