Openwrt for Rasperry Pi 4 (Partition SD for SMB)

Is it possible to boot OpenWRT on Raspberry pi from the SD card (which is 32gb)

And use 31gb as SMB share for filesharing - seems a lot of wasted space otherwise from what the OpenWRT system uses?

Yes and yes.

2 Likes

Awesome just wanted to confirm before giving it a go – I have a decent U10 SD card but would it be considered a bad idea to do that?

I.e the SD Card won't last long with such a setup (or since one partition could be read-only/squashfs on OpenWRT) it wouldn't really make all that much difference?

Bad idea? Not if you know what you are getting into.

Once you get the system configured make a backup.
31 GB is not going to be streaming video 24/7 so I'm sure it will last longer than a year.

I have an old RPi1, it's been using the same SD card since I bought it.

It's not running Openwrt, but vanilla Linux, meaning it actually writes to the card.
Been running for 10 years or more, and it's on 24/7, monitoring my boiler, no issues
with the SD card.

SD card death seems blown out or proportion.

2 Likes

Was thinking more for samba share though - so could stream from the SD but not 24/7

reading isn't usually a "mem card killer", writing could be.

I'm going to take this seriously for a short amount of time:

In what situation would you want to stream video stored on an SD card 24/7?

I said not 24/7

"not 24/7" could in theory be 23/7 ... @LilRedDog got a point.

Not a real point, he said is not going to "be streaming 24/7" and I agreed won't be streaming 24/7, but will be streaming. I imagine he missed the "not" in my comment - because who would be streaming 23 hours a day

depends on what you're streaming, you could for instance stream a video feed from a camera.

Okay, yes you can stream 24/7 but it really will only last about a year. This is based on the dashcam sd cards I have used.

Exactly, so let's just chalk it up to lost in translation.

I literally meant watching the odd movie from a Samba share and agreed with you that it wouldn't be 24/7 (not my use case for cameras or whatever application would need that)

But sounds from this thread that SD lifespan is likely good enough for this sort of application so will give it a go!

Thanks for the confirmation!

Agreed, they are disposable and wear out like brakes and pencils.
They are dirt cheap.
As long as you back up your configuration the card failing will just be the inconvenience of flashing a new one and restoring.