I have installed OpenMediaVault and a bunch of Docker services.
Is it possible to clone everything on my microSD, and put it in my SSD, and then boot from the SSD as if nothing changed?
I’m asking because microSD cards don’t last long.
Submitted 1 year ago by spez_@lemmy.world to selfhosted@lemmy.world
I have installed OpenMediaVault and a bunch of Docker services.
Is it possible to clone everything on my microSD, and put it in my SSD, and then boot from the SSD as if nothing changed?
I’m asking because microSD cards don’t last long.
Both the SD cards and SSDs are interpreted as block storage devices by the Linux kernel. You should be able to clone the SD card to a SSD with tools such as dd
.
Would you happen to have an example? I’m fairly new to all this. Thanks!
I think using dd is the way.
Use dd on the entire disk?
Maybe clonezilla?
Im not 100% if that changed or not, but if you are using raspberry pi I think you still need sd card to boot from SSD. The way you install it is actually installing OS on both of them and then doing some tricks to boot from USB after initiall boot from SD card. Once you start your OS you can unplug SD card, but still need it for next reboot. Maybe there is a good way how to clone, but deffo not simple as regular cloning.
You can just add SSD as a storage and move docker volumes and catch folder to it (not sure about omv tho), but that wouldnt move your OS.
Many SSDs failed on me, but never SD card in raspberry pi. I do use high quality cards tbf and Im aware SSD is much better for OS, but feels like its all about luck. Just my 2c
flint5436@lemmy.world 1 year ago
Raspberry Pi4? Then yes, here’s a guide to update your bootloader:
raspberrystreet.com/…/how-to-boot-raspberrypi-fro…
For older models(Pi<4), no but kinda: Afaik oder models could only boot from SD-cards. But that only means the bootloader has to be on the SD-card. So you can copy everything but the bootpartition and change the entry in the /etc/fstab to the new root on the SSD.
rambos@lemmy.world 1 year ago
Listen to this guy, he obviously knows better than I do, I was doing that long time ago and dont even remember completely. Was just trying to help while you wait smart guys to answer 🤣
spez_@lemmy.world 1 year ago
Thanks, this looks like it’ll work. I’ll report back
flint5436@lemmy.world 1 year ago
I just did some more research and aparently my intel was a bit outdatet (from arount 2020). The guide should still work, though booting from SSD should be working by default and does not require any eeprom-updates. So you can probably start with step 4.