Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: erwin on June 13, 2012, 09:20:51 AM
-
I use core 4.2 on a sd card over usb and would like to alter a xxxx.config file.
So I type sudo nano /mnt/sdxx/usr/........./xxxx.config and alter the file, but when I want
to save the file, there is a message saying cannot open this file to write.
What is to do , to save the file?
-
Hi erwin
The file you are trying to alter is actually a link to a file in a read-only filesystem. If you enter:
ls -l /usr/........./xxxx.config
the file listed to the right of the -> is where the link is pointing to. Here is an example of how to make it editable:
tc@box:~$ ls -l /usr/local/share/geany/filetypes.conf
lrwxrwxrwx 1 root root 54 Jun 6 09:49 /usr/local/share/geany/filetypes.conf -> /tmp/tcloop/geany/usr/local/share/geany/filetypes.conf
sudo rm /usr/local/share/geany/filetypes.conf
sudo cp /tmp/tcloop/geany/usr/local/share/geany/ /usr/local/share/geany/filetypes.conf
sudo nano /usr/local/share/geany/filetypes.conf
You would then add:
usr/local/share/geany/filetypes.conf
to your /opt/.filetool.lst file to make the change persist between boots.
At least that is what you would do with a standard TC installation. You however indicated /mnt/sdxx/usr/....
which suggests a scatter installation, so you may have to adapt these instructions to meet your needs.
-
thanks :)
it worked.
-
@erwin
It would be nice if you added [SOLVED] to the subject of your original post ;)
-
Done.