WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to overcome "read only filesystem" message?  (Read 6322 times)

Offline letian

  • Newbie
  • *
  • Posts: 2
How to overcome "read only filesystem" message?
« on: February 23, 2012, 03:35:04 PM »
I'm trying to write into /etc/ppp/ directory, but of course its impossible and gives me the message "read only filesystem".
How can I write to /etc/ppp/pppoe.conf?

sudo $EDITOR /etc/ppp/pppoe.conf won't save the file, but how do a user set up dsl connection then?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11624
Re: How to overcome "read only filesystem" message?
« Reply #1 on: February 23, 2012, 04:03:45 PM »
Hi letian
Try this:
After editing save the file as  /etc/ppp/pppoe.conf.new.
sudo mv /etc/ppp/pppoe.conf.new /etc/ppp/pppoe.conf
Edit the file   /opt/.filetool.lst   and add the line   etc/ppp/pppoe.conf
Click on Control Panel and run a backup.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: How to overcome "read only filesystem" message?
« Reply #2 on: February 23, 2012, 05:59:15 PM »
It is not the best practice to use /etc in TC. Better place is /usr/local/etc. If it is really a must have, I would prefere a symlink.
Béla
Ham Radio callsign: HA5DI

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

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: How to overcome "read only filesystem" message?
« Reply #3 on: February 23, 2012, 06:18:32 PM »
A bit an awkward situation as IIRC the maintainer of 'pppoe.tcz' has "left the building". I'm not sure to which degree '/usr/local/etc' would work, and my guess is that the more experienced maintainers don't use a PPPOE connection (which would allow them to test the extension).

Having said this maybe someone would still "adopt" the extension and either tries his luck with '/usr/local/etc' or uses the following approach instead:
(1) rename '/etc/ppp/pppoe.conf' to '/etc/ppp/pppoe.conf.sample'
(2) add the following to '/usr/local/tce.installed/pppoe':
Code: [Select]
    [ -f /etc/ppp/pppoe.conf ] || cp -p /etc/ppp/pppoe.conf.sample /etc/ppp/pppoe.conf
This should allow for either a user-specific config file to persist (provided it is included in the backup) or otherwise have at least a writeable file in the right place.