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.

Edit: Using a Raspberry Pi 4 Model B 8GB with the Argon Eon case

  • Qazwsxedcrfv000@lemmy.unknownsys.com
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    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
      arrow-up
      1
      ·
      edit-2
      1 year ago

      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.