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?
I recently read that luks containers don’t actually know their size they will always adapt to the size of the entire disk (it makes shrinking them dangerous). So you should be good unless your SSD is bigger than your new nvme.
Very curious about how this goes. It might not work but it won’t wipe the original nvme. I’d love to hear how it goes.
The first clone (to the interim usb ssd) was a success! I’ll report back after installing the new nvme and cloning from the ssd to the nvme.
Secnd clone was also a success! I cloned from the USB SSD to the NVMe, installed it, updated the UUIDs in
fstab
, and booted straight up!Filesystem sized is grown fine? If so wow that was easy.
I didn’t expand it because I’m planning to dual boot NixOS. I’ve been wanting to wade in to NixOS and see what it’s all about.