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

Offline JonB256

  • Supporting Member
  • ******
  • Join Date: Mar 2013
  • Location: Granbury, Texas
  • Posts: 3,552
  • Kudos: 74
    • 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


Online Sawdust

  • Full Member
  • ***
  • Join Date: Nov 2015
  • Location: Northern CA
  • Posts: 212
  • Kudos: 0
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.

Online Sawdust

  • Full Member
  • ***
  • Join Date: Nov 2015
  • Location: Northern CA
  • Posts: 212
  • Kudos: 0
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: 582
  • Kudos: 7
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.




Online jholmes

  • Full Member
  • ***
  • Join Date: Apr 2016
  • Location:
  • Posts: 123
  • 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,854
  • Kudos: 139
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

Online jholmes

  • Full Member
  • ***
  • Join Date: Apr 2016
  • Location:
  • Posts: 123
  • 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

Online jholmes

  • Full Member
  • ***
  • Join Date: Apr 2016
  • Location:
  • Posts: 123
  • 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: 15
  • 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

Online jholmes

  • Full Member
  • ***
  • Join Date: Apr 2016
  • Location:
  • Posts: 123
  • 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,042
  • 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.

Online jholmes

  • Full Member
  • ***
  • Join Date: Apr 2016
  • Location:
  • Posts: 123
  • Kudos: 0
Re: Help Beta Test a script to mount the SD card on a Pi read-only
« Reply #87 on: June 26, 2017, 08:55:04 AM »
I found FPPD was stopped today on my read-only Pi in my yard. Pressing the Start FPPD button brought it back online without issue.
Any thoughts why? I was gone for the weekend but it looks like it stopped on Friday (according to FPPD.log).


A search of FPPD_start.log found this. Apparently it happens every Monday but last weekend was the only time FPPD actually stopped. What is that?



Quote
FPP v1.9-43-gce0872e Branch: v1.9 ========================================= ==========================================================================
Mon Jun 26 09:57:57 EDT 2017
rm: cannot remove `/opt/fpp/lib/librgbmatrix.so': Read-only file system ln: failed to create symbolic link `/opt/fpp/lib/librgbmatrix.so': File exists Starting /opt/fpp/bin.pi/fppd Failed to apply controlMajor setting Failed to apply controlMinor setting Failed to apply controlMajor setting Failed to apply controlMinor setting

Online jholmes

  • Full Member
  • ***
  • Join Date: Apr 2016
  • Location:
  • Posts: 123
  • Kudos: 0
Re: Help Beta Test a script to mount the SD card on a Pi read-only
« Reply #88 on: June 26, 2017, 09:38:11 AM »
Adding further to the conversation,


Today I tried to run
Code: [Select]
fsck -f -y /dev/sda1 to clean up any dirty-bits and the response I received was:


0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt. Automatically removing dirty bit.

Unable to create unique name.

Not sure what that last statement means but the dirty bit is still there.
Specifically its calling out /LOGS/STARTUP.LOG

Offline PeteyHall

  • Full Member
  • ***
  • Join Date: Sep 2016
  • Location: Boston
  • Posts: 132
  • Kudos: 3
Re: Help Beta Test a script to mount the SD card on a Pi read-only
« Reply #89 on: July 15, 2017, 07:05:41 PM »
I configured a brand new FPP instance tonight on a Pi3, upgraded to 1.9-50, ran the read-only script and have rebooted the PI numerous times by pulling the power and each time the FPP came back without issue.
 

 

Back to top