LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-18-2017, 03:50 PM   #1
littlebigman
Member
 
Registered: Aug 2008
Posts: 590

Rep: Reputation: 33
Question 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.
 
Old 03-19-2017, 10:22 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,507

Rep: Reputation: 4114Reputation: 4114Reputation: 4114Reputation: 4114Reputation: 4114Reputation: 4114Reputation: 4114Reputation: 4114Reputation: 4114Reputation: 4114Reputation: 4114
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/
 
Old 03-19-2017, 10:51 AM   #3
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,549

Rep: Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085
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.

Last edited by rknichols; 03-19-2017 at 10:52 AM.
 
Old 03-20-2017, 05:35 AM   #4
littlebigman
Member
 
Registered: Aug 2008
Posts: 590

Original Poster
Rep: Reputation: 33
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
 
Old 03-20-2017, 09:41 AM   #5
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,549

Rep: Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085
Quote:
Originally Posted by littlebigman View Post
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.
 
Old 03-20-2017, 11:49 AM   #6
littlebigman
Member
 
Registered: Aug 2008
Posts: 590

Original Poster
Rep: Reputation: 33
There are applications that can read and even write files from/to an ISO file.

Do you mean that ISO isn't kosher?
 
Old 03-20-2017, 12:21 PM   #7
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,549

Rep: Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085
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?
 
Old 03-21-2017, 06:54 AM   #8
littlebigman
Member
 
Registered: Aug 2008
Posts: 590

Original Poster
Rep: Reputation: 33
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?
 
Old 03-21-2017, 08:25 AM   #9
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,549

Rep: Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085Reputation: 2085
Quote:
Originally Posted by littlebigman View Post
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).
 
Old 03-21-2017, 03:22 PM   #10
jefro
Moderator
 
Registered: Mar 2008
Posts: 20,860

Rep: Reputation: 3386Reputation: 3386Reputation: 3386Reputation: 3386Reputation: 3386Reputation: 3386Reputation: 3386Reputation: 3386Reputation: 3386Reputation: 3386Reputation: 3386
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't seem to stop clonezilla from including MBR in partition image jtwdyp Linux - General 3 06-05-2012 03:42 PM
need program to convert an iso image to cso baronobeefdip Linux - Software 1 01-28-2010 12:32 AM
Need help with restoring a Clonezilla image to larger partition EdgesofTwilight Linux - Newbie 7 01-03-2010 08:59 AM
*.uif image: Need to convert to *.iso cwwilson721 Slackware 45 05-04-2008 09:13 AM
Using Clonezilla linux partition image to windows ssh server killerforce Linux - Hardware 1 06-01-2007 09:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration