As well as all my important stuff in /home, can I transfer over the operating system as well as everything in the root partition? What about the Windows Partition? Thanks in advance.

  • Björn Tantau
    link
    fedilink
    103 months ago

    You can use dd to transfer literally everything, like partitions, boot sector and filesystems over and then use gparted to grow the partitions. Boot any Linux live image to do it.

    • boredsquirrel
      link
      fedilink
      53 months ago

      No, this will not fixup the GPT partition table, so partclone, integrated in clonezilla, is way easier.

      Otherwise yes, dd and gdisk work really well. But you can easily mess up and Clonezilla just works

    • @[email protected]OP
      link
      fedilink
      13 months ago

      Nice. I assume I’ll need to transfer to an external drive first, and then transfer back to the new one?

      • Björn Tantau
        link
        fedilink
        43 months ago

        Depends. If you have enough slots you can do it in one go. Otherwise you’ll have to use an external drive.

      • @[email protected]
        link
        fedilink
        23 months ago

        You can buy an external drive case cheap and plug in the old one with USB-C. I have multiple from Inateck which cost ten bucks on Amazon.

          • Björn Tantau
            link
            fedilink
            23 months ago

            These are cases specifically to house internal drives.

            Actually most cases are. Chances are good that even if you just buy any external drive that if you were to screw it open that it would have just a normal internal drive in there hooked up to an adapter.

          • @[email protected]
            link
            fedilink
            23 months ago

            If it’s a 2.5" drive, get a drive case and make it external. If it’s an m.2 chip, you can still get cases for those. I don’t know how much they cost, but they exist. If it’s soldered to the logic board, you’re out of luck.