Help moving Dual boot HDD to Manjaro SSD

I have two drives, both 500gb:

SSD: Manjaro installed alone, single boot

HDD: Dual boot Manjaro and Windows 10

I’d like to copy my Windows installation from the HDD to the SSD with Manjaro already installed.

Is this as easy as creating new partitions on the existing Manjaro SSD, then cloning the Windows partitions over, then update-grub?

Any guidance is appreciated.

Thanks in advance.

Try to use clonezilla or any other disk cloning software from a live ISO boot and clone the whole disk. Afterwards boot without the old HDD disk beeing connected. It could be required to assign the SSD as boot device in your firmware.

Thanks for the reply.

Sorry I wasn’t more clear. I want to replace the Manjaro install on the dual boot HDD (*which is old and outdated) with the newer, up-to-date Manjaro install that is installed stand alone on the SSD.

So the SSD, has ample space and an up-to-date Manjaro install. I have room to partition the remaining space on the SSD and add the Windows install from the HDD, but didn’t know if there are specific caveats with this.

First provide

inxi -Fxxxza --no-host
sudo parted -l
sudo efibootmgr -v
cat /etc/fstab {this command to be executed from your fresh Manjaro install}
[david@david-pc ~]$ inxi -Fxxxza --no-host
Kernel: 5.4.89-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.1 
parameters: BOOT_IMAGE=/boot/vmlinuz-5.4-x86_64 
root=UUID=ce7f22f1-b420-4c0b-af47-de7841dda8ed rw quiet 
Desktop: Xfce 4.16.0 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm4 
dm: LightDM 1.30.0 Distro: Manjaro Linux 
Type: Laptop System: Acer product: Aspire 5741 v: V1.23 serial: <filter> 
Mobo: Acer model: Aspire 5741 v: V1.23 serial: <filter> BIOS: Acer v: 1.23 
date: 04/25/2011 
ID-1: BAT0 charge: 11.3 Wh condition: 15.4/47.5 Wh (32%) volts: 12.2/10.8 
model: SANYO Li_Ion_4000mA type: Li-ion serial: <filter> status: Unknown 
Info: Dual Core model: Intel Core i3 M 350 bits: 64 type: MT MCP 
arch: Nehalem family: 6 model-id: 25 (37) stepping: 2 microcode: 11 
L2 cache: 3 MiB 
flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 18093 
Speed: 1432 MHz min/max: 933/2266 MHz Core speeds (MHz): 1: 1432 2: 1317 
3: 1301 4: 1447 
Vulnerabilities: Type: itlb_multihit status: KVM: Split huge pages 
Type: l1tf 
mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
Type: mds status: Vulnerable: Clear CPU buffers attempted, no microcode; 
SMT vulnerable 
Type: meltdown mitigation: PTI 
Type: spec_store_bypass 
mitigation: Speculative Store Bypass disabled via prctl and seccomp 
Type: spectre_v1 
mitigation: usercopy/swapgs barriers and __user pointer sanitization 
Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, 
IBRS_FW, STIBP: conditional, RSB filling 
Type: srbds status: Not affected 
Type: tsx_async_abort status: Not affected 
Device-1: Intel Core Processor Integrated Graphics 
vendor: Acer Incorporated ALI driver: i915 v: kernel bus ID: 00:02.0 
chip ID: 8086:0046 
Device-2: ALi Gateway Webcam type: USB driver: uvcvideo bus ID: 1-1.1:3 
chip ID: 0402:9665 
Display: x11 server: X.Org 1.20.10 driver: loaded: intel display ID: :0.0 
screens: 1 
Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.2x8.0") 
s-diag: 414mm (16.3") 
Monitor-1: LVDS1 res: 1366x768 hz: 60 dpi: 102 size: 340x190mm (13.4x7.5") 
diag: 389mm (15.3") 
OpenGL: renderer: Mesa DRI Intel HD Graphics (ILK) v: 2.1 Mesa 20.3.3 
direct render: Yes 
Device-1: Intel 5 Series/3400 Series High Definition Audio 
vendor: Acer Incorporated ALI driver: snd_hda_intel v: kernel 
bus ID: 00:1b.0 chip ID: 8086:3b56 
Sound Server: ALSA v: k5.4.89-1-MANJARO 
Device-1: Broadcom NetLink BCM57780 Gigabit Ethernet PCIe 
vendor: Acer Incorporated ALI driver: tg3 v: 3.137 port: 3000 
bus ID: 01:00.0 chip ID: 14e4:1692 
IF: enp1s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Device-2: Broadcom BCM43225 802.11b/g/n 
vendor: Foxconn T77H103.00 Wireless Half-size Mini PCIe Card driver: wl 
v: kernel modules: bcma port: 3000 bus ID: 02:00.0 chip ID: 14e4:4357 
IF: wlp2s0 state: up mac: <filter> 
 Local Storage: total: 931.52 GiB used: 458.09 GiB (49.2%) 
SMART Message: Required tool smartctl not installed. Check --recommends 
ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 850 EVO 500GB 
size: 465.76 GiB block size: physical: 512 B logical: 512 B 
speed: 3.0 Gb/s serial: <filter> rev: 3B6Q 
ID-2: /dev/sdb maj-min: 8:16 type: USB model: Mass Storage Device 
size: 465.76 GiB block size: physical: 512 B logical: 512 B 
serial: <filter> 
ID-1: / raw size: 457.98 GiB size: 449.8 GiB (98.21%) 
used: 172.79 GiB (38.4%) fs: ext4 dev: /dev/sda1 maj-min: 8:1 
Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
ID-1: swap-1 type: partition size: 7.77 GiB used: 0 KiB (0.0%) 
priority: -2 dev: /dev/sda2 maj-min: 8:2 
System Temperatures: cpu: 46.0 C mobo: N/A 
Fan Speeds (RPM): N/A 
Processes: 227 Uptime: 1d 15h 02m wakeups: 1 Memory: 3.53 GiB 
used: 1.84 GiB (52.2%) Init: systemd v: 247 Compilers: gcc: 10.2.0 
Packages: pacman: 1344 lib: 394 flatpak: 0 Shell: Bash v: 5.1.0 
running in: xfce4-terminal inxi: 3.2.02 
[david@david-pc ~]$
[david@david-pc ~]$ sudo parted -l
[sudo] password for david: 
Model: ATA Samsung SSD 850 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End    Size    Type     File system     Flags
 1      1049kB  492GB  492GB   primary  ext4
 2      492GB   500GB  8347MB  primary  linux-swap(v1)

Model:  Mass Storage Device (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type      File system  Flags
  1      32.3kB  12.9GB  12.9GB  primary   ntfs         msftres
  2      12.9GB  13.0GB  107MB   primary   ntfs         boot
  3      13.0GB  204GB   191GB   primary   ntfs
  4      204GB   500GB   296GB   extended               lba
  5      204GB   213GB   8661MB  logical   ntfs
  7      213GB   254GB   41.9GB  logical   ext4
  6      254GB   500GB   246GB   logical   ntfs

[david@david-pc ~]$
[david@david-pc ~]$ sudo efibootmgr -v
EFI variables are not supported on this system.
[david@david-pc ~]$ cat /etc/fstab
# /etc/fstab: static file system information.
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=ce7f22f1-b420-4c0b-af47-de7841dda8ed /              ext4    defaults,noatime 0 1
UUID=a143b1f8-f9fe-4b13-b5e4-fa4045542c7c swap           swap    defaults,noatime 0 2
/data/Music /srv/nfs/Music none bind 0 0
 server01:/nfs/music   /data/music  nfs auto,x-systemd.automount,x-systemd.device- 
timeout=10,timeo=14,x-systemd.idle-timeout=1min 0 0

OK here we go. So let’s summarize your plan:
You want to migrate Windoze to the SSD and contiue to use the existing Manjaro installed on the SSD. I think you only can keep your Manjaro on the SSD if you get it shrinked to place it temporary on the HDD (or to another backup location of course). If that’s right then I would do the following:

  1. Backup!!
  2. Make sure you have a live ISO ready with GParted and clonezilla
  3. Boot into live ISO
  4. Delete the not further used partition /dev/sdb7 (old Linux system)
  5. Make as much as possible space available on /dev/sdb
  6. Shrink /dev/sda1 as much as possible
  7. Verifiy if you could copy /dev/sda1 to the free space on /dev/sdb

8a) If that’s not possible - sorry my suggestion won’t work!
8b) If copying is possible, then proceed with copying /dev/sda1 to /dev/sdb

  1. Delete the swap partiton entry from your /etc/fstab
  2. Use clonezilla to clone your HDD to your SDD
  3. Restore the boot loader (grub’s boot loader needs to go into MBR of /dev/sda)
  4. Reboot and run sudo update-grub, reboot again.
  5. Recreate a swap partiton and make the entry in /etc/fstab

First - thanks for all your help.

Could I alternatively

  1. Shrink the Manjaro partition on SSD with Gparted
  2. Partition the new “unallocated” space on the SSD to match the Windows partitions on the HDD
  3. Use clonezilla to copy the windows partitions from HDD to the new partitions on SSD.
  4. Fix flags

I doubt this would work, as a Windoze clone usually only works if it sits exactly at the same sectors as it was and also partition table should be identical etc. Hard to achieve by clonezilla I guess if you leave the Manjaro partiton.

Ahh dang, well thanks. There is no way I can fit the new Manjaro partition from the ssd into the old Manjaro install on the HDD. Too big of a size difference. (40gb vs 180 gb).

I’ll keep exploring.

Wollie, I took a second look and I had an adjacent partition that I was able to delete to make room for the Manjaro install (from the SSD). Here is what I’ve done so far:

-Cloned the HDD with Dual Boot Windows and (older) Manjaro(X) and verified it’s function
-Removed the adjacent partition on the above, and expanded the Manjaro(X) partition to allow
adequate room for the Manjaro(A) install I desire from the SSD.

  • Mounted the Manjaro(X) partition using a live environment and deleted all of it’s contents
  • Copied all the contents of Manjaro(A) partition from the SSD to the emptied partition of the HDD

Once it’s all copied over, going to put the newly copied drive over and see if it boots, and functions as desired. If so I’ll then clone it to the SSD.

So copying the partition did not work, as I suspected it might not.

I will clone Manjaro(A) on the SSD, resize, then clone the resized partition to the new partition on the HDD. Once I confirm it’s working, I’ll clone the whole shabang to the SSD.