WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: read only file system  (Read 1850 times)

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
read only file system
« 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?
It's fine

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14798
Re: read only file system
« Reply #1 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

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: read only file system
« Reply #2 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
It's fine

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14798
Re: read only file system
« Reply #3 on: April 26, 2022, 06:54:17 AM »
You need to overwrite the symlink with the actual file.

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: read only file system
« Reply #4 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 ?
It's fine

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: read only file system
« Reply #5 on: April 26, 2022, 07:13:18 AM »
/tmp/tcloop files are read-only. As Juanito wrote, overwrite the symlinked destination,
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline MrToga

  • Full Member
  • ***
  • Posts: 142
Re: read only file system
« Reply #6 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
« Last Edit: April 26, 2022, 07:55:55 AM by MrToga »
It's fine