For new Linux users, it can be a bit daunting to back up your Linux installation. Many articles go over setting up complicated command-line based systems, persuade users to purchase expensive cloud storage, or outright tell users to just get more hard drive space. There is an easier way: Gnome Disk Utility.
SPOILER ALERT: Scroll down and watch the video tutorial at the end of this article.
Gnome disks is a part of the Gnome desktop environment. With this tool, users can create raw backup images of hard drives, individual partitions, USB devices, and even SD cards. Additionally, it is possible to test hard drives with a S.M.A.R.T. test. This is great because it’ll let you know when a drive is about to fail. It also displays temperature readouts too. This information is good and makes it so users are more likely to want to backup their data. You can use it to back up your Linux installation without jumping through hoops.
Installing Gnome Disks
Gnome Disks is probably already installed if Gnome is on your Linux desktop, as it is one of the most used hard drive monitoring and backup tools for Linux. If not, installing it is pretty easy. Open the Gnome Software store, search for “Disk Utility”, and install it. Alternatively, install it with a command inside a terminal window:
sudo pacman -S gnome-disk-utility
sudo apt install gnome-disk-utility
sudo apt-install gnome-disk-utility
sudo dnf install gnome-disk-utility
sudo zypper install gnome-disk-utility
If your Linux distribution is not listed here, do not worry. Gnome is very, very popular. Think of the way that you normally install software to your favorite Linux distribution, and search for “gnome-disk-utility”. This can be done via the command line and the package manager, or via an app store that your operating system comes with.
Backing Up Hard Drives
Open the disk utilit by searching through your applications for “disks”. When it’s open, notice that there is a list of all connected data devices. To manage individual hard drives, select one from the list. Keep in mind that Gnome disks will allow the user to work with all kinds of data storage devices. This means if you have data to back up, but it’s not a PC hard drive, this method works too. Gnome disks is excellent for backing up all sorts of devices.
With the hard drive you want to back up selected, find the “hamburger” menu (the menu next to the minimize/maximize window controls) and click on it. Find the option that says “create disk image” and click it. This tells Gnome Disk Utility to make a raw .IMG file of the entire hard drive. This includes Bootloaders, partitions, data, and everything else. It’s essentially a snapshot of your computer.
Be sure to connect a second hard drive to save this file, as the disk image will be very large and will not save if there isn’t enough space. When the disk image file has saved, Gnome disks will start backing up the hard drive. This will take some time. Be patient.
Backing Up Partitions
The Gnome Disk Utility tool allows users to get real deep when it comes to backing up their data. The utility can back up your Linux installation and make raw disk image backups of individual partitions. First, find the hard drive where you want to back up the data in the list and click it. Then, click the individual partition to back up in the graphical overview of the hard drive.
Highlight a partition, and then click on the “additional partition options” button. From here, click the option in the menu that says “Create Partition Image”. This will prompt the user to find a place to save the individual partition image.
Note: though partitions are often smaller than backing up an entire hard drive to a disk image, it’s still a good idea to connect an external hard drive, or USB flash drive to save the disk image for safe keeping.
With the partition image saved, Gnome Disk Utility starts backing up.
Restoring Hard Drives
To restore a hard drive image, open Gnome Disks and select the hard drive from the list. Click the hamburger menu, and select the option to “Restore Disk Image”. Navigate to where the hard drive image was saved during the backup process, and select it to start the restoration process. Much like backing up, restoring it will take a bit of time.
In Gnome Disks, find and select the hard drive that you want to restore data from in the list. Then click the “additional partition options” button. Inside this menu, select “Restore Partition” button. This will open a menu, asking to load the partition disk image. Open it to start the restoration process.
There are many ways to backup a Linux installation. There are file-system snapshots, live-disk suites like Clonezilla, and even cloud storage solutions. All of these are great, but tedious, and not nearly as convenient as just making a direct backup of a partition or hard drive with the Gnome Disk tool. Hopefully, with the help of this tutorial, you’ll have realized just how easy it is to back up your Linux installation.