Yup, you're all set. You'll need to use cryptsetup resize
as well
Linux
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
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
That I didn’t know. Thank you!
@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.
No joke! I plan to quadruple check before I hit enter.
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
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!
Congratulations!
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!
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 dd
work so that nothing is mounted/in use.