Clone my manjaro install to a new harddrive

A great task! Cloning a Manjaro installation to a new hard drive is a relatively straightforward process. Here's a step-by-step guide to help you achieve this:

Preparation

  1. Backup your data: Before cloning your installation, make sure to backup any important files and data to an external drive or cloud storage.
  2. Prepare the new hard drive: Connect the new hard drive to your system and make sure it's recognized by your system. You can use the lsblk command to verify the new hard drive's device name (e.g., /dev/sdb).
  3. Boot into Manjaro: Boot your system into Manjaro to ensure you're running the live environment.

Cloning the installation

  1. Install Clonezilla: Clonezilla is a popular open-source tool for cloning hard drives. You can install it using the following command:

    sudo pacman -S clonezilla
  2. Create a bootable Clonezilla USB drive: Create a bootable Clonezilla USB drive using the following command:

    sudo dd if=/usr/share/clonezilla/clonezilla.iso of=/dev/sdc bs=4M

    Replace /dev/sdc with the device name of your USB drive.

  3. Boot into Clonezilla: Insert the Clonezilla USB drive and reboot your system. Select the Clonezilla option from the boot menu.

  4. Select the source and target: In the Clonezilla interface, select the "Device-Device" option and choose the source device (your current hard drive, e.g., /dev/sda) and the target device (the new hard drive, e.g., /dev/sdb).

  5. Start the cloning process: Click "Start" to begin the cloning process. Clonezilla will copy the entire hard drive, including the operating system, settings, and data.

Post-cloning steps

  1. Remove the Clonezilla USB drive: Once the cloning process is complete, remove the Clonezilla USB drive.
  2. Boot into the new installation: Reboot your system and select the new hard drive as the boot device. You should now be booting into your cloned Manjaro installation.
  3. Update the bootloader: Run the following command to update the bootloader:
    sudo update-grub
  4. Verify the installation: Double-check that everything is working as expected, including your network settings, user accounts, and installed software.

That's it! You should now have a cloned Manjaro installation on the new hard drive.