fiddyschmitt / clonezilla-util

Mount Clonezilla images in Windows
207 stars 13 forks source link

XFS support #63

Open mzky opened 1 month ago

mzky commented 1 month ago

use cmd: /usr/sbin/ocs-sr -q2 -j2 -nogui -gm -gs -z1p -i 4000 -batch -sfsck -senc -p poweroff savedisk ask_user sda

# File system is got from ocs-get-dev-info. It might be different from that of blkid or parted.
/dev/sda1 bios_grub 1M
/dev/sda2 xfs 8G
/dev/sda3 xfs 32G
/dev/sda5 xfs 600G
/dev/sda4 swap 8G

Error info:

PS D:\linux\clonezilla-util.v2.4.0.win-x64> .\clonezilla-util.exe mount --input D:\image\PCM20240613V4.2I-E1.0 --mount L:\
[15:07:57 INF] clonezilla-util v2.4.0
[15:07:57 INF] [PCM20240613V4.2I-E1.0] [sda1] Finding optimal decompressor (seekable/sequential)
[15:07:57 INF] [PCM20240613V4.2I-E1.0] [sda1] Running a 10 second performance test to determine the optimal way to serve it.
[15:07:57 INF] [PCM20240613V4.2I-E1.0] [sda1] Using a sequential decompressor for this data.
[15:07:57 INF] [PCM20240613V4.2I-E1.0] [sda1] Loading partition information
[15:07:57 INF] [PCM20240613V4.2I-E1.0] [sda2] Finding optimal decompressor (seekable/sequential)
[15:07:57 INF] [PCM20240613V4.2I-E1.0] [sda2] Running a 10 second performance test to determine the optimal way to serve it.
[15:07:59 INF] [PCM20240613V4.2I-E1.0] [sda2] Using a sequential decompressor for this data.
[15:07:59 INF] [PCM20240613V4.2I-E1.0] [sda2] Loading partition information
[15:07:59 INF] [PCM20240613V4.2I-E1.0] [sda2] Reading partclone content map
[15:08:00 INF] [PCM20240613V4.2I-E1.0] [sda3] Finding optimal decompressor (seekable/sequential)
[15:08:00 INF] [PCM20240613V4.2I-E1.0] [sda3] Running a 10 second performance test to determine the optimal way to serve it.
[15:08:00 INF] [PCM20240613V4.2I-E1.0] [sda3] Using a sequential decompressor for this data.
[15:08:00 INF] [PCM20240613V4.2I-E1.0] [sda3] Loading partition information
[15:08:00 INF] [PCM20240613V4.2I-E1.0] [sda3] Reading partclone content map
[15:08:00 INF] [PCM20240613V4.2I-E1.0] [sda5] Finding optimal decompressor (seekable/sequential)
[15:08:00 INF] [PCM20240613V4.2I-E1.0] [sda5] Running a 10 second performance test to determine the optimal way to serve it.
[15:08:10 INF] [PCM20240613V4.2I-E1.0] [sda5] Using a seekable decompressor for this data.
[15:08:10 INF] Generating gzip index.
ACTION: Create index for a gzip file

Processing STDIN ...
Processing index to 'D:\linux\clonezilla-util.v2.4.0.win-x64\cache\db1ac5b83f4bd4d1\sda5.gztool_index.gzi.wip'...
[15:08:12 INF] Indexed 64 MB. (3.9% through source file)
[15:08:12 INF] Indexed 128 MB. (7.8% through source file)
[15:08:13 INF] Indexed 192 MB. (11.8% through source file)
[15:08:14 INF] Indexed 256 MB. (15.7% through source file)
[15:08:15 INF] Indexed 320 MB. (19.6% through source file)
[15:08:16 INF] Indexed 384 MB. (23.5% through source file)
[15:08:17 INF] Indexed 448 MB. (27.4% through source file)
[15:08:17 INF] Indexed 512 MB. (31.4% through source file)
[15:08:18 INF] Indexed 576 MB. (35.3% through source file)
[15:08:18 INF] Indexed 640 MB. (39.2% through source file)
[15:08:18 INF] Indexed 704 MB. (43.1% through source file)
[15:08:19 INF] Indexed 768 MB. (47.0% through source file)
[15:08:21 INF] Indexed 832 MB. (51.0% through source file)
[15:08:21 INF] Indexed 896 MB. (54.9% through source file)
[15:08:23 INF] Indexed 960 MB. (58.8% through source file)
[15:08:25 INF] Indexed 1 GB. (62.7% through source file)
[15:08:26 INF] Indexed 1.06 GB. (66.7% through source file)
[15:08:28 INF] Indexed 1.13 GB. (70.6% through source file)
[15:08:30 INF] Indexed 1.19 GB. (74.5% through source file)
[15:08:31 INF] Indexed 1.25 GB. (78.4% through source file)
[15:08:33 INF] Indexed 1.31 GB. (82.3% through source file)
[15:08:35 INF] Indexed 1.38 GB. (86.3% through source file)
[15:08:37 INF] Indexed 1.44 GB. (90.2% through source file)
[15:08:38 INF] Indexed 1.5 GB. (94.1% through source file)
[15:08:40 INF] Indexed 1.56 GB. (98.0% through source file)
[15:08:41 INF] Indexed 1.59 GB. (100.0% through source file)
[15:08:41 INF] Indexed 1.59 GB. (100.0% through source file)
Index written to 'D:\linux\clonezilla-util.v2.4.0.win-x64\cache\db1ac5b83f4bd4d1\sda5.gztool_index.gzi.wip'.
Built index with 424 access points.

[15:08:41 INF] Finished generating gzip index. Moving to final location: D:\linux\clonezilla-util.v2.4.0.win-x64\cache\db1ac5b83f4bd4d1\sda5.gztool_index.gzi
[15:08:41 INF] [PCM20240613V4.2I-E1.0] [sda5] Loading partition information
[15:08:42 INF] [PCM20240613V4.2I-E1.0] [sda5] Reading partclone content map
[15:08:46 INF] Waiting for L:\ to be available.
[15:08:46 INF] [PCM20240613V4.2I-E1.0] [sda1] Retrieving a list of files.
[15:08:47 ERR] D:\linux\clonezilla-util.v2.4.0.win-x64\ext\7-Zip\win-x64\7z.exe l -slt "L:\ghtte21n\qeomnw4n\sda1.img"
Process encountered errors:
ERROR: L:\ghtte21n\qeomnw4n\sda1.img : Cannot open the file as archive

[15:08:47 INF] [PCM20240613V4.2I-E1.0] [sda1] Contains 0 files.
[15:08:47 INF] [PCM20240613V4.2I-E1.0] [sda1] Determining optimal way to extract files from this partition.
[15:08:47 ERR] D:\linux\clonezilla-util.v2.4.0.win-x64\ext\7-Zip\win-x64\7z.exe l "L:\ghtte21n\qeomnw4n\sda1.img"
Process encountered errors:
ERROR: L:\ghtte21n\qeomnw4n\sda1.img : Cannot open the file as archive

[15:08:47 INF] [PCM20240613V4.2I-E1.0] [sda1] 7z.exe will be used to extract files from this partition.
[15:08:47 INF] [PCM20240613V4.2I-E1.0] [sda2] Retrieving a list of files.
[15:08:47 ERR] D:\linux\clonezilla-util.v2.4.0.win-x64\ext\7-Zip\win-x64\7z.exe l -slt "L:\ghtte21n\31elirif\sda2.img"
Process encountered errors:
ERROR: L:\ghtte21n\31elirif\sda2.img : opening : 连到系统上的设备没有发挥作用。

System ERROR:
连到系统上的设备没有发挥作用。
[15:08:47 INF] [PCM20240613V4.2I-E1.0] [sda2] Contains 0 files.
[15:08:47 INF] [PCM20240613V4.2I-E1.0] [sda2] Determining optimal way to extract files from this partition.
[15:08:47 ERR] D:\linux\clonezilla-util.v2.4.0.win-x64\ext\7-Zip\win-x64\7z.exe l "L:\ghtte21n\31elirif\sda2.img"
Process encountered errors:
ERROR: L:\ghtte21n\31elirif\sda2.img : opening : 连到系统上的设备没有发挥作用。

System ERROR:
连到系统上的设备没有发挥作用。
[15:08:47 INF] [PCM20240613V4.2I-E1.0] [sda2] 7z.exe will be used to extract files from this partition.
[15:08:47 INF] [PCM20240613V4.2I-E1.0] [sda3] Retrieving a list of files.
[15:08:47 ERR] D:\linux\clonezilla-util.v2.4.0.win-x64\ext\7-Zip\win-x64\7z.exe l -slt "L:\ghtte21n\shkoyq2f\sda3.img"
Process encountered errors:
ERROR: L:\ghtte21n\shkoyq2f\sda3.img : Cannot open the file as archive

[15:08:47 INF] [PCM20240613V4.2I-E1.0] [sda3] Contains 0 files.
[15:08:47 INF] [PCM20240613V4.2I-E1.0] [sda3] Determining optimal way to extract files from this partition.
[15:08:47 ERR] D:\linux\clonezilla-util.v2.4.0.win-x64\ext\7-Zip\win-x64\7z.exe l "L:\ghtte21n\shkoyq2f\sda3.img"
Process encountered errors:
ERROR: L:\ghtte21n\shkoyq2f\sda3.img : Cannot open the file as archive

[15:08:47 INF] [PCM20240613V4.2I-E1.0] [sda3] 7z.exe will be used to extract files from this partition.
[15:08:47 INF] [PCM20240613V4.2I-E1.0] [sda5] Retrieving a list of files.
[15:08:47 ERR] D:\linux\clonezilla-util.v2.4.0.win-x64\ext\7-Zip\win-x64\7z.exe l -slt "L:\ghtte21n\vgjh1kev\sda5.img"
Process encountered errors:
ERROR: L:\ghtte21n\vgjh1kev\sda5.img : opening : 连到系统上的设备没有发挥作用。

System ERROR:
连到系统上的设备没有发挥作用。
[15:08:47 INF] [PCM20240613V4.2I-E1.0] [sda5] Contains 0 files.
[15:08:47 INF] [PCM20240613V4.2I-E1.0] [sda5] Determining optimal way to extract files from this partition.
[15:08:47 ERR] D:\linux\clonezilla-util.v2.4.0.win-x64\ext\7-Zip\win-x64\7z.exe l "L:\ghtte21n\vgjh1kev\sda5.img"
Process encountered errors:
ERROR: L:\ghtte21n\vgjh1kev\sda5.img : opening : 连到系统上的设备没有发挥作用。

System ERROR:
连到系统上的设备没有发挥作用。
[15:08:47 INF] [PCM20240613V4.2I-E1.0] [sda5] 7z.exe will be used to extract files from this partition.
[15:08:47 INF] Mounting complete. Mounted to: L:\
Running. Press Enter to exit.

PS D:\linux\clonezilla-util.v2.4.0.win-x64> .\clonezilla-util.exe mount --input D:\平台部署镜像\PCM20240613V4.2I-E1.0 --mount L:\
[15:10:42 INF] clonezilla-util v2.4.0
[15:10:43 INF] [PCM20240613V4.2I-E1.0] [sda1] Finding optimal decompressor (seekable/sequential)
[15:10:43 INF] [PCM20240613V4.2I-E1.0] [sda1] Running a 10 second performance test to determine the optimal way to serve it.
[15:10:43 INF] [PCM20240613V4.2I-E1.0] [sda1] Using a sequential decompressor for this data.
[15:10:43 INF] [PCM20240613V4.2I-E1.0] [sda1] Loading partition information
[15:10:43 INF] [PCM20240613V4.2I-E1.0] [sda2] Finding optimal decompressor (seekable/sequential)
[15:10:43 INF] [PCM20240613V4.2I-E1.0] [sda2] Running a 10 second performance test to determine the optimal way to serve it.
[15:10:43 INF] [PCM20240613V4.2I-E1.0] [sda2] Using a sequential decompressor for this data.
[15:10:43 INF] [PCM20240613V4.2I-E1.0] [sda2] Loading partition information
[15:10:43 INF] [PCM20240613V4.2I-E1.0] [sda3] Finding optimal decompressor (seekable/sequential)
[15:10:43 INF] [PCM20240613V4.2I-E1.0] [sda3] Running a 10 second performance test to determine the optimal way to serve it.
[15:10:43 INF] [PCM20240613V4.2I-E1.0] [sda3] Using a sequential decompressor for this data.
[15:10:43 INF] [PCM20240613V4.2I-E1.0] [sda3] Loading partition information
[15:10:43 INF] [PCM20240613V4.2I-E1.0] [sda5] Finding optimal decompressor (seekable/sequential)
[15:10:43 INF] [PCM20240613V4.2I-E1.0] [sda5] Running a 10 second performance test to determine the optimal way to serve it.
[15:10:53 INF] [PCM20240613V4.2I-E1.0] [sda5] Using a seekable decompressor for this data.
[15:10:53 INF] [PCM20240613V4.2I-E1.0] [sda5] Loading partition information
[15:10:54 INF] Waiting for L:\ to be available.
[15:10:54 INF] [PCM20240613V4.2I-E1.0] [sda1] Retrieving a list of files.
[15:10:54 INF] [PCM20240613V4.2I-E1.0] [sda1] Contains 0 files.
[15:10:54 INF] [PCM20240613V4.2I-E1.0] [sda1] Determining optimal way to extract files from this partition.
[15:10:54 ERR] D:\linux\clonezilla-util.v2.4.0.win-x64\ext\7-Zip\win-x64\7z.exe l "L:\2e5dxqh3\d4k3lno2\sda1.img"
Process encountered errors:
ERROR: L:\2e5dxqh3\d4k3lno2\sda1.img : Cannot open the file as archive

[15:10:54 INF] [PCM20240613V4.2I-E1.0] [sda1] 7z.exe will be used to extract files from this partition.
[15:10:54 INF] [PCM20240613V4.2I-E1.0] [sda2] Retrieving a list of files.
[15:10:54 INF] [PCM20240613V4.2I-E1.0] [sda2] Contains 0 files.
[15:10:54 INF] [PCM20240613V4.2I-E1.0] [sda2] Determining optimal way to extract files from this partition.
[15:10:54 ERR] D:\linux\clonezilla-util.v2.4.0.win-x64\ext\7-Zip\win-x64\7z.exe l "L:\2e5dxqh3\v4mipge4\sda2.img"
Process encountered errors:
ERROR: L:\2e5dxqh3\v4mipge4\sda2.img : opening : 连到系统上的设备没有发挥作用。

System ERROR:
连到系统上的设备没有发挥作用。
[15:10:54 INF] [PCM20240613V4.2I-E1.0] [sda2] 7z.exe will be used to extract files from this partition.
[15:10:54 INF] [PCM20240613V4.2I-E1.0] [sda3] Retrieving a list of files.
[15:10:54 INF] [PCM20240613V4.2I-E1.0] [sda3] Contains 0 files.
[15:10:54 INF] [PCM20240613V4.2I-E1.0] [sda3] Determining optimal way to extract files from this partition.
[15:10:55 ERR] D:\linux\clonezilla-util.v2.4.0.win-x64\ext\7-Zip\win-x64\7z.exe l "L:\2e5dxqh3\zhnailse\sda3.img"
Process encountered errors:
ERROR: L:\2e5dxqh3\zhnailse\sda3.img : Cannot open the file as archive

[15:10:55 INF] [PCM20240613V4.2I-E1.0] [sda3] 7z.exe will be used to extract files from this partition.
[15:10:55 INF] [PCM20240613V4.2I-E1.0] [sda5] Retrieving a list of files.
[15:10:55 INF] [PCM20240613V4.2I-E1.0] [sda5] Contains 0 files.
[15:10:55 INF] [PCM20240613V4.2I-E1.0] [sda5] Determining optimal way to extract files from this partition.
[15:10:55 ERR] D:\linux\clonezilla-util.v2.4.0.win-x64\ext\7-Zip\win-x64\7z.exe l "L:\2e5dxqh3\aldeabeo\sda5.img"
Process encountered errors:
ERROR: L:\2e5dxqh3\aldeabeo\sda5.img : opening : 连到系统上的设备没有发挥作用。

System ERROR:
连到系统上的设备没有发挥作用。
[15:10:55 INF] [PCM20240613V4.2I-E1.0] [sda5] 7z.exe will be used to extract files from this partition.
[15:10:55 INF] Mounting complete. Mounted to: L:\
Running. Press Enter to exit.
fiddyschmitt commented 1 month ago

Thanks for the detailed report mzky!

It looks like your file system is XFS, which 7-Zip doesn't seem to support. I'll search for a library which can read it.

Cheers, Fidel

fiddyschmitt commented 1 month ago

Aaru Data Preservation Suite (formerly? Disk Image Chef) https://github.com/aaru-dps/Aaru

DiscUtils.Xfs https://github.com/DiscUtils/DiscUtils