this post was submitted on 01 Jul 2023
15 points (100.0% liked)

Linux

47572 readers
796 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
 

I bought a new ssd that is way faster and larger than my current one. What is the best way to transfer everything from my old drive to my new one. Currently running Fedora 38, fine with the command line. If nothing else I will just do a clean install on the new drive and copy over what I need from /home on the old drive.

top 12 comments
sorted by: hot top controversial new old
[–] CriticalMiss 7 points 1 year ago* (last edited 1 year ago) (1 children)

Some prefer CloneZilla, some prefer Acronis, the idea is the same though.

Just don’t forget to expand your volumes once you’re done cloning

[–] axzxc1236 4 points 1 year ago

Add to this: I once used clonezilla to clone boot drive with LUKS partition and let clonezilla handle partition table.

The LUKS partition expanded, but what's under LUKS partition is bugged (keeps it's initial size, but there is no free space in LUKS container), I have to use gparted in a live system to fix it.

[–] [email protected] 6 points 1 year ago (1 children)
[–] [email protected] 1 points 1 year ago

^ Yeah I second this. Make a bootable flash drive with clonezilla on it, boot from that, and clone your original disk to the new SSD

[–] mikyopii 4 points 1 year ago

Look at Clonezilla. It's a specialized Linux distro that does some interesting things, including cloning.

When I tried it I found it confusing and didn't feel like figuring it out at the time so I just did a clean install ahaha. YMMV.

[–] elderflower 3 points 1 year ago (1 children)

cp /dev/sdX /dev/sdY. Really, it's that simple, just replace sdX and sdY with the device files for the source and destination drives.

[–] myogg 1 points 1 year ago

I never knew cp could do this!

[–] halo5 1 points 1 year ago (2 children)

You could just use the "dd" command. Example: sudo dd if=/dev/sda of=/dev/sdb status=progress # In this example, sda is the source drive and sdb is the destination...

[–] ipha 2 points 1 year ago

Remember, dd stands for disk destroyer. It's a powerful tool, but if you mistype something or get drives mixed up you will destroy data.

[–] Synthead 1 points 1 year ago

I like ddrescue for almost every case I would use dd :)

[–] [email protected] 1 points 1 year ago

Clonezilla is an awesome tool. If you have doubts about the procedure test it out in a virtual machine. Testing in VMs will save you so much grief.

[–] [email protected] 1 points 1 year ago

I’m currently about to do the same. Anyone know if its fine to just clone the disk of a luks encrypted partition in clonezilla?