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?
10 Comments
wildbus8979@sh.itjust.works · 24 pts · 1y
Yup, you're all set. You'll need to use
cryptsetup resizeas wellharsh3466@lemmy.ml · 6 pts · 1y
That I didn’t know. Thank you!
mark@social.cool110.xyz · 9 pts · 1y
@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.
harsh3466@lemmy.ml · 4 pts · 1y
No joke! I plan to quadruple check before I hit enter.
unlawfulbooger@lemmy.blahaj.zone · 10 pts · 1y
Tip: don’t use
/dev/nvme0n1directly, but use device aliases in/dev/disk/. I prefer/dev/disk/by-id/but maybe another works better in your case.harsh3466@lemmy.ml · 5 pts · 1y
That is actually what I did,
by-id. The whole operation went off without a hitch. I'm up and running with my new 512GB nvme!unlawfulbooger@lemmy.blahaj.zone · 2 pts · 1y
Congratulations!
harsh3466@lemmy.ml · 1 pts · 1y
Thank you!
darius@lemmy.ml · 1 pts · 1y
Is it LVM2? If you need a GUI I recommend: Blivet-GUI from a bootable USB environment so as you said nothing is mounted, hope this helps!
harsh3466@lemmy.ml · 2 pts · 1y
It is lvm2. Thank you for the recommendation! I'll check it out though I think I'm going to stick to the CLI for this one. I kind of want to do it manually.
I do plan to work from a bootsble USB for all the
ddwork so that nothing is mounted/in use.