OPNsense Forum

English Forums => Hardware and Performance => Topic started by: talespin on September 15, 2025, 09:08:25 PM

Title: Running img from ssd
Post by: talespin on September 15, 2025, 09:08:25 PM
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
Title: Re: Running img from ssd
Post by: Patrick M. Hausen on September 15, 2025, 09:31:00 PM
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.
Title: Re: Running img from ssd
Post by: pfry on September 16, 2025, 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.)
Title: Re: Running img from ssd
Post by: talespin on September 16, 2025, 04:30:41 AM
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.
Title: Re: Running img from ssd
Post by: talespin on September 16, 2025, 04:37:35 AM
Quote from: pfry on September 16, 2025, 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.