Move manjaro partition from a dual boot hdd to a ssd

Hi everyone,
I have an HDD that has dual boot with Windows and Manjaro, I want to move the partition with Manjaro to a SSD so that Windows is on the HDD and Manjaro on the SSD.
I have looked at some posts of similar problems but none equal to mine, in these they use CloneZilla as a solution to migrate the partition. The problem is that, according to what I have read, if I did this with CloneZilla, I could not start the pc with the HDD with the Manjaro partition connected, that is, it would have to be already deleted because otherwise there would be a conflict,
Any help would be greatly appreciated., Thanks

If you use btrfs as filesystem there is a possible solution at
https://wiki.manjaro.org/index.php/Btrfs#move_a_volume

Making a timeshift backup then doing a fresh install of manjaro and restoring the backup on your new drive might work. Need to check your grub and fstab, someone more knowledgeable will know

Please provide output of

test -d /sys/firmware/efi && echo efi || echo bios
sudo fdisk -l
sudo blkid
cat /etc/fstab
cat /etc/default/grub
test -d /sys/firmware/efi && echo efi || echo bios
efi

sudo fdisk -l
La tabla GPT de respaldo est√° da√Īada, pero la primera parece que est√° bien, as√≠ que esa ser√° la que se utilice.
La tabla GPT de respaldo no est√° al final del dispositivo.
Disco /dev/sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectores
Modelo de disco: WDC WD10SPZX-24Z
Unidades: sectores de 1 * 512 = 512 bytes
Tama√Īo de sector (l√≥gico/f√≠sico): 512 bytes / 4096 bytes
Tama√Īo de E/S (m√≠nimo/√≥ptimo): 4096 bytes / 4096 bytes
Tipo de etiqueta de disco: gpt
Identificador del disco: 2DEB47EF-54DE-4044-B885-70A0766CFF67

Disposit.   Comienzo      Final   Sectores Tama√Īo Tipo
/dev/sda1         34      32767      32734    16M Reservado para Microsoft
/dev/sda2      32768     237567     204800   100M Sistema EFI
/dev/sda3     237568  128168925  127931358    61G Datos b√°sicos de Microsoft
/dev/sda4  253241344  254355455    1114112   544M Entorno de recuperación de Win
/dev/sda5  254357688 1953407613 1699049926 810.2G Datos b√°sicos de Microsoft
/dev/sda6  128168926  243001343  114832418  54.8G Sistema de ficheros de Linux
/dev/sda7  243001344  253241343   10240000   4.9G Linux swap

La partición 1 no empieza en el límite del sector físico.
La partición 6 no empieza en el límite del sector físico.
Las entradas de la tabla de particiones no est√°n en el orden del disco.


Disco /dev/loop0: 217.41 MiB, 227971072 bytes, 445256 sectores
Unidades: sectores de 1 * 512 = 512 bytes
Tama√Īo de sector (l√≥gico/f√≠sico): 512 bytes / 512 bytes
Tama√Īo de E/S (m√≠nimo/√≥ptimo): 512 bytes / 512 bytes


Disco /dev/loop1: 99.44 MiB, 104271872 bytes, 203656 sectores
Unidades: sectores de 1 * 512 = 512 bytes
Tama√Īo de sector (l√≥gico/f√≠sico): 512 bytes / 512 bytes
Tama√Īo de E/S (m√≠nimo/√≥ptimo): 512 bytes / 512 bytes


Disco /dev/loop2: 222.23 MiB, 233029632 bytes, 455136 sectores
Unidades: sectores de 1 * 512 = 512 bytes
Tama√Īo de sector (l√≥gico/f√≠sico): 512 bytes / 512 bytes
Tama√Īo de E/S (m√≠nimo/√≥ptimo): 512 bytes / 512 bytes


Disco /dev/loop3: 99.44 MiB, 104267776 bytes, 203648 sectores
Unidades: sectores de 1 * 512 = 512 bytes
Tama√Īo de sector (l√≥gico/f√≠sico): 512 bytes / 512 bytes
Tama√Īo de E/S (m√≠nimo/√≥ptimo): 512 bytes / 512 bytes


Disco /dev/loop4: 55.5 MiB, 58191872 bytes, 113656 sectores
Unidades: sectores de 1 * 512 = 512 bytes
Tama√Īo de sector (l√≥gico/f√≠sico): 512 bytes / 512 bytes
Tama√Īo de E/S (m√≠nimo/√≥ptimo): 512 bytes / 512 bytes


Disco /dev/loop5: 55.49 MiB, 58183680 bytes, 113640 sectores
Unidades: sectores de 1 * 512 = 512 bytes
Tama√Īo de sector (l√≥gico/f√≠sico): 512 bytes / 512 bytes
Tama√Īo de E/S (m√≠nimo/√≥ptimo): 512 bytes / 512 bytes


Disco /dev/loop6: 26.24 MiB, 27512832 bytes, 53736 sectores
Unidades: sectores de 1 * 512 = 512 bytes
Tama√Īo de sector (l√≥gico/f√≠sico): 512 bytes / 512 bytes
Tama√Īo de E/S (m√≠nimo/√≥ptimo): 512 bytes / 512 bytes


Disco /dev/loop7: 26.4 MiB, 27684864 bytes, 54072 sectores
Unidades: sectores de 1 * 512 = 512 bytes
Tama√Īo de sector (l√≥gico/f√≠sico): 512 bytes / 512 bytes
Tama√Īo de E/S (m√≠nimo/√≥ptimo): 512 bytes / 512 bytes


Disco /dev/loop8: 168.13 MiB, 176295936 bytes, 344328 sectores
Unidades: sectores de 1 * 512 = 512 bytes
Tama√Īo de sector (l√≥gico/f√≠sico): 512 bytes / 512 bytes
Tama√Īo de E/S (m√≠nimo/√≥ptimo): 512 bytes / 512 bytes


Disco /dev/loop9: 168.14 MiB, 176304128 bytes, 344344 sectores
Unidades: sectores de 1 * 512 = 512 bytes
Tama√Īo de sector (l√≥gico/f√≠sico): 512 bytes / 512 bytes
Tama√Īo de E/S (m√≠nimo/√≥ptimo): 512 bytes / 512 bytes


sudo blkid
/dev/loop1: TYPE="squashfs"
/dev/loop8: TYPE="squashfs"
/dev/loop6: TYPE="squashfs"
/dev/loop4: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop0: TYPE="squashfs"
/dev/loop9: TYPE="squashfs"
/dev/loop7: TYPE="squashfs"
/dev/sda4: BLOCK_SIZE="512" UUID="1AD45799D457764B" TYPE="ntfs" PARTUUID="fe95c335-175d-4f54-802d-56f7f4ce3521"
/dev/sda2: UUID="2CB6-DB37" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="fb3b8bbd-460c-410e-86be-4eded813edcb"
/dev/sda7: UUID="f96081bf-0e2d-4a21-b15a-1cd20940d237" TYPE="swap" PARTUUID="c884c91a-0230-fb41-be2c-0f15eebf28ca"
/dev/sda5: BLOCK_SIZE="512" UUID="0BE210280BE21028" TYPE="ntfs" PARTUUID="d69baf2f-a1ea-11eb-90f8-b42e9956571b"
/dev/sda3: BLOCK_SIZE="512" UUID="4A46E5A546E5924D" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="c04baaab-23bc-49c9-853f-4d0c4caced15"
/dev/sda1: PARTLABEL="Microsoft reserved partition" PARTUUID="d4dd958f-2bf6-4632-8820-932b84c01813"
/dev/sda6: UUID="187d24d4-1a3e-49ba-b166-fc0d40d3a273" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="4f4cea39-0a4b-604b-87d9-76ca2b989f84"
/dev/loop5: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"

cat /etc/fstab
# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=2CB6-DB37                            /boot/efi      vfat    umask=0077 0 2
UUID=187d24d4-1a3e-49ba-b166-fc0d40d3a273 /              ext4    defaults,noatime 0 1
UUID=f96081bf-0e2d-4a21-b15a-1cd20940d237 swap           swap    defaults,noatime 0 0

cat /etc/default/grub
GRUB_DEFAULT=saved
GRUB_TIMEOUT=5
GRUB_TIMEOUT_STYLE=hidden
GRUB_DISTRIBUTOR="Manjaro"
GRUB_CMDLINE_LINUX_DEFAULT="quiet apparmor=1 security=apparmor resume=UUID=f96081bf-0e2d-4a21-b15a-1cd20940d237 udev.log_priority=3"
GRUB_CMDLINE_LINUX=""

# If you want to enable the save default function, uncomment the following
# line, and set GRUB_DEFAULT to saved.
GRUB_SAVEDEFAULT=true

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command 'videoinfo'
GRUB_GFXMODE=auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment this option to enable os-prober execution in the grub-mkconfig command
GRUB_DISABLE_OS_PROBER=false

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
GRUB_COLOR_NORMAL="light-gray/black"
GRUB_COLOR_HIGHLIGHT="green/black"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/usr/share/grub/background.png"
#GRUB_THEME="/path/to/gfxtheme"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

# Uncomment to ensure that the root filesystem is mounted read-only so that
# systemd-fsck can run the check automatically. We use 'fsck' by default, which
# needs 'rw' as boot parameter, to avoid delay in boot-time. 'fsck' needs to be
# removed from 'mkinitcpio.conf' to make 'systemd-fsck' work.
# See also Arch-Wiki: https://wiki.archlinux.org/index.php/Fsck#Boot_time_checking
#GRUB_ROOT_FS_RO=true


In your case I would do the following:

  1. Format your SSD in gpt.
  2. Prepare a new ESP on your SSD with at least 260 MiB, format it in vfat and set boot and efi flags.
  3. Use Gparted started from a live ISO to copy your root partition to the SSD.
  4. Make a swap partition on the SSD.
  5. Mount the root partition of the SSD and change the following files: /etc/fstab and etc/default/grub.
  6. In /etc/fstab you have to correct all the UUID’s to the new UUID’s of the SSD.

In /etc/default/grub you have to replace

GRUB_TIMEOUT_STYLE=hidden

by

GRUB_TIMEOUT_STYLE=menu

After those changes have been made, boot a live ISO and manjaro-chroot into your install on the SSD. Restore the bootloader and then run

sudo update-grub
sudo mkinitcpio -P

Then leave chroot environment by exit twice.

Afterwards, boot into your firmware and make sure you can boot into your new SSD. After a boot you should see Manjaro and Windoze boot entries in the grub menu.

1 Like