Running img from ssd

Started by talespin, September 15, 2025, 09:08:25 PM

Previous topic - Next topic
Hello Everyone,

I want to run opnsense just like embedded systems where only config is saved in permanent memory rest everything runs in RAM.
Reason - I want capability to just cut the power and not corrupt the file system.

Only config should save on SSD, rest everything should run from ram. Nano seems to do what I want but how do I run img from SSD just like we can run img from bootable usb. I don't want to install os on ssd.

I am fine installing on SSD as long as it gives me capability to just switch off power without corruption.

Thank you

Write the nano image to an SSD instead to a USB drive. It will be read-only apart from the configuration. No problem with a power cut.

Or just use ZFS.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Quote from: Patrick M. Hausen on September 15, 2025, 09:31:00 PM[...]
Or just use ZFS.

I'd always recommend using an SSD with big caps just to make sure the SSD's own buffers are written when power is cut. Will you ever notice the difference? Probably not, unless your luck is like mine.

(The feature is generally listed as "power fail protection" or similar; the large capacitors are pretty obvious on M.2 devices and may make applying a heat sink a bit more challenging.)

Quote from: Patrick M. Hausen on September 15, 2025, 09:31:00 PMWrite the nano image to an SSD instead to a USB drive. It will be read-only apart from the configuration. No problem with a power cut.

Or just use ZFS.

Thank you.

Quote from: pfry on Today at 02:30:21 AM
Quote from: Patrick M. Hausen on September 15, 2025, 09:31:00 PM[...]
Or just use ZFS.

I'd always recommend using an SSD with big caps just to make sure the SSD's own buffers are written when power is cut. Will you ever notice the difference? Probably not, unless your luck is like mine.

(The feature is generally listed as "power fail protection" or similar; the large capacitors are pretty obvious on M.2 devices and may make applying a heat sink a bit more challenging.)

Thank you

For now I'll be using image until I have figured out how to shut down with a remote(Single button click). There are other electronic devices that are controlled by this remote then through WOL, shutdown Scripts.