LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Convert Clonezilla partition image into ISO? (https://www.linuxquestions.org/questions/linux-software-2/convert-clonezilla-partition-image-into-iso-4175602088/)

littlebigman 03-18-2017 03:50 PM

Convert Clonezilla partition image into ISO?
 
Hello

I'd like to recover some files from an image I made using Clonezilla, as an alternative to hooking up a temporary drive just to reinstall the image.

Is there a way to turn those files into eg. ISO?

Code:

Directory of d:\Win7-img
25/12/2016  16:35              943 blkdev.list
25/12/2016  16:35              481 blkid.list
25/12/2016  17:37            4.076 clonezilla-img
25/12/2016  16:35              144 dev-fs.list
25/12/2016  17:11            6.915 Info-dmi.txt
25/12/2016  17:11            24.289 Info-lshw.txt
25/12/2016  17:11            3.333 Info-lspci.txt
25/12/2016  17:11              198 Info-packages.txt
25/12/2016  17:37                87 Info-saved-by-cmd.txt
25/12/2016  17:11                5 parts
25/12/2016  16:35                38 sda-chs.sf
25/12/2016  16:35        1.048.064 sda-hidden-data-after-mbr
25/12/2016  16:35              512 sda-mbr
25/12/2016  16:35              350 sda-pt.parted
25/12/2016  16:35              300 sda-pt.parted.compact
25/12/2016  16:35              190 sda-pt.sf
25/12/2016  17:11                33 sda1.info
25/12/2016  16:37    4.096.000.000 sda1.ntfs-ptcl-img.gz.aa
25/12/2016  16:39    4.096.000.000 sda1.ntfs-ptcl-img.gz.ab
25/12/2016  16:40    4.096.000.000 sda1.ntfs-ptcl-img.gz.ac
25/12/2016  16:42    4.096.000.000 sda1.ntfs-ptcl-img.gz.ad
25/12/2016  16:44    4.096.000.000 sda1.ntfs-ptcl-img.gz.ae
25/12/2016  16:45    4.096.000.000 sda1.ntfs-ptcl-img.gz.af
25/12/2016  16:47    4.096.000.000 sda1.ntfs-ptcl-img.gz.ag
25/12/2016  16:48    4.096.000.000 sda1.ntfs-ptcl-img.gz.ah
25/12/2016  16:49    4.096.000.000 sda1.ntfs-ptcl-img.gz.ai
25/12/2016  16:51    4.096.000.000 sda1.ntfs-ptcl-img.gz.aj
25/12/2016  16:52    4.096.000.000 sda1.ntfs-ptcl-img.gz.ak
25/12/2016  16:54    4.096.000.000 sda1.ntfs-ptcl-img.gz.al
25/12/2016  16:55    4.096.000.000 sda1.ntfs-ptcl-img.gz.am
25/12/2016  16:57    4.096.000.000 sda1.ntfs-ptcl-img.gz.an
25/12/2016  16:58    4.096.000.000 sda1.ntfs-ptcl-img.gz.ao
25/12/2016  17:00    4.096.000.000 sda1.ntfs-ptcl-img.gz.ap
25/12/2016  17:01    4.096.000.000 sda1.ntfs-ptcl-img.gz.aq
25/12/2016  17:04    4.096.000.000 sda1.ntfs-ptcl-img.gz.ar
25/12/2016  17:06    4.096.000.000 sda1.ntfs-ptcl-img.gz.as
25/12/2016  17:08    4.096.000.000 sda1.ntfs-ptcl-img.gz.at
25/12/2016  17:10    4.096.000.000 sda1.ntfs-ptcl-img.gz.au
25/12/2016  17:11    3.336.725.153 sda1.ntfs-ptcl-img.gz.av

Thank you.

michaelk 03-19-2017 10:22 AM

I found threads on several sites that have similar methods. Basically you combine the gz files into one,uncompress and then use partclone to convert to an image. Once converted you can mount the image. You will need enough free space as the windows partition.

http://blog.christosoft.de/2012/05/m...e-file-browse/

rknichols 03-19-2017 10:51 AM

You cannot extract files from a Clonezilla image without restoring that image. If you don't have a physical device or partition as large as the original partition, it is possible to use partclone to do the restore to a sparse file. That file would have an apparent size as large as the original partition, but would use only as much actual disk space as the used space in the original filesystem. You can see one method in the above link, or get some more hints from the partclone manpage.

littlebigman 03-20-2017 05:35 AM

Thanks much for the tip.

Turns out CZ does support turning an image into an ISO file: Choose "recovery-iso-zip":
http://clonezilla.org/show-live-doc-...ery_Clonezilla

rknichols 03-20-2017 09:41 AM

Quote:

Originally Posted by littlebigman (Post 5685836)
Turns out CZ does support turning an image into an ISO file: Choose "recovery-iso-zip":
http://clonezilla.org/show-live-doc-...ery_Clonezilla

I just tried that, and all you get is the same set of image files that you already have, but packaged into a bootable ISO that runs Clonezilla. You are no closer to extracting files from that image than you were before.

littlebigman 03-20-2017 11:49 AM

There are applications that can read and even write files from/to an ISO file.

Do you mean that ISO isn't kosher?

rknichols 03-20-2017 12:21 PM

Go ahead and make the ISO file and then look at what is in it. You will find a directory with the same files you now have in d:\Win7-img. How does that get you any closer to extracting files from those saved image files?

littlebigman 03-21-2017 06:54 AM

I don't know. That's why I was asking for a solution.

So, there's currently no way to extract files from a CZ image?

rknichols 03-21-2017 08:25 AM

Quote:

Originally Posted by littlebigman (Post 5686338)
So, there's currently no way to extract files from a CZ image?

That is correct. Clonezilla doesn't store files. It just stores regions of the disk that it can determine are in some way in use by the filesystem (vs. regions that are free space in the filesystem).

jefro 03-21-2017 03:22 PM

I think part of your problem is that you have a fat drive and that's why all these small files contain parts of the partclone image. I'd guess that you could copy them binary together and then use some idea like
"
Better use the partclone utility instead:

cd /home/partimag/YOURIMAGE/
touch hda2.img
cat dir/hda2.ntfs-ptcl-img.gz.* | gzip -d -c | partclone.restore -C -s - -o hda2.img
mount -o loop hda2.img /mnt

See also CloneZilla FAQ Entry: "How can I restore those *-ptcl-img.* images into a file manually?"
"

https://serverfault.com/questions/35...nezilla-images


Someone may have a way to do this directly maybe.


All times are GMT -5. The time now is 06:36 PM.