Running OMV 5 on Raspberry Pi 4. I would like to decrease the wear and tear of the micro sd card so I won't have to replace it soon. I have an usb 3 mechanical hard drive attached so it is possible to change the swap file there or I should disable it altogether. Thanks. Also, does the flashmemory-plugin in OMV work at all for this? Thanks.
Decreasing wear on sd cards in Raspberry Pi.
-
- OMV 5.x
- pug_ster
-
-
does the flashmemory-plugin in OMV work at all for this?
The flashmemory plugin moves the heavy writes to ram. The SD card should last a long time if you get a good quality card. If you are swapping a lot, then you probably shouldn't use an RPi.
-
I agree, a OMV NAS running on a RPI4 shouldn't really need any swap at all.
That said, I assume that you already have tried to manually create a swap partition on some drive, mount it in fstab and activate swap with swapon. How did that work?
-
I've run my OMV in both 8GB and 16GB of RAM without any swap and never had a problem.
-
https://www.raspberrypi.org/forums/viewtopic.php?t=244130
Thanks for replying. I ran free-m command and it turns out that it was using 100mb of swap file. This was installed by default when putting in the raspian buster's image and I don't need it because I got the 4gb version of the rpi4. According to this thread in rpi's forums, I was able to disable and remove the swap file partition using this command. Thanks for replying.
sudo dphys-swapfile swapoff && \
sudo dphys-swapfile uninstall && \
sudo update-rc.d dphys-swapfile remove
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!