I need help to run Raspbian on RAM.

I need to this in order to make the Pi powerfault safe. I want to be able to remove power to the Pi without problem.

I need to be able to remove the SD card after the system has booted. I stripped down a netinstalled Raspbian but now I can't find how to boot it from RAM.

I have tried to modify cmdline.txt but without result.

  • Why do you need to remove the SD card? The RAM will require a constant power supply as well...
    – Wilf
    Dec 23, 2013 at 21:35
  • I would direct you towards this first, and then consider a small Lithium Ion battery momentary backup solution with a shutdown trigger using the GPIO pins. The RAM on the Pi is volatile (clears on power off) so that will not actually give you what you are wanting. Dec 23, 2013 at 22:27
  • I can point you to embeddedarm.com/about/resource/… tinycorelinux.net (not sure about the Pi 4 for tiny core) raspberrypi.stackexchange.com/questions/85524/… and enerco.si/content/overlay-filesystem-raspi One gent on the forum had used buildroot to make a r/o system but I cannot find the link. Leave the SD card in - you need it to boot again after power off / on!
    – user115418
    May 29, 2020 at 10:16


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.