Unpacking partclone image #295

Open
opened 2026-01-29 15:15:18 +00:00 by claunia · 2 comments
Owner

Originally created by @fiddyschmitt on GitHub (Dec 12, 2019).

Description

The following file is a partclone image (copied from a Clonezilla backup).

https://github.com/discimagechef/DiscImageChef/files/3955569/sda1.ntfs-ptcl-img.gz.aa.zip
(Apologies - I've had to zip it up)

DiscImageChef correctly identifies it as GZip, but when it tries to identify the file system it does not match against partclone.

Exact command line used:

string filename = @"C:\VMs\SmallDrive\output\2019-11-27-22-img_sda\sda1.ntfs-ptcl-img.gz.aa";

IFilter inputFilter = filtersList.GetFilter(filename);
IMediaImage imageFormat = ImageFormat.Detect(inputFilter);
if (imageFormat.Open(inputFilter))
{
    List<Partition> partitions = DiscImageChef.Core.Partitions.GetAll(imageFormat);
    partitions.ForEach(partition =>
    {
        Console.WriteLine(partition);
    }
}

Expected behavior:

The file system is identified as 'partclone'

Actual behavior:

The file system is not identified

Thank you,
Fidel

Originally created by @fiddyschmitt on GitHub (Dec 12, 2019). ### Description The following file is a partclone image (copied from a Clonezilla backup). https://github.com/discimagechef/DiscImageChef/files/3955569/sda1.ntfs-ptcl-img.gz.aa.zip (Apologies - I've had to zip it up) DiscImageChef correctly identifies it as GZip, but when it tries to identify the file system it does not match against partclone. ### Exact command line used: ``` string filename = @"C:\VMs\SmallDrive\output\2019-11-27-22-img_sda\sda1.ntfs-ptcl-img.gz.aa"; IFilter inputFilter = filtersList.GetFilter(filename); IMediaImage imageFormat = ImageFormat.Detect(inputFilter); if (imageFormat.Open(inputFilter)) { List<Partition> partitions = DiscImageChef.Core.Partitions.GetAll(imageFormat); partitions.ForEach(partition => { Console.WriteLine(partition); } } ``` ### Expected behavior: The file system is identified as 'partclone' ### Actual behavior: The file system is not identified Thank you, Fidel
claunia added the feature requestdump image formatbeginner labels 2026-01-29 15:15:18 +00:00
Author
Owner

@claunia commented on GitHub (Mar 9, 2020):

The attached image correspond to a new format, v2:
https://github.com/Thomas-Tsai/partclone/blob/master/src/partclone.h#L145

This format is not yet supported.

@claunia commented on GitHub (Mar 9, 2020): The attached image correspond to a new format, v2: https://github.com/Thomas-Tsai/partclone/blob/master/src/partclone.h#L145 This format is not yet supported.
Author
Owner

@fiddyschmitt commented on GitHub (Mar 9, 2020):

Thanks claunia, much appreciated

@fiddyschmitt commented on GitHub (Mar 9, 2020): Thanks claunia, much appreciated
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: aaru-dps/Aaru-aaru-dps#295