• 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

    • Windows 11 KB5060826 optional update brings better Setup, new data migration tool, more by Sayan Sen Alongside KB5060829 for Windows 11 24H2, Microsoft has also released its C-release non-security preview update for Windows 11 23H2 and 22H2 today. The new update is rolling out under KB5060826 (builds 22621.5549 and 22631.5549). KB5060826 brings an upgraded Setup which will now let admins choose whether to deploy critical updates during the OOBE (the initial out-of-box experience setup on Windows). Alongside that, it also adds the new PC migration experience on Windows Backup, as well as the default app changes related to the European Economic Area (EEA) region. The full changelog is given below: First up we have the changes and improvements for Gradual Rollout: [App defaults] New! We are rolling out some small changes in the European Economic Area (EEA) region for default browsers through the Set default button in Settings > Apps > Default apps: Additional file and link types will be set for the new default browser, if it registers them. The new default browser will be pinned to the Taskbar and Start menu unless you choose not to pin it by clearing the checkboxes. There is now a separate one-click button for browsers to change your .pdf default, if the browser registers for the .pdf file type. [PC Migration] New! The PC-to-PC migration experience in Windows is starting to roll out. You’ll begin to see the landing and the pairing page in the Windows Backup app, giving you a first look at what’s coming. In the full experience, you’ll be able to transfer files and settings from an old PC to a new one during setup. Support for this feature during PC setup will arrive in a future update. The rollout is being introduced in phases to support a smooth experience. [Windows Share] ​​​​​​​New! When you share links or web content using the Windows share window, you will see a visual preview for that content. Up next, we have Normal Rollout features: [Windows Setup] New! Admins can configure whether a new device gets critical updates during the out-of-box experience (OOBE). The update has a single known issue related to Noto fonts. You can view the support article here on Microsoft's official website. The update can be obtained by clicking on "Check for optional updates" inside Windows Update. You can also download it manually from Microsoft Update Catalog website.
    • American? Yer whole 120v limitation is madness.  You can still get low powered pcs , nice, that'll do the job 
    • People want a resizable taskbar, not tiny icons on a fat one. Microsoft, you've done it again.
    • Windows 11 gets resizable taskbar icons, PC Migration tool, and more in KB5060829 by Taras Buria Windows 11 24H2 users, it is time for this month's non-security update. KB5060829 is here, and it has some long-requested taskbar updates, a new tool for transferring files between PCs, and a hefty list of other improvements. With KB5060829, build number 26100.4484, Microsoft is finally delivering the long-requested small taskbar icons, one of the missing Windows 10 taskbar features. However, with Windows 11, Microsoft gives users more flexibility: you can have your taskbar as is, make icons smaller as the taskbar gets full, or keep icons small all the time. Neat! Additionally, a new PC Migration app is available, which enables transferring files from one PC to another during the initial setup. However, in a somewhat confusing move, all users receive only the landing page and the pairing page. The actual capability is coming in a future update. Other changes include performance improvements in File Explorer for handling large archives, fixes for display flashing, new accessibility features, and more. Here is the complete changelog (gradual rollout): [App defaults] New! We are rolling out some small changes in the European Economic Area (EEA) region for default browsers through the Set default button in Settings > Apps > Default apps: Additional file and link types will be set for the new default browser, if it registers them. The new default browser will be pinned to the Taskbar and Start menu unless you choose not to pin it by clearing the checkboxes. There is now a separate one-click button for browsers to change your .pdf default, if the browser registers for the .pdf file type. [Click to Do (Preview)] New! Ask Microsoft 365 Copilot is a new action in Click to Do on Copilot+ PCs. Use it to send text or images to Microsoft 365 Copilot, which will respond to your questions. The Ask Microsoft 365 Copilot action requires a Microsoft 365 license and follows your organization’s privacy policies. [Narrator] New! The Screen Curtain feature in Narrator helps protect your privacy and improve focus by blacking out the screen while Narrator reads content aloud. This is especially helpful in public or shared spaces, where you can work with sensitive information without others seeing your screen. To turn on Narrator, press Ctrl + Windows + Enter. Then press Caps Lock + Ctrl + C to turn on Screen Curtain. While it’s on, you can use Narrator as usual with the screen hidden. Press Caps Lock + Ctrl + C again to turn it off. New! Narrator makes it easier to discover and learn about its features directly within the experience. Whether you're new or exploring advanced options, Narrator will guide you through the latest updates using a series of steps and prompts that explain each new feature and change. [PC Migration] New! The PC-to-PC migration experience in Windows is starting to roll out. You’ll begin to see the landing and the pairing page in the Windows Backup app, giving you a first look at what’s coming. In the full experience, you’ll be able to transfer files and settings from an old PC to a new one during setup. Support for this feature during PC setup will arrive in a future update. The rollout is being introduced in phases to support a smooth experience. [Settings] New!​​​​​​​ The Settings homepage managed by IT admins now includes cards tailored for enterprise use. These include familiar options like "Recommended settings" and "Bluetooth devices" along with other new cards for device info and accessibility preferences. If a user signs in with both a work or school account and Microsoft account, an additional account card appears to show both account types. New! The country or region selected during device setup now appears under Settings > Time & language > Language & region. Fixed: The storage card in Settings > System > About shows an incorrect or unreadable character instead of the proper disk size. [Taskbar & System Tray] New!​​​​​​​ ​​​​​​​​​​​​​​The taskbar now resizes icons to fit more apps when space runs low, keeping everything visible and easy to access. You can adjust how icons appear in settings—reduce icon size only when the taskbar is full (default), keep icons at their original size at all times by selecting Never, or use smaller icons all the time by selecting Always. To change this setting, right-click an empty area on the taskbar, select Taskbar settings, expand the Taskbar behaviors section, and choose your preference under Show smaller taskbar buttons. New! In addition to the new grouping of the Accessibility menu in Quick settings, there are text descriptions for the assistive technologies like Narrator, Voice access, and more for easier identification and learning. New! Adjusted the indicator (pill) under taskbar apps to make it wider and more visible.​​​​​​​ Fixed: WIN + CTRL + Number doesn't work anymore for switching windows of an open app in the taskbar.​​​​​​​ Fixed: When using taskbar in Windows, the media controls that appear in the preview windows for apps might unexpectedly flicker. [Voice Access] New! You can now use Voice access to navigate, dictate, and interact with Windows using voice commands in Simplified Chinese, Traditional Chinese, and Japanese. New! You can add custom words to the dictionary in voice access. The feature will be available in all the currently supported voice access languages. [Windows Share] ​​​​​​​New! When you share links or web content using the Windows share window, you'll see a visual preview for that content. New! In the Windows share window, you can select a compression level—High, Medium, or Low Quality—when editing and sharing images, instead of selecting from a 0–100 scale. [Color] Improved: Adjusted the location of the intensity and color boost sliders under Settings > Accessibility > Color Filters, so the color previews at the top of the page remain visible while adjusting the sliders. [File Explorer] Improved: Performance has been enhanced when extracting archive files - this will particularly help in the case of copy pasting large numbers of files out of large 7z or .rar archives. [Graphics] Improved: Made underlying changes to enhance display related user experiences, including reducing screen flashing during certain display configuration transitions and eliminating unnecessary display resets that occurred in some cases​​​​​​​. Fixed: Some displays might be unexpectedly green. Fixed: If User Account Control (UAC) is set to Always Notify and the button under Settings > System > Display color calibration is selected for your display and canceled, Settings will stop responding. [Input] Fixed: Typing in Japanese with the touch keyboard might stop working after switching to typing with an English keyboard and then switching back. [MSFTEdit.dll] Fixed: Some apps like Sticky Notes and dxdiag might stop responding when the display language is set to Arabic or Hebrew display. [Quick Settings] Fixed: The top three buttons in the top row don’t respond when selecting to enable or disable them. [Printing] Fixed: Printed lines might be unexpectedly thicker than expected. [Scripting] Fixed: Running a script on a remote Server Message Block (SMB) share might take an unexpectedly long time if the share is hosted on an older Windows Server version like Windows Server 2019. [Windowing] ​​​​​​​Fixed: When you press ALT + Tab to switch out of a full screen game, other windows like Windows Terminal might stop responding. Fixed: An underlying issue might lead to unexpected changes to window size and position after sleep and resume on some devices. Fixed: Explorer.exe might stop working unexpectedly when a window is dragged, if window snapping is enabled. And here is what is available to all users right away: [Copilot] Fixed: Improved the Copilot key’s reliability and resolved an issue that prevented users from restarting Copilot after using the key. [Performance] Fixed: This update addresses an issue to maintain efficiency of Storage Spaces Direct (S2D). When running complex software defined data center (SDDC) related workflows, it’s possible the system might become unresponsive. [Storage optimization] Fixed: An issue that prevented unused language packs and Feature on Demand packages from being fully removed, which led to unnecessary storage use and longer Windows Update installation times. [Windows Hello] Fixed: This update addresses an issue that prevented the automatic renewal of expiring certificates in Windows Hello for Business. [Windows Search] ​​​​​​​Fixed: Windows Search responds very slowly—Search can take over 10 seconds to load before you can use it. Fixed: This update enhances the reliability of Windows Search and resolves an issue that prevented users from typing in Windows Search in some cases. Known issues remain the same: there is a bug where Windows 11 renders Noto fonts poorly in Chromium-based browsers when the display scaling is set to 100%. A temporary workaround is to set the scaling to 125% or higher. You can download KB5060829 by heading to Settings > Windows Update. Alternatively, get it from the Microsoft Update Catalog using this link.
    • 4TB 2TB WD_BLACK SN8100 Gen5 NVMe 2280 SSDs are nice deals for sure by Sayan Sen Storage comes in different forms, both fast and slow, large and small. For example, the Seagate Exos 20TB and BarraCuda 16 TB are high-capacity CMR hard disk drives, and they are currently still selling at great prices. On the other hand, we have SSDs, which are much faster. The SK hynix P41 Platinum, for example, is a PCIe 4.0 drive and it is up for grabs at $120. If you need something faster, then take a look at Western Digital (WD) options, wherein we have the SN8100 PCIe Gen5 NVMe SSD at the lowest prices of just $480 for the 4TB variant and $260 for the 2TB variant (purchase links down below). Since this is a PCIe 5.0 SSD it is very fast, but like other Gen5 drives, it gets very hot especially for sustained reads and writes. So a heatsink is definitely recommended. The S8100 promises sequential reads of up to 14900 MB/s and sequential writes of up to 14,000 MB/s. In terms of random reads, it is rated for 2.3 million IOPS (input output operations per second) and random writes of up to 2.4 million IOPS. There are two reasons for the high random throughputs, first is the DRAM, as the SN8100 packs its own DRAM cache instead of relying on system memory, and second, the relatively new NAND technology called CMOS directly bonded to array (CBA) that helps boost interface speed. Speaking of NAND, the SN8100 features TLC, or triple-level, cells which provides excellent endurance and this 4TB drive is rated for 2400 TBW, while the 2TB is at 1200 TBW. Get the WD SN8100 at the links below: WD_BLACK 4TB SN8100 - WDS400T1X0M: $479.99 (Sold and Shipped by Amazon US) || $479.99 (Sold and Shipped by Newegg US) WD_BLACK 2TB SN8100 - WDS400T1X0M: $259.99 (Sold and Shipped by Amazon US) || $259.99 (Sold and Shipped by Newegg US) This Amazon deal is US-specific and not available in other regions unless specified. If you don't like it or want to look at more options, check out the Amazon US deals page here. Get Prime (SNAP), Prime Video, Audible Plus or Kindle / Music Unlimited. Free for 30 days. As an Amazon Associate, we earn from qualifying purchases.
  • Recent Achievements

    • One Month Later
      jfam earned a badge
      One Month Later
    • First Post
      TheRingmaster earned a badge
      First Post
    • 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
  • Popular Contributors

    1. 1
      +primortal
      562
    2. 2
      ATLien_0
      188
    3. 3
      +FloatingFatMan
      175
    4. 4
      Michael Scrip
      144
    5. 5
      Xenon
      115
  • Tell a friend

    Love Neowin? Tell a friend!