Clonezilla question

Some weeks back, I cloned my 11.1 with Clonezilla, in anticipation of a distro upgrade and to have a backup in case of failure.

I upgraded to 11.2 using a clean install. Prior to that, I backed up my docs and some other things that I thought important. Unfortunately, I backed up the wrong address book. Thinking I was looking at a current backup, I actually backed up a 2 or 3 year old file over and over again. I never looked where I was supposed to: in ./kde

However, the address book file must be in the cloned partition. Is there any way to get only that file out of Clonezilla? I ran it just now, looking for a way but did not see it. I also was confused as to how to restore the clonezilla image as a whole. I could, as a last resort, put an old hard drive in a pc and restore the image to it, if I can use a smaller (though big enough for the partition) hd as receiver of the image.

Please help me get my address book back. Oh, is it possible that I am still looking for the wrong file name for kaddressbook’s data file?

On Sun, 22 Nov 2009 05:16:02 +0000, Prexy wrote:

(…)

> However, the address book file must be in the cloned partition. Is
> there any way to get only that file out of Clonezilla? I ran it just
> now, looking for a way but did not see it. I also was confused as to
> how to restore the clonezilla image as a whole. I could, as a last
> resort, put an old hard drive in a pc and restore the image to it, if I
> can use a smaller (though big enough for the partition) hd as receiver
> of the image.

By reading Clonezilla FAQ, it seems there is an option to mount a big
“img” file that you can mount later.


How can I restore those -ptcl-img. images into a file manually ?
http://drbl.sourceforge.net/faq/fine-print.php?path=./2_System/68_manually_partclone_restore.faq#68_manually_partclone_restore.faq


Just be sure there is enough space to mount that big file.

> Please help me get my address book back. Oh, is it possible that I am
> still looking for the wrong file name for kaddressbook’s data file?

Kaddressbook files used to be under “~/.kde/share/apps/kabc”

Greetings,


Camaleón

Thanks for finding that. But to be honest, I don’t have the least idea what it says. :shame:

Say if your image is /home/partimag/YOURIMAGE/, and the image is /home/partimag/YOURIMAGE/hda2.ntfs-ptcl-img.gz.aa, hda2.ntfs-ptcl-img.gz.ab…, and you want to restore the image to a file hda2.img which you can mount later.
Before you do it, make sure the disk space is big enough for you to store this image file “hda2.img”.
Now you can run:
“file /home/partimag/YOURIMAGE/hda2.ntfs-ptcl-img.gz.aa”
to see it’s gzip, bzip or lzop image. Say it’s gzip, then you can run
cd /home/partimag/YOURIMAGE/
touch hda2.img
cat dir/hda2.ntfs-ptcl-img.gz.* |gzip -d -c | partclone.restore -C -s - -o hda2.img
(For partclone newer than version 0.1.1-3, partclone.restore was improved so that you do not have to touch hda2.img first)
Part of the problem, and I say this with no criticism, is that the clonezilla people are not native English speakers. The first sentence couldn’t be more confusing.

If you know what this means, could you explain it to me? I am not familiar with partclone. I don’t know if the instructions relate to commands inside clonezilla or just at a CLI or at a CLI inside of clonezilla.

On Sun, 22 Nov 2009 19:06:01 +0000, Prexy wrote:

> Thanks for finding that. But to be honest, I don’t have the least idea
> what it says. :shame:

:slight_smile:

>> Say if your image is /home/partimag/YOURIMAGE/, and the image is
>> /home/partimag/YOURIMAGE/hda2.ntfs-ptcl-img.gz.aa,
>> hda2.ntfs-ptcl-img.gz.ab…, and you want to restore the image to a
>> file hda2.img which you can mount later.
>> Before you do it, make sure the disk space is big enough for you to
>> store this image file “hda2.img”.
>> Now you can run:
>> “file /home/partimag/YOURIMAGE/hda2.ntfs-ptcl-img.gz.aa” to see it’s
>> gzip, bzip or lzop image. Say it’s gzip, then you can run cd
>> /home/partimag/YOURIMAGE/
>> touch hda2.img
>> cat dir/hda2.ntfs-ptcl-img.gz.* |gzip -d -c | partclone.restore -C -s -
>> -o hda2.img
>> (For partclone newer than version 0.1.1-3, partclone.restore was
>> improved so that you do not have to touch hda2.img first)

> Part of the
> problem, and I say this with no criticism, is that the
> clonezilla people are not native English speakers. The first sentence
> couldn’t be more confusing.

Me neither (I’m not native english speaker) but I’d try to explain what
is my understanding of the procedure (use it with caution) :stuck_out_tongue:

> If you know what this means, could you explain it to me? I am not
> familiar with partclone. I don’t know if the instructions relate to
> commands inside clonezilla or just at a CLI or at a CLI inside of
> clonezilla.

I never used that procedure to recreate the big image and then mount it
(so you can browse the contents and extract data from there), but by
reading the instruction that Clonezilla provides, I guess you need:

  • Having acces to the folder with all the compressed images

  • Running the program “partclone.restore”. If you don’t have this app
    installed, you can try to run it from any rescue-based LiveCD (such
    SystemRescueCD) that may include it.

But be very careful with this kind operations. For testing purposes
better do it with a backup of the Clonezilla images, never with the
original ones :slight_smile:

Greetings,


Camaleón