I bought a new ssd that is way faster and larger than my current one. What is the best way to transfer everything from my old drive to my new one. Currently running Fedora 38, fine with the command line. If nothing else I will just do a clean install on the new drive and copy over what I need from /home on the old drive.

    • jaykstah@waveform.social
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      ^ Yeah I second this. Make a bootable flash drive with clonezilla on it, boot from that, and clone your original disk to the new SSD

  • CriticalMiss@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    edit-2
    1 year ago

    Some prefer CloneZilla, some prefer Acronis, the idea is the same though.

    Just don’t forget to expand your volumes once you’re done cloning

    • axzxc1236@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      Add to this: I once used clonezilla to clone boot drive with LUKS partition and let clonezilla handle partition table.

      The LUKS partition expanded, but what’s under LUKS partition is bugged (keeps it’s initial size, but there is no free space in LUKS container), I have to use gparted in a live system to fix it.

  • mikyopii@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    Look at Clonezilla. It’s a specialized Linux distro that does some interesting things, including cloning.

    When I tried it I found it confusing and didn’t feel like figuring it out at the time so I just did a clean install ahaha. YMMV.

  • nik282000
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    Clonezilla is an awesome tool. If you have doubts about the procedure test it out in a virtual machine. Testing in VMs will save you so much grief.

  • halo5@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    You could just use the “dd” command. Example: sudo dd if=/dev/sda of=/dev/sdb status=progress # In this example, sda is the source drive and sdb is the destination…

  • 𝘋𝘪𝘳𝘬
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    What I did when I migrated from an HDD to an SSD was booting from an USB life image and then simply dd’ing the HDD to the SSD and afterwards extending the partition and file system (the partition on the end is for my /home so extending was easily possible).

  • chriscrutch
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    I like to do clean installs to un-crust my setups, but I have simply dd’d one disk to another and the only issue I came up with was that the old fstab used UUIDs to refer to the disks, and those changed when I got the new disk, so at first boot nothing would mount. Hahahaha.

  • bigmode
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    Just to be clear both drives should be unmounted while you run dd on them or you could get inconsistent data. There’s a blog post that has a nice graphic explaining the situation benjojo Or you could use hot-clone mentioned in the same blog.

    • bigmode
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Oops I meant to reply to @halo5@lemmy.world

  • inode
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    It depends on what partitions are there. Boot partitions and other gpt/uefi stuff likely needs to be cloned exactly. For my system, the root partition uses lvm2 so I can just attach a new drive, add it to the group and migrate the extents over. This makes it easy to move data live without needing to unmount the main partition. The uefi/boot stuff usually is easy to unmount without worrying about what is running.

  • elderflower@lemmy.world
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    1 year ago

    cp /dev/sdX /dev/sdY. Really, it’s that simple, just replace sdX and sdY with the device files for the source and destination drives.