this post was submitted on 07 Jul 2023
1 points (100.0% liked)

Arch Linux

7744 readers
3 users here now

The beloved lightweight distro

founded 4 years ago
MODERATORS
 

Not specifically Archlinux, but I am using Archlinux on my laptop, so I thought I'll ask here.

I am planing to replace my 1 TB M.2 SSD in my laptop with a 2 TB M.2 SSD, and I am wondering how to clone the whole 1 TB SSD and restore it onto the 2 TB M.2 SSD.

I have read about people using $dd for that, but I never did that. Can anybody confirm that this is possible?

I am running two partitions, one boot and the other one is a crypt device with btrfs + subvolumes inside.

Is there anything I have to consider, before doing this?

Thank you for your time.

top 4 comments
sorted by: hot top controversial new old
[–] niva@discuss.tchncs.de 1 points 1 year ago* (last edited 1 year ago)

You could also use clonezilla. The arch install media comes with it. It is handy, because you should not boot in the system you want to clone anyway. So you can boot into your arch install media and then do all the disk cloning.

Funnily I also have to do the same thing (from 1TB M.2 to 2TB M.2) on my desktop. I might do this tomorrow or on Sunday. I plan to do this as I described. Well I don't need to save a disk image on an external drive like you because I have two M.2 slots on my mother board.

Maybe write a follow up here how you did it and if everything went well?

Good luck!

Edit: Hey my first Lemmy comment! :)

[–] Drakulad3a@lemmy.sdf.org 1 points 1 year ago (1 children)

On the wiki there is a page about dd. The section 2.2 focuses on full disk cloning.

[–] PHLAK@lemmy.world 1 points 1 year ago

Can confirm this works. Just upgraded a 256 GB SSD to a 1TB one... and it was my OS disk... and it was LUKS encrypted. Everything is working fine (maybe even better).

[–] pkru@lemmy.ca 1 points 1 year ago

The Arch wiki has some really good info on using dd for cloning. I've done it myself successfully with dd, but double and triple check to make sure your command is correct before continuing. Both drives would need to be connected to the same machine at the same time (new drive in a USB enclosure or in a spare PCIe slot)

https://wiki.archlinux.org/title/Dd#Disk_cloning_and_restore

It might be worthwhile to check out GUI alternatives to dd if you feel more comfortable in a GUI vs terminal:

https://wiki.archlinux.org/title/Disk_cloning