Mount an Clonezilla-Image

Scenario: We have cloned an ext4 system disk as a backup and want to access a single file from it again. To do this, we need to be able to mount the image, which with the default Clonezilla settings consists of a whole bunch of gzip files. So we still need double the space on the backup’s disk (or another one) for the image.

This is relatively simple. We are looking for the folder with the Clonezilla backup. This folder looks something like this:

YEAR-DAY-MONTH-HOUR-img-NAME_OF_BACKUPS

NAME_OF_BACKUPS is the part of the folder name we had given Clonezilla as the name for the backup. The first part is generated automatically.

Now we take ownership of the folder:

sudo chown -R USERNAME ./JAHR-TAG-MONAT-STUNDE-img-NAME_DES_BACKUPS

In terminal we go to the Clonezilla folder. I just assume it is on an external disk:
cd /media/ followed by the tab key should suggest our username as the folder name. We accept, looking for the folder with the mountpoint of the external HDD and open it. Now the folder of the Clonezilla backup should appear, if it was saved in the root directory of the HDD and not to an other subdirectory.

To prevent typos, we simply type

sudo chown -R...

… and our username followed by the ./YEAR, press the tab key for autocomplete again. Now we have write-permissions and open the folder. Let’s extract the backup:

sudo cat PARTITION.ext4-ptcl-img.gz.* | sudo gzip -d -c | sudo partclone.ext4 -r -W -C -L partclone.log -O IMAGENAME.img

PARTITION denotes the name that Clonezimme has automatically assigned, e.g. „sda1“ or „nvme0n1p2“. The IMAGENAME is the name of our new mountable image. This can be – with the appropriate path specification – also on another data medium.

After restoreing mount the image via the file manager (Disks) or in the terminal with:

sudo mount -o loop -t ext4 IMAGENAME.img /mnt/IMAGENAME

Done.

Über den Autor

Hessi

Michael "Hessi" Heßburg ist ein erfahrener Technik-Enthusiast und ehemaliger Informatiker. Seine Website, die er seit ĂŒber 25 Jahren betreibt, deckt vielfĂ€ltige Themen ab, darunter Haus & Garten, Hausrenovierung, IT, 3D-Druck, Retrocomputing und Autoreparatur. Zudem behandelt er gesellschaftspolitische Themen wie Datenschutz und Überwachung. Hessi ist seit 20 Jahren freiberuflicher Autor und bietet in seinem Blog fundierte Einblicke und praktische Tipps. Seine BeitrĂ€ge sind sorgfĂ€ltig recherchiert und leicht verstĂ€ndlich, um Leser bei ihren Projekten zu unterstĂŒtzen.

1 Gedanke zu „Mount an Clonezilla-Image“

  1. After 5 hours of Mr. Goog trying to find an answer yours was the one that solved my problem of properly extracting a Clonezilla backup image file so I could mount it in Linux. Worked first time.

    Thank you sir!

    Antworten

Schreibe einen Kommentar

Ich bin mit der DatenschutzerklÀrung und der Speicherung meiner eingegebenen Daten einverstanden.