What is the best way to upgrade a primary hard drive (M.2 Drive)

Hi @rob215x

Frankly, I don’t know why CloneZilla would not list your NVMe device in disk to disk mode; unless it wasn’t configured properly in BIOS; which is unlikely if you can see partitions in partition to partition mode.

It’s hard to know without seeing through your eyes. :eyes:

However, I have just created a walkthrough (of sorts) which you might like to use as a guide. :guide_dog:

I hope it helps. Cheers.

2 Likes

Hi, which version of Clonezilla are you using?
“Stable” is based on Debian, so you might want to try “alternative stable”, which is based on Ubuntu and must ship a more recent kernel.

If that doesn’t help, you could then try the “alternative testing”, which even more recent!

Don’t be afraid of the word “testing”, in my experience I never had an stability issue with one of those…

Hope this helps!

He is using the version of CloneZilla that ships with Manjaro

Debian? Ubuntu? What are you smoking?

Yeah, my bad, I read too quickly and I thought he was using a Clonezilla live CD.

Even if you are writing, and not speaking to me, I would still recommend a quick change of tone, thanks!

You should have a look on the download page of the live CD of Clonezilla, that would help refresh your memory about the reasons why I’m talking of Debian and Ubuntu:
https://clonezilla.org/downloads.php

And if he was using one of those, he would perhaps be able to see is NVMe, because the version of Clonezilla shiping with Manjaro/Arch Linux is the last stable, but is also really old:
https://packages.manjaro.org/?query=clonezilla
Version 3.35.2-5, which is dated from 2019-07-12:
https://free.nchc.org.tw/drbl-core/src/stable/
The last unstable is 5 days old:
https://free.nchc.org.tw/drbl-core/src/unstable/
And that’s why it’s one of the only AUR packages I’m building and using on my system, when I want to clone the 3 discs full of other OS I have in my PC…

Otherwise, I’m always using a live CD from Clonezilla directly for any other computer, and I think he should also, because there’s more chance that he sees his NVMe.

Back to the topic: @rob215x if I were you, I would give a try to one of the official Clonezilla live CD, because in my case a few month ago, I was able to clone my OS in disk to disk mode from a Samsung 860 Pro SSD to a Samsung 980 Pro NVMe, which was detected without any problem at all…

Good luck!

Okay! I am writing this on my machine with the NEW nvme installed!!

First, thanks for everyone’s help!!

To summarize, here’s what I did:

  • Booted from my Manjaro USB installer
  • Ran sudo pacman -S clonezilla to update the version of CloneZilla that came on the installer.
  • Ran GParted and formatted the new nvme drive.
  • Ran CloneZilla. Since it did NOT show my nvme boot drive in the drive-to-drive options but it DID show the 2 partitions on my boot drive, I just opted to clone the 2 partitions, one at a time.
  • I used advanced mode but kept all of the default options. When cloning the main data partition, I selected the “-k1” option, as suggested by @Pippin. This expanded the partition to the available space on the new drive.
  • Cloning the 1TB nvme to my new 2TB nvme took about 5 hours! I don’t know if that’s normal of if I didn’t get a great nvme to USB adapter from Amazon? It had good ratings! lol
  • After the cloning was complete, I shut down, unplugged everything, removed the old nvme from its slot on the motherboard and installed the new one.
  • My computer booted right up! I didn’t have to do anything else!! All my other drives are mounted (My system has 5 HDDs). I started Steam, connected my XBox controller with Bluetooth, and played Elden Ring for 15 min. I checked my ollama AI server and it all works!

Thanks again!

4 Likes

I had this draft mostly typed out, but with so much talk about Clonezilla I refrained from posting. I have PTSD from older versions of Clonezilla. But here you go, just in case you want the other information.

I’m sure this can work, but I wouldn’t go near it. I prefer block level transfers for situations like this.

I love this method since it doesn’t care about partitions, filesystems, architecture, or anything. And it’s simple. The biggest downsides are that it copies empty space (so it can be much slower), and you will also have to resize after.

I find this method the most reliable and efficient, you have some really neat options here. But there are a few steps.

  1. You can create the partitions and filesystems yourself with your partition manager of choice. Keep the layout you have, but for an example, I’ll use something like:

    /dev/sdd1 /boot vfat (300 MB)
    /dev/sdd2 root btrfs (Remaining space)
    /dev/sdd3 swap (X GB)

    You can also copy over the whole partition table instead (which will leave 1TB of unallocated space) as the dd method does, but this is only a few kB.

    sudo sgdisk --backup=nvme0n1.gpt /dev/nvme0n1
    sudo sgdisk --load-backup=nvme0n1.gpt /dev/sdd
    

    Where nvme0n1.gpt is the path/file to store it temporarily. Filesystems will have to be made after e.g. mkfs.btrfs /dev/nvme0n1p2

  2. With btrtfs add/remove, it is the same as replace.

    btrfs device add /dev/sdd2 /
    (Assuming the second partition is the btrfs filesystem.)

    This adds the new drive to the same filesystem, no RAID or anything, just to the pool. So it will sit there empty to start.

    btrfs device remove /dev/nvme0n1p2 /

    This step will take a while, as it moves all the data, snapshots and all to the new drive.

    If you have a single snapshot you only want from the old filesystem, there is a much more efficient command to do this transfer. I’ll leave that out, unless you want this.

  3. With the EFI parititon you can dd if it’s exactly the same size, or just cp -a it mounting both. Should be quick either way.

  4. Live boot, chroot and update grub. (And if applicable, point the BIOS to boot the new drive.)

Perhaps you should take your own advice, and have another look. Note that the link you have now given is the download page for CloneZilla Live - Live Environment ISO’s based on Debian and Ubuntu, respectively. CloneZilla is a standalone application which just happens to also be available on bootable Live Environments. These are irrelevant considering the OP is using the Manjaro Installer (another Live Environment) to perform the operation.

There are CloneZilla versions, but not in the way you suggest; the versions are not dependent upon a Live ISO platform. However, it seems the CloneZilla Live ISO’s are what you actually meant, but failed to articulate. Thus, the confusion, which might have been avoided if you had been specific enough to indicate that these ISO’s were what you referred to.

Your mistake was clearly realised later:

Yet, you decided to suggest that I should “refresh [my] memory about the reasons why [you are] talking about Debian and Ubuntu” when the comment I responded to gave no clear indication at all. Where’s the logic?

My comment (that you reacted to) was intended lightheartedly; whether or not you took it that way is not of my concern. I suggest keeping your recommendations for a situation where they are actually warranted.

Cheers.

Aside:- I often use and sometimes recommend (for convenience) the PartedMagic Live ISO, which has both CloneZilla and GParted (along with many other handy tools) available by default. In this instance, it seemed more prudent to stick to the tools known to be immediately available to the OP.

You want a recommendation for a good surgeon? One that specializes in, or good with foreign body removals.

That’s the way I feel about cloning.

I didn’t realise you would use a USB adapter, but yes, that would have taken longer than direct disk to disk via internal connectors.

That coupled with the amount of data and respective NVMe capacities should definitely demand extra patience. Even using images can often be faster; subject only to the limitations of whatever hardware you have to work with.

Enjoy your extra space.

Cheers.

I know a decent panel beater; if that’s an option.

First get it removed, then beat the panels…

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.