Re: Cant edit files in /usr/local/bin/IMS_Modules/podCast/ Why?
:?: hi, I'm trying to edit some files in this directory /usr/local/bin/IMS_Modules/podCast/scripts to load my own podcasts.
1) login with telnet and user "root"
2) uses vi to edit a podcast xml
3) try to save
4) get the error, that file is read only
how can i change this files?
i use the latest beta software for european mini (r2115)
THANKS for an anser
You are trying to make changes to a squashfs filesystem which is read-only. The only way you can do what you are trying to do is to overmount the /usr/local/bin/IMS_Modules/podCast/scripts directory somewhere writable ie: usb stick or /usr/local/etc. Here's what you need to do assuming you have the space on the /usr/local/etc directory if not you can always use device connected to the usb port (drive,stick).
1) First you need to copy your scripts directory to somewhere writable:
# cp -r /usr/local/bin/IMS_Modules/podCast/scripts/ /usr/local/etc/
2) Second you need to overmount the newly copied directory to /usr/local/bin/IMS_Modules/podCast/scripts/ so that they become one and the same.
# mount -o bind /usr/local/etc/scripts /usr/local/bin/IMS_Modules/podCast/scripts/
Now the content of your script directory should be writable. One other issue that you may have is that I believe that some of the scripts are actually encoded hence they might need to be decrypted before you can edit them ?????? not 100% sure on that.
If the previous commands worked for you and you are able to edit the scripts then you should edit your /usr/local/etc/rcS file so that the overmount is process everytime you boot up your POHD. Just add those two lines at the end of the rcS file.
mount -o bind /usr/local/etc/scripts /usr/local/bin/IMS_Modules/podCast/scripts/
if you are using the /usr/local/etc directory use sleep5; sleep 60 if you are using something attached to the USB port.