Transfer dual boot system to new drive ... how?

I’m getting a new NVME drive; same size as old one but pcie4 instead of 3 (lenovo actually sells pcie4 machines with pcie3 drives installed).

This is a dual boot: windows 10 pro and manjaro lenovo x1 carbon gen 9 (inxi below).

My question is: can I used dd to clone the original drive, put it in the laptop and have it boot as if nothing has happened. I fear windows will be unhappy with the change …


System:    Host: XXX Kernel: 5.12.9-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 Console: tty pts/1 
           Distro: Manjaro Linux base: Arch Linux 
Machine:   Type: Laptop System: LENOVO product: 20XW003GUS v: ThinkPad X1 Carbon Gen 9 serial: XXX 
           Mobo: LENOVO model: 20XW003GUS v: SDK0J40697 WIN serial: XXX UEFI: LENOVO v: N32ET66W (1.42 ) 
           date: 06/15/2021 
Battery:   ID-1: BAT0 charge: 34.4 Wh (61.3%) condition: 56.1/57.0 Wh (98.5%) volts: 15.9 min: 15.4 model: Celxpert 5B10W13974 
           status: Discharging 
CPU:       Info: Quad Core model: 11th Gen Intel Core i7-1165G7 bits: 64 type: MT MCP arch: Tiger Lake rev: 1 cache: 
           L2: 12 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 44864 
           Speed: 597 MHz min/max: 400/4700 MHz Core speeds (MHz): 1: 597 2: 1015 3: 865 4: 573 5: 795 6: 923 7: 985 8: 775 
Graphics:  Device-1: Intel Iris Xe Graphics vendor: Lenovo driver: i915 v: kernel bus-ID: 00:02.0 
           Device-2: Syntek Integrated Camera type: USB driver: uvcvideo bus-ID: 3-4:3 
           Display: server: X.Org 1.20.11 driver: loaded: intel unloaded: modesetting resolution: 1920x1200~60Hz 
           OpenGL: renderer: Mesa Intel Xe Graphics (TGL GT2) v: 4.6 Mesa 21.1.2 direct render: Yes 
Audio:     Device-1: Intel Tiger Lake-LP Smart Sound Audio vendor: Lenovo driver: sof-audio-pci-intel-tgl bus-ID: 00:1f.3 
           Sound Server-1: ALSA v: k5.12.9-1-MANJARO running: yes 
           Sound Server-2: JACK v: 0.125.0 running: no 
           Sound Server-3: PulseAudio v: 14.2 running: yes 
           Sound Server-4: PipeWire v: 0.3.30 running: no 
Network:   Device-1: Intel Wi-Fi 6 AX201 driver: iwlwifi v: kernel port: 3000 bus-ID: 00:14.3 
           IF: wlp0s20f3 state: up mac: 84:5c:f3:ea:e9:08 
Bluetooth: Device-1: Intel type: USB driver: btusb v: 0.8 bus-ID: 3-10:5 
           Report: rfkill ID: hci0 rfk-id: 2 state: up address: see --recommends 
Drives:    Local Storage: total: 953.87 GiB used: 356.04 GiB (37.3%) 
           ID-1: /dev/nvme0n1 vendor: Toshiba model: N/A size: 953.87 GiB temp: 33 C 
Partition: ID-1: / size: 865.96 GiB used: 356.04 GiB (41.1%) fs: ext4 dev: /dev/nvme0n1p7 
           ID-2: /boot/efi size: 499 MiB used: 308 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p6 
Swap:      ID-1: swap-1 type: partition size: 7.32 GiB used: 0 KiB (0.0%) dev: /dev/nvme0n1p5 
Sensors:   System Temperatures: cpu: 41.0 C mobo: N/A 
           Fan Speeds (RPM): cpu: 0 
Info:      Processes: 244 Uptime: 1d 10h 21m Memory: 15.36 GiB used: 3.51 GiB (22.8%) Init: systemd Compilers: gcc: 11.1.0 
           Packages: 1412 Shell: Bash v: 5.1.8 inxi: 3.3.04

Use Clonezilla or Rescuezilla. The latter is based on the former with an easier to use interface.

Tip: When pasting terminal output on Discourse forums, one can either…

  • Highlight it and use the Preformatted text </> toolbar button.

  • Add three backticks ` above and below the text (Markdown):


  • Use HTML:


Please edit your post accordingly.

1 Like

If you get in trouble then for sure not due to the Linux OS, hard to say if your firmware could have issues with this change, but this is unlikely as well. Make sure not to run both disks at the same time, i.e. disconnect the original disk after cloning.

Sadly, although the Toshiba and Samsung are both 1 Terabyte drives they are
NOT the same size and the currently installed Toshiba is the larger (the
Toshiba: 953.87 GiB; the Samsung: 931.51 GiB) so dd quits with an error
and the new drive is not correctly partitioned.

I tried using clonezilla with the “proportional sizing” of partitions but this too
failed, leaving misaligned broken partitions.

If I create the appropriate partitions on the new drive an use dd to copy
each partition, will the drive be bootable? (I guess not but could I chroot
into the copied Manjaro and run grub to get a bootable system?)

Quite at a loss …

Use the partition cloning option of Clonezilla and try, there is nothing to loose.

you can try qt-fsarchiver Live Disk maybe:

Did you try to shrink your partitions so that it fits the size of the new drive?

thanks for this (and all other suggestions) - the problem is that three
partitions are at the end of the drive: the windows recovery drive,
/boot/efi and the swap. I can get rid of the swap partition but not
the others. Shrinking my big manjaro partition can be done but
SFAIK this will not move the other partitions from their positions
at the very end of the drive - so dd would still error out at the end
of the new drive without copying these partitions. And I don’t think
you can move partitions around (if there is a way please let me

Sure you can move partitions with gparted.

Here’s gparted’s map of the partitions on the source drive:

I need to move the three partitions at the end to before nvme0n1p7 (where
the manjaro system resides). Then when dd copies it will end with an error
but all the data will have been copied.

I see how to shrink nvme0n1p7 and make room on the disk before it, but
I don’t see how to move the partitions at the end of the drive into that
new space.

But I may be looking at this all wrong …