this post was submitted on 07 Feb 2025
29 points (96.8% liked)

Linux

49856 readers
546 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 9 points 3 days ago (1 children)

@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] 4 points 3 days ago (1 children)

No joke! I plan to quadruple check before I hit enter.

[–] [email protected] 10 points 3 days ago* (last edited 3 days ago) (1 children)

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
[–] [email protected] 5 points 2 days ago (1 children)

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!

[–] [email protected] 2 points 2 days ago

Congratulations!