Why creating a file in etc folder is not allowed?

1.9k Views Asked by At

I have a system builder project to make a QNX OS image that needs to be accomplished. The problem is I can't create files or folders in etc folder. When I try to do that I get "folder creation error! reason: function not implemented" or "no such file or directory". I haven't build this myself. Where should I look for to solve it? etc permission is 777.

1

There are 1 best solutions below

2
Dmitry Tabakov On

Default QNX image has Image Filesystem (the link is weird, just find "image silesystem" there) and it doesn't support folders and files creation.

For your perposes you can use:

  • RAM fs (/dev/shmem, clears on reboot)
  • Flash devices (USB key, eMMC)
  • Network fs
  • devb like SATA

To work with exactly /etc dir you can create virtual flash from RAM and mount it as /etc. Use devf-ram in this case