Author Topic: Help Beta Test a script to mount the SD card on a Pi read-only  (Read 3797 times)

Offline JonB256

  • Supporting Member
  • ******
  • Join Date: Mar 2013
  • Location: Granbury, Texas
  • Posts: 3,404
  • Kudos: 70
    • Granbury Christmas Lights
Re: Help Beta Test a script to mount the SD card on a Pi read-only
« Reply #75 on: April 06, 2017, 07:30:31 AM »
The F16v3, in its upcoming control mode, might help. Since it uses PICs and non-volatile memory, it wouldn't suffer the same problems that a Pi or BBB might on loss of power.

Dave Pitts would certainly have more info on that.

Sent from my SM-G900V using Tapatalk


Offline Sawdust

  • Full Member
  • ***
  • Join Date: Nov 2015
  • Location:
  • Posts: 177
  • Kudos: -2
Re: Help Beta Test a script to mount the SD card on a Pi read-only
« Reply #76 on: April 06, 2017, 10:51:52 AM »
What I need to have is some method that will not corrupt the files, even if someone trips over a power cord and pulls it out of the socket.
First turn off logging....this should fix most issues.  I have had  power outages (ground faults) during the show.  With logging turned off, signs  have restarted, without issues, when power is restored. 

For added security, maybe a small battery backup just to keep the Pi alive.

Offline Sawdust

  • Full Member
  • ***
  • Join Date: Nov 2015
  • Location:
  • Posts: 177
  • Kudos: -2
Re: Help Beta Test a script to mount the SD card on a Pi read-only
« Reply #77 on: April 06, 2017, 11:09:35 AM »
The F16v3, in its upcoming control mode, might help. Since it uses PICs and non-volatile memory, it wouldn't suffer the same problems that a Pi or BBB might on loss of power.

Dave Pitts would certainly have more info on that.

Sent from my SM-G900V using Tapatalk

Why does everybody keep throwing the F16V3 in our face as the solution to everything.  It's a great controller with great support, but it is far from a Fix All.



Offline algerdes

  • Supporting Member
  • ******
  • Join Date: Apr 2014
  • Location:
  • Posts: 531
  • Kudos: 5
Re: Help Beta Test a script to mount the SD card on a Pi read-only
« Reply #78 on: April 06, 2017, 06:06:35 PM »
The F16Vxxx series are great controllers.  They are used here in many different places.  Several E682s have been replaced by the F16Vxxx.


The locations and uses of some of the RPi/FPP units are such that an F16Vxxx would be overkill.  A PiHat/PiCap or a small controller (F4Vxxx) would be more in line with what we need at these points.




Offline jholmes

  • Full Member
  • ***
  • Join Date: Apr 2016
  • Location:
  • Posts: 116
  • Kudos: 0
Re: Help Beta Test a script to mount the SD card on a Pi read-only
« Reply #79 on: April 09, 2017, 10:41:27 PM »
Adding to the testing feedback:


I have a Raspberry Pi 3 connected to an outdoor timer to run my garden lights.
It it scheduled to turn on at 5:30 PM and off at 11:00 PM.


During setup, I had trouble with the timer so the power was turned ON/OFF a few times with only seconds in between.


Once properly setup, the timer activated at 5:30 PM and the lights successfully turned on.
However, I was unable to access the web interface. Response was that the page was "unavailable" (according to my web browser).


I was able to ping and ssh into the Pi, which is how I restarted it.
After restart, web interface was accessible.


Any thoughts why?

Offline CaptainMurdoch

  • Administrator
  • *****
  • Join Date: Sep 2013
  • Location: Washington
  • Posts: 7,851
  • Kudos: 138
Re: Help Beta Test a script to mount the SD card on a Pi read-only
« Reply #80 on: April 14, 2017, 03:37:43 PM »
Also, Captain, what influenced your choice in a BBB for your master over a Raspberry Pi?

My choice for the BBB was only because of the issue with the FMT-212R FM transmitter on the newer kernel on the Pi.  I definitely would prefer to use a Pi v2 or v3 as my master and want to try to get to that point this year even if means using analog audio to the FMT-212R.
-
Chris

Offline jholmes

  • Full Member
  • ***
  • Join Date: Apr 2016
  • Location:
  • Posts: 116
  • Kudos: 0
Re: Help Beta Test a script to mount the SD card on a Pi read-only
« Reply #81 on: May 31, 2017, 11:46:21 AM »
Hi all,


Only for Pi's that have read-only enabled, I am seeing this error (see image) whenever I "sudo -s"
It seems to work but I don't quite understand the error...




Offline Needbin

  • Newbie
  • *
  • Join Date: Jul 2016
  • Location:
  • Posts: 6
  • Kudos: 0
Re: Help Beta Test a script to mount the SD card on a Pi read-only
« Reply #82 on: June 06, 2017, 08:54:24 AM »
I have installed also and successful

Offline jholmes

  • Full Member
  • ***
  • Join Date: Apr 2016
  • Location:
  • Posts: 116
  • Kudos: 0
Re: Help Beta Test a script to mount the SD card on a Pi read-only
« Reply #83 on: June 08, 2017, 09:41:50 AM »
New testing update!


I have multiple pi's in different configurations to see if I can break the Read-Only setting.
In this particular case, after power was cut, when they came back up the web interfaces were inaccessible.


You can ping the Pi and the Pi does output pixel data as needed.
Cutting power again fixes the issue except for one Pi that is "read-only with logging ON". A second power-cut fixed this.


Is there a way to restart apache while the Pi is running instead of needing to shutdown and restart or a script we can use to check if Apache is running (and restart the server if not)?
« Last Edit: June 08, 2017, 11:08:01 AM by jholmes »

Offline th182

  • Newbie
  • *
  • Join Date: Dec 2015
  • Location:
  • Posts: 14
  • Kudos: 0
Help Beta Test a script to mount the SD card on a Pi read-only
« Reply #84 on: June 08, 2017, 02:49:51 PM »

Is there a way to restart apache while the Pi is running instead of needing to shutdown and restart or a script we can use to check if Apache is running (and restart the server if not)?

I haven't tried it on a pi yet but generally...

Code: [Select]
start it with: sudo /etc/init.d/apache2 start

reload the config with: sudo /etc/init.d/apache2 reload

restart (stop followed by start): sudo /etc/init.d/apache2 restart

I don't see why that couldn't be automated on startup

Sent from my iPhone using Tapatalk

Offline jholmes

  • Full Member
  • ***
  • Join Date: Apr 2016
  • Location:
  • Posts: 116
  • Kudos: 0
Re: Help Beta Test a script to mount the SD card on a Pi read-only
« Reply #85 on: June 08, 2017, 06:27:38 PM »
I'll have to give that a try.

Also, IDEA!!! You know how there is a small file on the USB that disables auto-updating?
Could there be a similar file that tells the system to boot as read-write?
That way if we ever needed to get in and make changes to the GPIO or other SD specific settings, we could!

What do you think Captain?


How do we current switch back to read-write?
« Last Edit: June 13, 2017, 01:10:27 PM by jholmes »

Offline Materdaddy

  • Moderator
  • *****
  • Join Date: Jul 2013
  • Location: Oceanside, CA
  • Posts: 2,034
  • Kudos: 8
    • Christmas On Quiet Hills
Re: Help Beta Test a script to mount the SD card on a Pi read-only
« Reply #86 on: June 21, 2017, 03:14:21 PM »
It's not quite that easy.  The read-only changes aren't simply a toggle.  I believe it makes some modifications for certain file locations, log levels, etc.

 

Back to top