There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

qazwsxedcrfv000 ,
@qazwsxedcrfv000@lemmy.unknownsys.com avatar

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.

spez_ OP ,

Would you happen to have an example? I’m fairly new to all this. Thanks!

Can I do it from the same machine which is running? I only have two devices - my Raspberry Pi NAS and a phone

Edit, it seems possible: raspberrystreet.com/…/how-to-backup-raspberrypi-s… - they provide a dd example

CAPSLOCKFTW ,

Why dd over rsync?

qazwsxedcrfv000 ,
@qazwsxedcrfv000@lemmy.unknownsys.com avatar

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 ,

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 ,
@qazwsxedcrfv000@lemmy.unknownsys.com avatar

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

CAPSLOCKFTW ,

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

borlax ,
@borlax@lemmy.borlax.com avatar

Use dd on the entire disk?

flint5436 ,

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.

spez_ OP ,

Thanks, this looks like it’ll work. I’ll report back

flint5436 ,

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 ,

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 🤣

Zetgeist117 ,
@Zetgeist117@lemmy.world avatar

Maybe clonezilla?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines