fiddyschmitt/clonezilla-util
حول
Mount Clonezilla images in Windows
التصميم والوسائطالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- ٠
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلclonezilla-util
Extract individual files from a Clonezilla archive, without extracting the full archive.
Supported formats
Clonezilla archives
Partclone images
Drive images (eg. sda.img)
Partition images (eg. sda1.img)
Compressed versions of the above (bzip2, GZip, LZ4, LZip, xz, Zstandard)
Where to download
Releases can be found over in the releases section.
Mount a Clonezilla archive in Windows
First, install this version of the Dokan Driver. This is required to create a Virtual Drive.
Now run the following command:
clonezilla-util.exe mount --input <clonezilla folder> --mount L:\
A virtual drive is created, containing all the files in the Clonezilla archive. (--mount also accepts an existing, empty folder on an NTFS volume, such as --mount C:\mnt\backup. Leave it out to have a free drive letter chosen for you.)
NTFS alternate data streams are served as streams, as Windows serves them: dir /r lists them, and file.txt:streamname opens one. Inside a OneDrive (or other Cloud Files) sync folder, Windows lists none of the sync platform's own ${3D0CE612-…} streams but still opens them by name, so the mount does the same, and list and extract leave them out.
On a Linux file system, a : is just part of a name: list shows such a file, and the mount opens it by its name. extract skips it, since Windows can't create a file with that name (it would be a stream of another file).
Files that Windows compressed with compact /exe or CompactOS (WOF compression) are served decompressed. A file whose content isn't in the image at all is left out, and the log says how many were. That covers online-only cloud files (such as OneDrive's Files On-Demand) that were never downloaded, and WIMBoot files backed by an external .wim. list and extract leave them out too.
An NTFS partition imaged before Windows had finished with it (after a crash or a forced power-off, for example) can hold files whose last writes aren't in the image. clonezilla-util checks for them the first time it lists such a partition. They are served with zeros where their data is missing, the console says how many there are, and the log file lists them.
Mount a Clonezilla archive as partition image files
First, install this version of the Dokan Driver. This is required to create a Virtual Drive.
Now run the following command:
clonezilla-util.exe mount-as-image-files --input <clonzilla folder> --mount L:\
A virtual drive is created, containing a file for each partition:
You can open them using 7-Zip, and extract individual files:

7-Zip can't open a BitLocker-encrypted partition, so one is also served as a .vhdx (eg. sda3.vhdx): the partition as a virtual disk that Windows can attach. Windows then shows it as a locked drive and asks for its password or recovery key. Once mounting completes, clonezilla-util prints the command to run from an elevated PowerShell:
Mount-DiskImage -Access ReadOnly -ImagePath L:\sda3.vhdx
and Dismount-DiskImage -ImagePath L:\sda3.vhdx detaches it when you're done. A VHDX holds up to 64 TiB; a larger partition is served as .img only.
Advanced features
Mount raw images
Run the following command:
clonezilla-util.exe mount --input "sda.img" --mount L:\
Extract partition images from Clonezilla archive (Dokan not required)
Run the following command:
clonezilla-util.exe extract-partition-image --input <clonzilla folder> --output <folder to extract to>
The program creates a file for each partition in the Clonezilla archive.
If the images are extracted to an NTFS drive, they are created as sparse. Meaning they only take up the necessary space:
Extract individual files (Dokan not required)
Extract selected files straight to a folder, without mounting a drive:
clonezilla-util.exe extract --input <clonezilla folder> [--output <folder>] [--include <patterns...>] [--exclude <patterns...>] [--flatten]
--include/--excludetake glob patterns (*and?). A pattern with no path separator matches by filename anywhere (e.g.*.log); a pattern with separators is scoped (e.g."Windows/Logs/*.log"). If--includeis omitted, every file is extracted;--excludewins over--include.- Patterns match the same path the
listcommand prints (container\partition\path), so you can copy a line fromlistoutput and paste it in verbatim as an--include. --outputis optional: if omitted, the files are written to a new folder (named after the input) in the current directory.-p sda1 sda2restricts to particular partitions.- By default the directory structure is preserved; pass
--flattento write bare filenames into the output folder.
Examples:
# every .log under the Windows folder (any depth) and every .xml anywhere, into .\<archive name>\...
clonezilla-util.exe extract --input C:\backup --include "Windows/*.log" "*.xml"
# one exact file (a line copied from `list`), flattened into D:\out
clonezilla-util.exe list --input C:\backup > files.txt
clonezilla-util.exe extract --input C:\backup -o D:\out --flatten --include "my-backup\sda2\Windows\System32\config\SYSTEM"
Memory use
While serving a mount, clonezilla-util caches decoded data in RAM to avoid re-decompressing the same regions. The cache grows to use free memory and automatically shrinks when the OS or other programs need it, so it never pushes the machine into paging.
--memory-reserve <MB>— physical RAM to always leave free (default: the larger of 1 GB or 8% of RAM). Raise it to be gentler on other programs; lower it to give the cache more room. Env:CLONEZILLA_MEMORY_RESERVE_MB.--cache-max <MB>— optional hard cap on the total cache regardless of free memory. Env:CLONEZILLA_CACHE_MAX_MB.
Logs
Each run writes a log to the logs folder beside clonezilla-util.exe, or to %LOCALAPPDATA%\clonezilla-util\logs if
that folder can't be written to (for example, under Program Files).
Building from source
Two steps, in order:
- Build the native 7-Zip engine (needs Visual Studio / MSVC — it is a C++ DLL, not compiled by
dotnet):
Run this once, and again wheneverpowershell lib7zNative\build.ps1lib7zNativechanges. It produces a statically-linkedlib7zNative.dll(no Visual C++ Redistributable needed on the target machine). - Publish the app:
dotnet publish clonezilla-util\clonezilla-util.csproj -c Release -p:PublishProfile=FolderProfile
If you skip step 1 the build fails fast with a message telling you to run build.ps1 — it will not silently produce an exe that is missing the native engine.
Thanks
A special thanks to Roberto for creating gztool. It allows the gz files in the Clonezilla archive to be read randomly, which gz doesn't natively support.
Thanks to the Dokan team. Dokan is what is used to create the virtual drive.
Thanks to Igor for 7-Zip. His versatile tool inspects the contents of the image files, which can be in many formats (eg. NTFS, FAT, etc.)
Thanks to Steven for Clonezilla, the backup tool used by millions.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…