Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: MrToga on April 26, 2022, 05:58:19 AM

Title: read only file system
Post by: MrToga on April 26, 2022, 05:58:19 AM
Hello guys,

I have installed apache on my rpi2 and I wanted to test it so I tried to modify  tmp/tcloop/apache2.4/usr/local/share/apache2.4/index.html but when I want to edit it and save the modification they told that :
readonly file
And when I try to change the permission on it I get this :
chmod : index.html: Read-only file system

Any tought?
Title: Re: read only file system
Post by: Juanito on April 26, 2022, 06:18:04 AM
Try this:
Code: [Select]
sudo cp /tmp/tcloop/apache2.4/usr/local/share/apache2.4/index.html /usr/local/share/apache2.4
..and then edit /usr/local/share/apache2.4/index.html
Title: Re: read only file system
Post by: MrToga on April 26, 2022, 06:50:09 AM
Hi juanito,

After I've done what you told me I still have the same problem, maybe it's because in /usr/local/share/apache2.4 I already had an symbolic link for index.html
Title: Re: read only file system
Post by: Juanito on April 26, 2022, 06:54:17 AM
You need to overwrite the symlink with the actual file.
Title: Re: read only file system
Post by: MrToga on April 26, 2022, 07:04:38 AM
Hi juanito,

I overwrite the symbolic link and I reedited the file but when I do sudo apachectl -k start nothing change on the web page
So I tried to overwrite /tmp/tcloop/apache2.4/usr/local/share/apache2.4/index.html with the new one but it doesn't work either
Any tought ?
Title: Re: read only file system
Post by: bmarkus on April 26, 2022, 07:13:18 AM
/tmp/tcloop files are read-only. As Juanito wrote, overwrite the symlinked destination,
Title: Re: read only file system
Post by: MrToga on April 26, 2022, 07:30:56 AM
Update :

I was in the wrong place from the start I can modify  index.html in /usr/local/apache2/htdocs/index.html

My bad