removed by mod
fedilink
17
@flint5436@lemmy.world
link
fedilink
English
111Y

Raspberry Pi4? Then yes, here’s a guide to update your bootloader:

https://www.raspberrystreet.com/learn/how-to-boot-raspberrypi-from-usb-ssd

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.

@spez_@lemmy.world
creator
link
fedilink
English
21Y

removed by mod

@flint5436@lemmy.world
link
fedilink
English
21Y

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.

@rambos@lemmy.world
link
fedilink
English
41Y

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 🤣

Use dd on the entire disk?

Zeitgeist117
link
fedilink
English
31Y

Maybe clonezilla?

Qazwsxedcrfv000
link
fedilink
English
71Y

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.

@CAPSLOCKFTW@lemmy.ml
link
fedilink
English
11Y

Why dd over rsync?

Qazwsxedcrfv000
link
fedilink
English
11Y

dd is transferring in blocks while rsync is transferring in files (or file tree). If you wanna clone a disk, the former is a better option as you want a clone and a block device may contain more than one partition.

@CAPSLOCKFTW@lemmy.ml
link
fedilink
English
1
edit-2
1Y

I would argue that rsync is better suited to clone your file system when using linux. Just prepare the partitions (plus point: you can alter partition sizes and reorganise like having a new partition (or even device) for your /home or whatever) and mount them, then

sudo rsync -ahPHAXx --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found} / /mnt

Then fix your fstab and reinstall your boot loader. Way faster than dd and can be done on a running system.

Qazwsxedcrfv000
link
fedilink
English
01Y

Your preference may vary but I would not recommend anyone trying to “clone” anything on a running system.

@CAPSLOCKFTW@lemmy.ml
link
fedilink
English
11Y

Why not? Of course you should not install or uninsta anything while rsync runs…

HousePanther
link
fedilink
English
31Y

I think using dd is the way.

@spez_@lemmy.world
creator
link
fedilink
English
4
edit-2
1Y

removed by mod

@rambos@lemmy.world
link
fedilink
English
21Y

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

Create a post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

  • 1 user online
  • 136 users / day
  • 427 users / week
  • 1.16K users / month
  • 3.85K users / 6 months
  • 1 subscriber
  • 3.68K Posts
  • 74.2K Comments
  • Modlog