• 0

Clonezilla - Restore Windows 7 image in a virtual machine


Question

I captured an image from a Windows 7 computer using clonezilla.  The image is stored on an external usb drive.

 

Within the folder that clonezilla created are files:

sda5.vfat-ptcl-img.gz.aa

sda1.vfat-ptcl-img.gz.aa

sda2.info

sda2.ntfs-ptcl-img.gz.aa

sda3.ntfs-ptcl-img.gz.aa

sda3.ntfs-ptcl-img.gz.ab

sda3.ntfs-ptcl-img.gz.ac

sda3.ntfs-ptcl-img.gz.ad

sda3.ntfs-ptcl-img.gz.ae

sda3.ntfs-ptcl-img.gz.af

sda3.ntfs-ptcl-img.gz.ag

sda3.ntfs-ptcl-img.gz.ah

sda3.ntfs-ptcl-img.gz.ai

sda3.ntfs-ptcl-img.gz.aj

sda3.ntfs-ptcl-img.gz.ak

sda3.ntfs-ptcl-img.gz.al

sda3.ntfs-ptcl-img.gz.am

sda3.ntfs-ptcl-img.gz.an

sda3.ntfs-ptcl-img.gz.ao

sda3.ntfs-ptcl-img.gz.ap

 

I want to browse the files that were stored on the laptop from which the clonezilla image was obtained.  I cannot restore the image to a laptop as I do not have identical hardware of the laptop from which the image was obtained.

 

I would like to mount the image in a virtual machine, but do not know how to do this base don't he information I have read.  The closest I get is that I create a windows 7 vm, somehow boot clonezilla in the vm and then restore the image from the external usb hard drive to the vm.  How do I boot clonezilla in the vm and then get clonezilla to restore the image to the vm?

 

Another option I have heard is that I can mount the clonezilla image in OS X as a Samba share.  If I can mount a clonezilla image as a Samba share, will this allow me to browse the files from the laptop (e.g. docx, xlsx, pptx, bmp, mp3, etc.)?  What steps are required to mount the clonezilla in OS X?

 

A third option (if it is eve possible based on my understanding of reading about restoring clonezilla images) is to create a bootable usb drive with the image on it.  From http://clonezilla.org/fine-print-live-doc.php?path=./clonezilla-live/doc/04_Create_Recovery_Clonezilla/09-select-options-then-create.doc, "If you want to create a recovery USB flash drive, choose to create zip file, then follow the same method as creating USB flash drive version of Clonezilla live to put the created zip file on USB flash drive and make it bootable."   The method for creating a usb flash drive version of clonezilla is to use tuxboot and select the clonezilla iso.  The problem I have with this method is that I already created an iso file of the image using clonezilla, but the iso contained the same img.gz.a* files so it didn't get me to a point where I could boot the iso.  Will the zip file create a bootable usb drive where I can browse the files the image captured, or will it just create a bootable usb drive with clonezilla on it where I can then use clonezilla to restore the image to the internal hard drive?

 

TL;DR I have a clonezilla image of a laptop using windows 7, and I want to be able to browse the files of the laptop that are contained in the clonezilla image.  How can I do this?

 

Thank you for your help.

7 answers to this question

Recommended Posts

  • 0

Some more info of the contents/files I have as a result of the clonezilla image process.

 

The image was stored in a folder titled "2016-1025-img".  Within this folder are the following files:

blkdev.list

blkid.list

clonezilla-img

dev-fs.list

disk

ecryptfs.info

Info-dmi.txt

Info-lshw.txt

Info-lspci.txt

Info-packages.txt

Info-saved-by-cmd.txt

parts

sdb-chs.sf

sdb-hidden-data-after-mbr

sdb-mbr

sdb-pt.parted

sdb-pt.parted.compact

sdb-pt.sf

sdb1.vfat-ptcl-img.gz.aa

sdb2.info

sdb2.ntfs-ptcl-img.gz.aa

sdb3.ntfs-ptcl-img.gz.aa

sdb3.ntfs-ptcl-img.gz.ab

sdb3.ntfs-ptcl-img.gz.ac

sdb3.ntfs-ptcl-img.gz.ad

sdb3.ntfs-ptcl-img.gz.ae

sdb3.ntfs-ptcl-img.gz.af

sdb3.ntfs-ptcl-img.gz.ag

sdb3.ntfs-ptcl-img.gz.ah

sdb3.ntfs-ptcl-img.gz.ai

 

I opened "sdb3.ntfs-ptcl-img.gz.aa" in 7-zip and extracted the file "sdb3.ntfs-ptcl-img.gz".  When I try to open this file with 7-zip, "Can not open file 'path\sdb3.ntfs-ptcl-img.gz' as archive.

 

I also have an iso file "2016-1025-img.iso" with the following folders

.disk

boot

EFI

home

live

syslinux

utils

[BOOT]

Clonezilla-Live-Version (this is a file)

GPL (this is a file)

 

Within the home folder a couple folders deep is the same contents of the "2016-1025-img" folder described above.  I don't think the will be helpful, but I already have it if it is needed.

 

So from these files, how would I go about mounting the image?  I can mount it in OS X, VirtualBox running  Linux (you tell me what the best distro is for this scenario), or Windows.

 

  • 0

well you would need to put them into 1 file.. so something like

 

cat <imagename>.gz.a* | gzip -d -c | partclone.restore -W -o <output filepath>

 

The you would end up with say file.img

 

Then mount that image.. Do you have partclone installed, if not apt-get install partclone.  Assuming your part was ntfs, so you prob want ntfs-3g as well..

 

user@ubuntu:~$ partclone.restore --help
partclone.restore v0.2.51 http://partclone.org
Usage: partclone.restore [OPTIONS]
    Efficiently clone to a image, device or standard output.

    -o,  --output FILE      Output FILE
    -O   --overwrite FILE   Output FILE, overwriting if exists
    -W   --restore_raw_file create special raw file for loop device
    -s,  --source FILE      Source FILE
    -L,  --logfile FILE     Log FILE
    -dX, --debug=X          Set the debug level to X = [0|1|2]
    -C,  --no_check         Don't check device size and free space
    -N,  --ncurses          Using Ncurses User Interface
    -I,  --ignore_fschk     Ignore filesystem check
    -i,  --ignore_crc       Ignore crc check error
    -F,  --force            Force progress
    -f,  --UI-fresh         Fresh times of progress
    -m,  --max_block_cache  The used block will be cache until max number
    -q,  --quiet                 Disable progress message
    -B,  --no_block_detail  Show progress message without block detail
    -v,  --version          Display partclone version
    -h,  --help             Display this help
user@ubuntu:~$ ntfs-3g -help

ntfs-3g 2013.1.13AR.1 external FUSE 29 - Third Generation NTFS Driver
                Configuration type 7, XATTRS are on, POSIX ACLS are on

Copyright (C) 2005-2007 Yura Pakhuchiy
Copyright (C) 2006-2009 Szabolcs Szakacsits
Copyright (C) 2007-2012 Jean-Pierre Andre
Copyright (C) 2009 Erik Larsson

Usage:    ntfs-3g [-o option[,...]] <device|image_file> <mount_point>

Options:  ro (read-only mount), windows_names, uid=, gid=,
          umask=, fmask=, dmask=, streams_interface=.
          Please see the details in the manual (type: man ntfs-3g).

Example: ntfs-3g /dev/sda1 /mnt/windows

News, support and information:  http://tuxera.com
user@ubuntu:~$

 

Once you have your image, then could mount it with say

 

ntfs-3g /dir/file.img /mnt/somedir

 

  • 0

Sorry the delayed response.  I just got around to a working Ubuntu 16.04 system to try this.

 

cat <imagename>.gz.a* | gzip -d -c | partclone.restore -W -o <output filepath>

returns the error "gzip: stdin: not in gzip format"

 

When I type file <imagename>.gz.aa in the terminal I get <imagename>.gz.aa: data

 

I don't understand how the gz.a* files are not in gzip format because when I run Clonezilla and try to restore the image, Clonezilla can restore the image.  My problem is that I don't want to restore the image, but simply browse the files so I can select certain files to copy to a new location.

 

I'm hoping you BudMan or someone else has encountered this issue and knows the fix because I have not been successful in finding this same problem duplicated by someone in all the reading of Clonezilla and Ubuntu forums.

 

Thank you.

  • 0

your not using <imagename> are you??  that is a placeholder for your files are actually called.

 

Your files are called sda3.ntfs-ptcl-img.gz right?  This is the image of your sda3 partition.

  • 0

I am not using <imagename>.  I was using that to be consistent with your message.

 

What I typed is "cat sdb3.ntfs-ptcl-img.gz.a* | gzip -d -c | partclone.restore -W -o sdb3.img"

I then get the error message that the file is not in gzip format.

  • 0

well if its not in gzip format why does it have gz in its name.. Did you not compress when you did your clone?

 

Do the commands 1 at a time vs piping them..

This topic is now closed to further replies.
  • Posts

    • Microsoft shares Windows 10 ESU key guide for office PCs that don't support Windows 11 by Sayan Sen Recently, the Indian government issued a caution about the upcoming end of support for Windows 10 which is about four months away. Interestingly, on that very day, Microsoft made a major announcement regarding this as the tech giant debuted free enrollment options wherein support would be extended for another year at no extra cost. Microsoft is also trying to make it easy to set up Extended Security Updates (ESU) with a new tool. You can see in the image below: New ESU enroll wizard Following that, today, the company has shared a new guide on how to activate ESU via Intune in the case of Windows 10 office PCs that are not supported on Windows 11. First up, Microsoft has reminded users of the prerequisites of Windows 10 ESU: The system needs to be on Windows 10 22H2 with KB5046613 (November 2024 Patch Tuesday) or newer. The device needs access to the network endpoints required for client activation. The process that is used for activation needs administrative privileges on the device. The guide contains several PowerShell scripts and are meant for IT admins and system admins. One of those is a validation script "Check-Win10ESUPrereq.ps1" that Microsoft has published to help "verify a device has the required version and patch level for Windows and it can communicate to the required network endpoints." Essentially, it checks if the aforementioned requirements are satisfied and can be used for troubleshooting against those prerequisites. After the "validation," Microsoft says there are two ways to proceed with the ESU key activation. First. it can be done by either Remediation through: Detection Script (Win10ESUActivation-detect.ps1) and Remediation Script (Win10ESUActivation-remediate.ps1). And second, by Win32 Application with Win32 Install Script (Win10ESU-install.ps1) and Win32 Detection Script (Win10ESU-detection.ps1). In the case of Remediations, Microsoft mentions "some licensing considerations" due to which "some smaller companies may not have that option." Finally, Microsoft has also shared some Activation IDs for manual verification via Slmgr VB script for obtaining volume activation information: Win10 ESU Year1: f520e45e-7413-4a34-a497-d2765967d094 Win10 ESU Year2: 1043add5-23b1-4afb-9a0f-64343c8f3f8d Win10 ESU Year3: 83d49986-add3-41d7-ba33-87c7bfb5c0fb You can check the full guide and the details here on Microsoft's official Tech Community website.
    • It blows me away how overpriced Synology is. $600+ for a 3+ year old SATA NAS with only gigabit networking!! Even for 2022 that is pretty low-end hardware. Yes, the Synology software is fantastic, but if we say this hardware is worth $300 max (and that is even giving a generous premium to the fact that it is made by a respected OEM), their software is NOT worth an additional $300, especially considering it is locked to the hardware it shipped on and you have to pay that premium again for your next devices. Important correction to the specs table above. Saying Disk Capacity is 72TB and even going further to detail that is 4x18, strongly implies it comes with those disks, which it does not. I would rather see it say "Max Capacity: 72TB (disks not included)."
    • well again if w11 adoption its so high there's no reason why they try to explain us why is "better" to move to w11. If they are so right about their downgraded UI, why they add some of their UI elements back things like never combine and now small icons. Last time i check majority is still on 10 over 11 so yeah millions of users that did not upgrade to w11
    • Size 15. In the first week I managed to get a full week before having to recharge from 10%. I looked online and Samsung recommends recharging it when it gets to 20-30% to preserve the battery life. In the second week, started wearing my Galaxy Watch6 Classic again, because I read that it offsets sensors to the Watch, meaning the battery lasts even longer... and a week on (today) the ring was at 31% when I recharged it fully again, so a difference of over 20% in combination with the Watch. By the way I do not wear my Watch to bed, so it is only the Ring doing the sleep tracking (which is hit or miss tbh) it stops tracking for an hour or two in the night, which is really annoying. I had the same thing with the Watch, and I found it uncomfortable to have on in bed. I have been reading that the battery can start to go bad even after the first week so I am glad it isn't affecting me (yet).
    • Visual Studio gets even smarter with more AI models and billing updates by Usama Jawad Visual Studio and Visual Studio Code are among the most popular integrated development environments (IDEs) out there. The tools boast more than 50 million monthly active users, which isn't surprising considering their platform agnosticism, deep integration with the Microsoft ecosystem, and the power of GitHub Copilot. Now, Microsoft is looking to entice even more customers who are eager to use AI models to boost their productivity during the development process. In a blog post, Microsoft has stated that it has updated the AI models list available in Visual Studio to default to smarter options. For example, Copilot will now use GPT-4.1 rather than GPT-4o, since it offers better responses with faster performance. In addition, users can now select between the following models to enhance their coding experience based on their preferences: Claude Sonnet 4 Claude Opus 4 Claude Sonnet 3.5 Claude 3.7 (non-thinking and thinking) OpenAI o3 mini Gemini 2.0 Flash Gemini 2.5 Pro Microsoft has noted that your selected model will persist across your workflows, so if you're unsure about which model to leverage, you can refer to its documentation here. Furthermore, Visual Studio is making it easier to switch between models that are included in your plan through a prompt in the model selector. When it comes to billing updates, Microsoft has built a new Copilot Consumptions user experience that can be accessed by navigating to the Copilot badge present in the top-right corner of the IDE. As the name suggests, this panel shows your consumption in an easily digestible format. You can also click on Manage Plan, which will take you to the GitHub website. It is important to note that some models are request-heavy, and Visual Studio will now indicate this to you while you are selecting your model. If you exhaust your premium requests, you will shift to a standard model seamlessly. You should also keep in mind that the GitHub Copilot pricing plans have been updated, and the billing experience in Visual Studio does reflect them.
  • Recent Achievements

    • Conversation Starter
      Kavin25 earned a badge
      Conversation Starter
    • One Month Later
      Leonard grant earned a badge
      One Month Later
    • Week One Done
      pcdoctorsnet earned a badge
      Week One Done
    • Rising Star
      Phillip0web went up a rank
      Rising Star
    • One Month Later
      Epaminombas earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      529
    2. 2
      ATLien_0
      207
    3. 3
      +FloatingFatMan
      168
    4. 4
      Michael Scrip
      149
    5. 5
      Steven P.
      122
  • Tell a friend

    Love Neowin? Tell a friend!