{"id":28580163,"url":"https://github.com/elulcao/raspberry-ro","last_synced_at":"2026-05-04T12:35:30.317Z","repository":{"id":144499755,"uuid":"348928406","full_name":"elulcao/raspberry-ro","owner":"elulcao","description":"💻 Protect your RaspberryPi micro SD using Read-Only mode","archived":false,"fork":false,"pushed_at":"2021-04-19T02:12:43.000Z","size":110,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-11T03:16:24.301Z","etag":null,"topics":["pihole","raspberry-pi"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elulcao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-03-18T03:27:11.000Z","updated_at":"2025-01-15T12:52:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"b5cfbeda-1f9b-4cd4-a4c6-7fb2f36ac980","html_url":"https://github.com/elulcao/raspberry-ro","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/elulcao/raspberry-ro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elulcao%2Fraspberry-ro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elulcao%2Fraspberry-ro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elulcao%2Fraspberry-ro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elulcao%2Fraspberry-ro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elulcao","download_url":"https://codeload.github.com/elulcao/raspberry-ro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elulcao%2Fraspberry-ro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32607784,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pihole","raspberry-pi"],"created_at":"2025-06-11T03:16:19.987Z","updated_at":"2026-05-04T12:35:30.312Z","avatar_url":"https://github.com/elulcao.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# raspberry-ro\n RaspberryPi in Read-Only mode\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\".assets/raspberrypi.png\" width=\"350\" title=\"RaspberryPi RO\"\u003e\n\u003c/p\u003e\n\nThe life of micro SD cards can be drastically reduced when there are excess writes due to intensive use, likewise, the failures in the power supply can increase the chances of failure in the reading of data.\n\nFor example, if you want to use the Pi-hole and the RaspberryPi to block advertisements, this combination can accelerate the degradation of the micro SD card. However, the problem can be mitigated with the correct configuration of the filesystem in read-mode.\n\n## Automated Configuration Step 1\n\nClone this repo to your RaspberryPi and execute `raspberry_ro_rw.sh` as `root` user, this is the fastest way to configure the RaspberryPi in read-mode.\n\n```bash\n$ git clone --depth 1 https://github.com/elulcao/raspberry-ro raspberry-ro\n$ cd raspberry-ro\n$ sudo su\n# bash raspberry_ro_rw.sh\n```\n\nIf your RaspberryPi does not have git installed yet, you will have to clone the repository to a different computer to later propagate all the files to the RaspberryPi, for example via SSH. Once the files have been copied, run the `raspberry_ro_rw.sh` on the RaspberryPi.\n\nIn the following example, the IP assigned is `192.168.1.63`, which may vary according to the ISP provider and the hardware provided to access the Internet.\n\n```bash\n$ git clone --depth 1 https://github.com/elulcao/raspberry-ro raspberry-ro\n$ scp -r /raspberry_ro_rw pi@192.168.1.63:/home/pi\n$ ssh pi@192.168.1.63\n$ cd raspberry-ro\n$ sudo su\n# bash raspberry_ro_rw.sh\n```\n\nOnce the configuration is finished, restart the RaspberryPi to later continue with the installation and configuration of Pi-hole. If everything has gone well, it will be observed that the RaspberryPi now shows `ro` at the bash prompt. which indicates that the file system is in Read-Only mode. To switch to writing mode, and to be able to install other applications, just type in the console `rw`; Read-Write.\n\n```bash\npi@raspberrypi(ro):~$ rw\npi@raspberrypi(rw):~$ curl -sSL https://install.pi-hole.net | bash\n```\n\n## Automated Configuration Step 2\nAfter configuring Pi-hole, proceed to execute the following script `extras_ro_rw.sh` to finish configuring the RaspberryPi in read mode.\n\n## References\n\n[The Pi-hole](https://pi-hole.net/)\n\n[Charles's blog](https://hallard.me/raspberry-pi-read-only/)\n\n[raspberrypi.org](https://www.raspberrypi.org/forums/viewtopic.php?f=37\u0026t=63996)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felulcao%2Fraspberry-ro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felulcao%2Fraspberry-ro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felulcao%2Fraspberry-ro/lists"}