this post was submitted on 13 Jul 2024
34 points (97.2% liked)
Linux
48314 readers
397 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
- 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
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
look up btrfs send and receive. you'll be copying data from the old disk to the new. prior to that you create the same layout on the new disk (efi, boot, btrfs with LUKS, subvolumes root and home). sadly, there aren't any readymade solutions that do this for you. big time NO on clonezilla and friends.
Thanks for your answer. Would Grub still see everything as usual or is any change needed too? Also how would I go about having the same exact layout? Use the Fedora Installer on the new drive and put the same password for encryption, creating the same partitions and giving them the same size?
Can you explain? Another comment recommended clonezilla. I remember reading something like this, but knowing more would be nice.
CZ and dd and other "it's 1998" tools copy the entire disk. like, you clone a 500 GB SSD with 50 GB used to another disk, guess how much data gets copied? correctomundo, the entire 500 gigs. that's not super-healthy for the new drive and it recreates the same volume UUIDs on the target disk as the source drive, so you're left with a mess if you keep both drives in a system.
you have a modern tool at your disposal, the mentioned
btrfs send subvol | btrfs receive subvol
that copies only what's used. GRUB (you can use this opportunity to switch to systemd-boot) won't pick up shit, you need to install it to the new drive (and remove it from the old one).eons ago, macOS had the SuperDuper! tool, a free utility that clones the entire disk, resizing the partition in the process and copies only the data and it does that from within the OS, no booting off USB installers and such. sad to say, nothing close exists over here, you'll just have to get good at doing things manually.
I see, I like this approach. However as Fedora installs Grub (and I don't want to have a headache), I think I'll stick with it. Thanks for sharing all your knowledge!