Not specifically Archlinux, but I am using Archlinux on my laptop, so I thought I’ll ask here.

I am planing to replace my 1 TB M.2 SSD in my laptop with a 2 TB M.2 SSD, and I am wondering how to clone the whole 1 TB SSD and restore it onto the 2 TB M.2 SSD.

I have read about people using $dd for that, but I never did that. Can anybody confirm that this is possible?

I am running two partitions, one boot and the other one is a crypt device with btrfs + subvolumes inside.

Is there anything I have to consider, before doing this?

Thank you for your time.

  • niva
    link
    fedilink
    English
    arrow-up
    9
    ·
    edit-2
    1 year ago

    You could also use clonezilla. The arch install media comes with it. It is handy, because you should not boot in the system you want to clone anyway. So you can boot into your arch install media and then do all the disk cloning.

    Funnily I also have to do the same thing (from 1TB M.2 to 2TB M.2) on my desktop. I might do this tomorrow or on Sunday. I plan to do this as I described. Well I don’t need to save a disk image on an external drive like you because I have two M.2 slots on my mother board.

    Maybe write a follow up here how you did it and if everything went well?

    Good luck!

    Edit: Hey my first Lemmy comment! :)

    • Γ7Σ@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      Welcome to Lemmy, glad you found your way to Archlinux :) I have ordered a USB case for my M.2.

    • SayCyberOnceMore@feddit.uk
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      +1 Clonezilla all the way…

      dd is fine if you want an exact bit-by-bit duplication of all the bits on the drive, but, that’s probably overkill.

      Clonezilla (or, more accurately, the tools it runs) will only copy the useful stuff, boot sectors, partitions, files, etc… faster.

    • ILurkAndIKnowThings@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 months ago

      I just wanted to chime in to say that I used clonezilla today to move my 250G ssd to 1TB. It was easy and fast. I used ventoy (a usb iso loader) to load stable clonzilla live. I’ll only mention the major options, which were disk-to-disk, expert mode, and then -k1 (to resize the partition accordingly.