Make SD Card to read-only mode
#1
Hi all experts,
According to my project that needs to be run 24x7 on my rockpro64, there was issue with OS corruption as due to power shutdown the devices was on unexpected power cycle. So i was trying to make the OS to read-only mode.

I followed this link-
[url=https://medium.com/@Andreas.schallwig/how-to-make-your-raspberry-pi-file-system-read-only-raspbian-stretch-80c0f7be7353]https://medium.com/@Andreas.schallwig/how-to-make-your-raspberry-pi-file-system-read-only-raspbian-stretch-80c0f7be7353[/url]

I successfully done that but some system services and my docker service stoped working now.

OS -
Armbian ver5.98

Requirement-
1) I have made one app that needs to be run 24x7 and that is a docker process. So i need to access docker in RO mode.
2) I have also made a system-service(in /etc/systemd/system/my-service) that keeps on monitoring that docker app.
3) There are some file write operation need to be done in "/opt" or any other folder.

Please suggest me way to make the OS to read-only by keeping above 3 requirements.

Thanks.
  Reply
#2
The third requirement is in contradiction to your first requirement. Any remainder of write operations keeps a chances for corruption. I think you need exclude the writing to system volume totally. Move anything needing the write to a RAM-disk. And write persistent data only to different media, say, USB flash drive.
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Multiport Gigabit Card? jerry110 19 1,150 05-30-2020, 03:38 PM
Last Post: Der Geist der Maschine
  Rockpro64 Sata Card kills itself jerry110 18 2,986 05-14-2020, 06:44 AM
Last Post: aldrick
  Cheap 4-port SATA card working with RockPro64 4Gb andyburn 3 199 04-25-2020, 11:57 AM
Last Post: andyburn
  PCI-e to Dual SATA-II Interface Card only works with one disk taube 4 444 12-27-2019, 10:42 AM
Last Post: taube
Question Can we add PCIE hub 1 to many pcie card seaurchin 1 270 11-25-2019, 11:08 AM
Last Post: tllim
  case for RockPro64 + PCI-E M.2 NVMe Card? AndyOfLinux 7 1,287 08-24-2019, 01:52 PM
Last Post: kaylios
  JMicron cipset SATA PCI-E card support Yroth 2 259 07-27-2019, 08:52 PM
Last Post: stuartiannaylor
Question Status PCIe slot and the SATA interface card Yoast 21 3,600 05-28-2019, 02:22 PM
Last Post: Nikolay_Po
  GPIO in sleep mode Mentaluproar 2 240 04-08-2019, 03:50 PM
Last Post: Mentaluproar
  USB/SDHC mounts as read-only Faradn 0 159 03-31-2019, 09:00 AM
Last Post: Faradn

Forum Jump:


Users browsing this thread: 1 Guest(s)