How to clone m2 NVME SSD? For Free !

So you have a NVME M2 SSD and want to clone it. Good. I did the same thing a few days ago, so this article will be a step by step guide on how to do so for free using Ubuntu 16.04 LTS.

First, you will need to download both the sgdisk tool for manipulating GPT disks and the fdisk tool for manipulating MBR disks. You can install them with apt-get, so start up a terminal window if you don’t have one open already.

Now install sgdisk by running: sudo apt-get install sgdisk

and then install fdisk by running: sudo apt-get install fdisk

Ok now that we have everything we need installed let’s get started.

I’m going to be cloning my NVME M2 SSD (which is about 1TB) onto an external HDD (which is about 2TB). This guide should work with any size disk though as long as they are larger than the partition you want to clone.

Now plug in your disk and check what it’s called with lsblk: lsblk

It should be something like nvme0 or nvme1, but if yours is different another article on this blog might help you – [ LINK ]. Let’s assume ours is called /dev/nvme0n1 (which it is).

So now we’re going to find out what device our NVME drive has been assigned by taking a look at sudo fdisk -l: sudo fdisk -l

What we want here is the disk that shows up as “Disk /dev/nvme0: 111.8 GiB” (the one with about 110GB free space). This will probably be /dev/nvme0 unless you have other disks plugged into your computer the same time as the one you want to clone, so remember this for later.

Now we need to unmount our disk with sudo umount /dev/nvme0n1  (substitute nvme0n1 with whatever your disk is called if it’s different).

Next type in fdisk -l again and then write down the number that appears after “Device” (this is where things can get a little complicated) because we’re going to use that number later on when removing partitions.

Ok now let’s copy our source partition onto our target device by lsblk again to check what our target disk is called and then running the following command: sudo sgdisk -p /dev/sdx 1:204800:u:0x7f6e5345-part1  (substitute x with your disk’s letter, sd stands for standard device)

Ryan MacWha

I am Ryan! I write about performance-driven and reliable SSDs. I can save your time in decision-making. How about you?