Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there a way to browse CloneZilla images and extract individual files from them without restoring the whole image?

share|improve this question
Important note: Bounty is for providing a working method for extracting files from WINDOWS - as the *nix version below seems to work well already – Mark Henderson Jan 16 '11 at 0:23
Why not use the *nix method on windows using Cygwin? – Joe Jan 17 '11 at 18:00
@Mark Henderson, is firing up a Linux VM an option? Do you have cygwin on your Windows box? – Zoredache Jan 21 '11 at 0:46
@Zoredache - A Linux VM is an option, but not an ideal one. Does cygwin include "mount"? If it does then that's always worth a shot. FWIW this time around I simply restored the image into a VM and extracted them from there, but that seemed like a round-about kind of way of getting a single file. – Mark Henderson Jan 21 '11 at 0:59

5 Answers

You should be able to mount your CloneZilla image to extract files from it. See instructions here.

  1. Prepare a large disk in Linux
  2. Say if your image is /home/partimag/YOURIMAGE/, and the image is /home/partimag/YOURIMAGE/hda1.ntfs-img.aa, hda1.ntfs-img.ab... run "file /home/partimag/YOURIMAGE/hda1.ntfs-img.aa" to see it's gzip, bzip or lzop image. Say it's gzip, then you can run cat /home/partimag/YOURIMAGE/hda1.ntfs-img.* | gzip -d -c | ntfsclone --restore-image -o hda1.img - Then you will have a "hda1.img" which you can mount it by mount -o loop -t ntfs hda1.img /mnt Then all the files are in /mnt/
share|improve this answer
2  
Any way to do this in Windows? – Pretzel Apr 19 '10 at 1:06
Erased my comment. I'm retarded. – JakeRobinson Jan 16 '11 at 3:23

Taken from this article:

There are some limitations. As pointed out earlier, Clonezilla can't restore an image to a drive that is smaller than the original drive. It also doesn't allow for retrieving specific files in an image, it's the whole partition or nothing.

Since the Linux way is pretty much a lucky hack, I'd wait until this feature is officially developed for Windows.

share|improve this answer

Better use the partclone utility instead:

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

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

share|improve this answer

Try this software:

http://www.mountimage.com/

It looks like it could do it. 14 day trial.

share|improve this answer
1  
Thanks for the answer, unfortuntately I've already tried this software. The problem is that the clonezilla images are compressed with GZip. I was able to uncompress the GZipped files, but mountimage didn't know what to do with them. – Mark Henderson Jan 17 '11 at 22:28
What was the extension that you have after you uncompress the GZ files? – JohnThePro Jan 21 '11 at 18:14

I would have thought that 7-zip could have support multi-part archives like this, although it reports the archive as being corrupt.

I sure hope the image is intact, I'm about to reformat the drive that I pulled the image from.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.