![](/static/253f0d9b/assets/icons/icon-96x96.png)
![](https://lemmy.world/pictrs/image/8286e071-7449-4413-a084-1eb5242e2cf4.png)
3·
1 year agoThere’s a few ways to go, I have used dd in the past to clone the existing drive out to a disk image on a USB SSD, then installed the new SSD in the system and did the process in reverse (and then used gparted to expand the partitions out to size).
There’s also cloning devices that can do this but I’ve only ever done that with traditional 3.5" and 2.5" disks, not m.2.
Whatever you do, make sure you have a backup of your important data before you make any attempt.
Make sure the dir you are mounting to exists. If it doesn’t, create it with:
mkdir /mn