Take the 2-minute tour ×
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 5

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

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

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

I've made a video that demonstrates how to restore the full disk backup into a virtual machine. Hope it helps: http://www.youtube.com/watch?v=ainjV3X6wqQ

Basically, what you need to do is:

  • Create a VM in VirtualBox (free)
  • Create a virtual disk image for the VM with at least the same size of the backed up disk
  • Store your clonezilla backup in an external HDD or something which can be accessed from the VM
  • Run your VM with the clonezilla ISO in its virtual drive
  • Restore the backup like you would in a real machine
share|improve this answer
    
How do instructions for restoring a full disk backup answer the question of extracting individual files without restoring the whole image? –  squillman Nov 6 '13 at 1:17
    
He might need to access stuff that isn't browsable through the filesystem. For example, I had to access my clonezilla backup to export an .SQL file from phpMyAdmin. This was the best way I found to do it. –  Pedro Moreira Dec 10 '13 at 15:04

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.