this post was submitted on 07 Jul 2023
15 points (100.0% liked)
Arch Linux
7739 readers
3 users here now
The beloved lightweight distro
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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
Thank you, would it not be possible to dump the cloned disk into a file? I don't have a second PCIe slot in my laptop... I was hoping to connect an external drive, dump the nvme, replace it, and restore it.
Can you clone from the nvme to the external drive then clone the external drive over to the new nvme once installed? If you have other stuff on the disk you can clone to a file but it will be a slower process:
Thank you, I ordered a USB case for my new m.2 now :)
I've done something like that before with ddrescue though the example on the Arch wiki ddrescue page shows how to copy an entire drive to another drive. Here's how to backup to a file instead:
But I'd reference the docs just to double-check: https://www.gnu.org/software/ddrescue/manual/ddrescue_manual.html
You might need to restore the image via Arch recovery mode with a bootable USB drive loaded with the Arch ISO however.