EDIT WITH UPDATE: Operation went off without a hitch! I’m now up and running with the 512GB nvme drive! Next stop is dual booting nixos, which was the whole reason for switching to the larger drive.

ORIGINAL POST:

I’ve got a laptop running Arch (btw), with a 128GB nvme in it. The nvme has two partitions. EFI boot, and a luks encrypted lvm.

I’ve got a 512GB nvme I want to swap in. I think I can clone the device with dd, update the uuids, expand the lvm, and drop in the 512 nvme, but my searching hasn’t given me a clear confirmation of this. Am I correct in my thought process, or am I setting myself up for disaster?

  • mark
    link
    fedilink
    102 months ago

    @harsh3466 That should work, as always with dd the potential disaster is getting if and of the wrong way around and wiping the old drive.

      • @[email protected]
        link
        fedilink
        10
        edit-2
        2 months ago

        Tip: don’t use /dev/nvme0n1 directly, but use device aliases in /dev/disk/. I prefer /dev/disk/by-id/ but maybe another works better in your case.

        # find all aliases for nvme drives (no partitions)
        find /dev/disk/ -type l -ilname '*nvme?n?' -printf '%l %p\n' | sed 's!^../../!!' | sort
        
    • flatbield
      link
      fedilink
      English
      12 months ago

      The other is not having the sync,noerror options and having a disk error. ddrescue is a lot more forgiving.