Running Out of Space? How to Clone Your Linux System Drive to a Larger SSD With CloneZilla

Any computer can run out of space. The answer is to add more storage – but what if there is nowhere to add a physical drive? You could try an external disk drive, but these can be temperamental. They’re also not ideal for laptops.

For many, the solution is to replace the existing HDD or SSD with a larger capacity device. Better still, you can clone the existing operating system and personal data to the new drive without spending hours reinstalling and restoring backups.

4

Why You Might Need a New Storage Device

Perhaps your existing storage is too small, or perhaps it is on its way out. It might be too small. You might even be dragging yourself into the 2020s and switching to a SATA SSD or even an NVMe device (here’show SATA and NVMe differ).

Whatever your reason for replacing the existing storage device on your computer, if you wish to retain the operating system and files, cloning the system drive is the best option (providing there are no viruses on the old drive).

muo-linux-new-hdd-clone-ssd-featured

The rest of this guide assumes you have already chosen and bought a new SSD or HDD for your Linux computer. Note that these steps only cover cloning disks of the same capacity or from a smaller disk to a larger device.

What Disks Can You Clone?

Using this method, you can expect to be able to clone:

(SSD covers anything from 2.5-inch SATA devices to M.2 interface NVMe drives).

Find the ISO to burn

As long as the destination drive has an equal or larger capacity than the source drive, cloning should be successful.

Two Methods to Clone Your Linux Drive: dd and CloneZilla

If you want to clone your main storage device you have two options

Each option is explained further below.

Create a bootable USB with Unetbootin

Before proceeding, ensure the new SSD is connected to your computer. For a desktop PC, this might mean installing the disk internally straight away. If you would rather avoid disassembling your computer at this point, and particularly if you’re using a laptop, aUSB to SATA adapteris an affordable time saver.

Cloning Your SSD With dd

Using dd is simple. Open a terminal, and check the names of any attached drives:

Make a note of the drive names. The internal device is typicallysda, but you can check the labels in your distro’s partition editor if you’re uncertain.

CloneZilla main menu

The clone command takes this form:

Here, if is the source disk path, and of is the destination path. If the drive you’re cloning is sda and the new disk that you plan to clone to is sdb, then the command would be:

This can take a while, so be patient. Consult our guide tocloning and restoring disks with ddfor more information.

Why CloneZilla Live ISO Is Better for Full Disk to Disk Cloning

Although you can enjoy fast, accurate results from using dd, it has a key shortcoming. If you are planning to completely replace the disk in your computer with the new device, you need a complete clone.

Unfortunately, running dd from within the terminal of a running PC isn’t going to make a full clone. This approach copies everything, personal data and OS included, but not the bootloader.

Because you need GRUB to boot Linux, you need a different approach, one that will clone everything, bootloader included. This is where CloneZilla’s Live ISO environment comes in.

How to Use CloneZilla to Clone a Linux Drive

CloneZilla is a live environment that you can boot your computer into. It can be installed onto a DVD or USB flash device, and is the best way to completely clone the data on the old disk drive in your computer to a new one.

Download the CloneZilla ISO

Start by grabbing your copy of CloneZilla. I’ve provided the link for the stable version, but you will need to set:

Of these options, the only one you need to take particularly care with is the first. If your computer has a 64-bit CPU (regardless of whether it is AMD or Intel) you should chooseamd64. For 32-bit systems, use i686, and if this doesn’t work, use i686-PAE.

Strictly speaking, the file type depends on whether you’re using disc or USB media. However, the smart option is to download theISOfile and use Unetbootin to make a bootable USB device.

The download repository shouldn’t make much difference, and can be left asauto.

It is possible to burn the ISO to a CD/DVD if desired. In this case, use a tool like Brasero or whatever your distro’s default disc burning tool is.

Write the CloneZilla Live ISO to USB

After downloading the Unetbootin .bin file, double-click to run. You’ll see a notification advising you to run the file as root from your terminal. The command is something like

The file path will differ for your computer. Run this, then in the main UNetbootin interface:

When you’re ready to create the bootable CloneZilla USB, clickOK

Reboot Your PC or Laptop With the CloneZilla Live USB

Once the UNetbootin process has completed, restart your PC and boot from the device.

This typically means accessing the boot menu, which can usually be done by pressing a button on your keyboard as the computer reboots. For example, The HP I am using requires the Esc key to be pressed. Yours might be F2 or F8, F12, perhaps Del – it depends on the system manufacturer.

Check your computer’s documentation, or search online with a phrase like “open boot menu [computer model]” to learn how to access the boot menu.

With the boot menu accessed, select the USB stick you burned CloneZilla to.

Clone One Disk to Another With CloneZilla

You’ll see a list of eight options when CloneZilla starts. It’s a powerful tool with various uses, but for cloning one disk to another you can simply select the first option and hitEnter. Note that the interface can be controlled by keyboard or by mouse (the rectangular cursor substituting the usual mouse pointer).

Next select your preferredlanguageandkeyboardoptions, thenStart_Clonezilla. To clone your disk:

Cloning will then commence. How long it takes will depend on how much data you’re cloning.

The process should complete by shutting down your computer.

You’re now ready to install the new HDD or SSD storage in your computer, and can be confident that it will boot as if it was the original disk.

Cloning With CloneZilla Is Surprisingly Easy

Having tested the procedure with dd and finding that the bootloader was not cloned, repeating with CloneZilla was a breeze.

Only the second option will allow you to boot your computer using the new drive. If you have switched to a larger drive, you might consider extending the partition. check that you resize the partition safely, without losing any data.

Making changes to disk partitions without breaking up your system is easy on Linux. Here’s how to do it.

Tor spoiled me forever.

Turn these settings on, and your iPhone will be so much better than before.

You can block out the constant surveillance and restore your privacy with a few quick changes.

I gripped my chair the entire time—and then kept thinking about it when the screen turned off.

Revolutionize your driving experience with these game-changing CarPlay additions.

Technology Explained

PC & Mobile