fiddyschmitt / clonezilla-util

Mount Clonezilla images in Windows
198 stars 12 forks source link

Error while mounting raw images #31

Closed danielpclin closed 11 months ago

danielpclin commented 1 year ago

With a big partition image file, running .\clonezilla-util.exe mount --input L:\test\nvme0n1p4.img --mount E:\ spits out a lot of Error while finding parent of #### errors. The img file is in a smb server. Also when extracting the backup, System.Exception: Unknown partclone image version is thrown.

Below is the clonezilla-img file

This image was saved by Clonezilla at 2023-02-25 22:08:47 UTC.
Saved by clonezilla-live-20230212-kinetic-amd64.
The log during saving:
----------------------------------------------------------
Starting /usr/sbin/ocs-sr at 2023-02-25 19:39:54 UTC...
*****************************************************.
Clonezilla image dir: /home/partimag
Shutting down the Logical Volume Manager
Finished Shutting down the Logical Volume Manager
The selected devices: nvme0n1p1 nvme0n1p2 nvme0n1p3 nvme0n1p4 nvme0n1p5 sda1 sda2
PS. Next time you can run this command directly:
/usr/sbin/ocs-sr -q2 -c -j2 -z9p -i 0 -fsck -senc -p choose saveparts 2023-02-25-19-img nvme0n1p1 nvme0n1p2 nvme0n1p3 nvme0n1p4 nvme0n1p5 sda1 sda2
*****************************************************.
The selected devices: nvme0n1p1 nvme0n1p2 nvme0n1p3 nvme0n1p4 nvme0n1p5 sda1 sda2
The following step is to save the hard disk/partition(s) on this machine as an image:
*****************************************************.
Machine: System Product Name
nvme0n1p1 (529M_ntfs_修復(In_INTEL_SSDPEKKW010T8_)_INTEL_SSDPEKKW010T8_BTHH91210SCW1P0E)
nvme0n1p2 (100M_vfat(In_INTEL_SSDPEKKW010T8_)_INTEL_SSDPEKKW010T8_BTHH91210SCW1P0E)
nvme0n1p3 (16M_MS_Reserved_Partition(In_INTEL_SSDPEKKW010T8_)_INTEL_SSDPEKKW010T8_BTHH91210SCW1P0E)
nvme0n1p4 (952.5G_ntfs(In_INTEL_SSDPEKKW010T8_)_INTEL_SSDPEKKW010T8_BTHH91210SCW1P0E)
nvme0n1p5 (715M_ntfs(In_INTEL_SSDPEKKW010T8_)_INTEL_SSDPEKKW010T8_BTHH91210SCW1P0E)
sda1 (16M_MS_Reserved_Partition(In_CT500MX500SSD1_)_CT500MX500SSD1_1804E10BDD52)
sda2 (465.7G_ntfs(In_CT500MX500SSD1_)_CT500MX500SSD1_1804E10BDD52)
*****************************************************.
-> "/home/partimag/2023-02-25-19-img".
Shutting down the Logical Volume Manager
Finished Shutting down the Logical Volume Manager
Starting saving /dev/nvme0n1p1 as /home/partimag/2023-02-25-19-img/nvme0n1p1.XXX...
/dev/nvme0n1p1 filesystem: ntfs.
*****************************************************.
*****************************************************.
Use partclone with zstdmt to save the image.
Image file will not be split.
*****************************************************.
If this action fails or hangs, check:
* Is the disk full ?
*****************************************************.
Running: partclone.ntfs -z 10485760 -N -L /var/log/partclone.log -c -s /dev/nvme0n1p1 --output - | zstdmt -c -3 > /home/partimag/2023-02-25-19-img/nvme0n1p1.ntfs-ptcl-img.zst 2> /tmp/img_out_err.0rFqEE
Partclone v0.3.23 http://partclone.org
Starting to clone device (/dev/nvme0n1p1) to image (-)
Reading Super Block
memory needed: 20988452 bytes
bitmap 16928 bytes, blocks 2*10485760 bytes, checksum 4 bytes
Calculating bitmap... Please wait... 
done!
File system:  NTFS
Device size:  554.7 MB = 135423 Blocks
Space in use:  10.5 MB = 2561 Blocks
Free Space:   544.2 MB = 132862 Blocks
Block size:   4096 Byte
Total block 135423
Syncing... OK!
Partclone successfully cloned the device (/dev/nvme0n1p1) to the image (-)
>>> Time elapsed: 7.19 secs (~ .119 mins)
*****************************************************.
Finished saving /dev/nvme0n1p1 as /home/partimag/2023-02-25-19-img/nvme0n1p1.ntfs-ptcl-img.zst
*****************************************************.
Starting saving /dev/nvme0n1p2 as /home/partimag/2023-02-25-19-img/nvme0n1p2.XXX...
/dev/nvme0n1p2 filesystem: vfat.
*****************************************************.
*****************************************************.
Use partclone with zstdmt to save the image.
Image file will not be split.
*****************************************************.
If this action fails or hangs, check:
* Is the disk full ?
*****************************************************.
Running: partclone.vfat -z 10485760 -N -L /var/log/partclone.log -c -s /dev/nvme0n1p2 --output - | zstdmt -c -3 > /home/partimag/2023-02-25-19-img/nvme0n1p2.vfat-ptcl-img.zst 2> /tmp/img_out_err.b6ccCD
Partclone v0.3.23 http://partclone.org
Starting to clone device (/dev/nvme0n1p2) to image (-)
Reading Super Block
memory needed: 20997124 bytes
bitmap 25600 bytes, blocks 2*10485760 bytes, checksum 4 bytes
Calculating bitmap... Please wait... 
done!
File system:  FAT32
Device size:  104.9 MB = 204800 Blocks
Space in use:  32.5 MB = 63526 Blocks
Free Space:    72.3 MB = 141274 Blocks
Block size:   512 Byte
Total block 204800
Syncing... OK!
Partclone successfully cloned the device (/dev/nvme0n1p2) to the image (-)
>>> Time elapsed: 7.23 secs (~ .120 mins)
*****************************************************.
Finished saving /dev/nvme0n1p2 as /home/partimag/2023-02-25-19-img/nvme0n1p2.vfat-ptcl-img.zst
*****************************************************.
Starting saving /dev/nvme0n1p3 as /home/partimag/2023-02-25-19-img/nvme0n1p3.XXX...
/dev/nvme0n1p3 filesystem: MS_Reserved_Partition.
*****************************************************.
*****************************************************.
Use partclone with zstdmt to save the image.
Image file will not be split.
*****************************************************.
If this action fails or hangs, check:
* Is the disk full ?
*****************************************************.
Running: partclone.dd -z 10485760 -N --buffer_size 16777216 -L /var/log/partclone.log -s /dev/nvme0n1p3 --output - | zstdmt -c -3 > /home/partimag/2023-02-25-19-img/nvme0n1p3.dd-ptcl-img.zst 2> /tmp/img_out_err.NzzP3U
Partclone v0.3.23 http://partclone.org
Starting to clone/restore (/dev/nvme0n1p3) to (-) with dd mode
get device size 16777216 by ioctl BLKGETSIZE64,
get device size 16777216 by ioctl BLKGETSIZE64,
memory needed: 33558528 bytes
bitmap 4096 bytes, blocks 2*16777216 bytes, checksum 0 bytes
Calculating bitmap... Please wait... done!
File system:  raw
Device size:   16.8 MB = 32768 Blocks
Space in use:  16.8 MB = 32768 Blocks
Free Space:     0 Byte = 0 Blocks
Block size:   512 Byte
Total block 32768
Syncing... OK!
>>> Time elapsed: 6.18 secs (~ .103 mins)
*****************************************************.
Finished saving /dev/nvme0n1p3 as /home/partimag/2023-02-25-19-img/nvme0n1p3.dd-ptcl-img.zst
*****************************************************.
Starting saving /dev/nvme0n1p4 as /home/partimag/2023-02-25-19-img/nvme0n1p4.XXX...
/dev/nvme0n1p4 filesystem: ntfs.
*****************************************************.
*****************************************************.
Use partclone with zstdmt to save the image.
Image file will not be split.
*****************************************************.
If this action fails or hangs, check:
* Is the disk full ?
*****************************************************.
Running: partclone.ntfs -z 10485760 -N -L /var/log/partclone.log -c -s /dev/nvme0n1p4 --output - | zstdmt -c -3 > /home/partimag/2023-02-25-19-img/nvme0n1p4.ntfs-ptcl-img.zst 2> /tmp/img_out_err.338Dqn
Partclone v0.3.23 http://partclone.org
Starting to clone device (/dev/nvme0n1p4) to image (-)
Reading Super Block
memory needed: 52184275 bytes
bitmap 31212751 bytes, blocks 2*10485760 bytes, checksum 4 bytes
Calculating bitmap... Please wait... 
done!
File system:  NTFS
Device size:    1.0 TB = 249702007 Blocks
Space in use: 813.7 GB = 198646458 Blocks
Free Space:   209.1 GB = 51055549 Blocks
Block size:   4096 Byte
Total block 249702007
Syncing... OK!
Partclone successfully cloned the device (/dev/nvme0n1p4) to the image (-)
>>> Time elapsed: 6125.94 secs (~ 102.099 mins)
*****************************************************.
Finished saving /dev/nvme0n1p4 as /home/partimag/2023-02-25-19-img/nvme0n1p4.ntfs-ptcl-img.zst
*****************************************************.
Starting saving /dev/nvme0n1p5 as /home/partimag/2023-02-25-19-img/nvme0n1p5.XXX...
/dev/nvme0n1p5 filesystem: ntfs.
*****************************************************.
*****************************************************.
Use partclone with zstdmt to save the image.
Image file will not be split.
*****************************************************.
If this action fails or hangs, check:
* Is the disk full ?
*****************************************************.
Running: partclone.ntfs -z 10485760 -N -L /var/log/partclone.log -c -s /dev/nvme0n1p5 --output - | zstdmt -c -3 > /home/partimag/2023-02-25-19-img/nvme0n1p5.ntfs-ptcl-img.zst 2> /tmp/img_out_err.i29IAk
Partclone v0.3.23 http://partclone.org
Starting to clone device (/dev/nvme0n1p5) to image (-)
Reading Super Block
memory needed: 20994404 bytes
bitmap 22880 bytes, blocks 2*10485760 bytes, checksum 4 bytes
Calculating bitmap... Please wait... 
done!
File system:  NTFS
Device size:  749.7 MB = 183039 Blocks
Space in use: 523.0 MB = 127693 Blocks
Free Space:   226.7 MB = 55346 Blocks
Block size:   4096 Byte
Total block 183039
Syncing... OK!
Partclone successfully cloned the device (/dev/nvme0n1p5) to the image (-)
>>> Time elapsed: 8.68 secs (~ .144 mins)
*****************************************************.
Finished saving /dev/nvme0n1p5 as /home/partimag/2023-02-25-19-img/nvme0n1p5.ntfs-ptcl-img.zst
*****************************************************.
Starting saving /dev/sda1 as /home/partimag/2023-02-25-19-img/sda1.XXX...
/dev/sda1 filesystem: MS_Reserved_Partition.
*****************************************************.
*****************************************************.
Use partclone with zstdmt to save the image.
Image file will not be split.
*****************************************************.
If this action fails or hangs, check:
* Is the disk full ?
*****************************************************.
Running: partclone.dd -z 10485760 -N --buffer_size 16777216 -L /var/log/partclone.log -s /dev/sda1 --output - | zstdmt -c -3 > /home/partimag/2023-02-25-19-img/sda1.dd-ptcl-img.zst 2> /tmp/img_out_err.uYFsvD
Partclone v0.3.23 http://partclone.org
Starting to clone/restore (/dev/sda1) to (-) with dd mode
get device size 16759808 by ioctl BLKGETSIZE64,
get device size 16759808 by ioctl BLKGETSIZE64,
memory needed: 33558524 bytes
bitmap 4092 bytes, blocks 2*16777216 bytes, checksum 0 bytes
Calculating bitmap... Please wait... done!
File system:  raw
Device size:   16.8 MB = 32734 Blocks
Space in use:  16.8 MB = 32734 Blocks
Free Space:     0 Byte = 0 Blocks
Block size:   512 Byte
Total block 32734
Syncing... OK!
>>> Time elapsed: 6.19 secs (~ .103 mins)
*****************************************************.
Finished saving /dev/sda1 as /home/partimag/2023-02-25-19-img/sda1.dd-ptcl-img.zst
*****************************************************.
Starting saving /dev/sda2 as /home/partimag/2023-02-25-19-img/sda2.XXX...
/dev/sda2 filesystem: ntfs.
*****************************************************.
*****************************************************.
Use partclone with zstdmt to save the image.
Image file will not be split.
*****************************************************.
If this action fails or hangs, check:
* Is the disk full ?
*****************************************************.
Running: partclone.ntfs -z 10485760 -N -L /var/log/partclone.log -c -s /dev/sda2 --output - | zstdmt -c -3 > /home/partimag/2023-02-25-19-img/sda2.ntfs-ptcl-img.zst 2> /tmp/img_out_err.DpeU1u
Partclone v0.3.23 http://partclone.org
Starting to clone device (/dev/sda2) to image (-)
Reading Super Block
memory needed: 36233060 bytes
bitmap 15261536 bytes, blocks 2*10485760 bytes, checksum 4 bytes
Calculating bitmap... Please wait... 
done!
File system:  NTFS
Device size:  500.1 GB = 122092287 Blocks
Space in use: 277.2 GB = 67666710 Blocks
Free Space:   222.9 GB = 54425577 Blocks
Block size:   4096 Byte
Total block 122092287
Syncing... OK!
Partclone successfully cloned the device (/dev/sda2) to the image (-)
>>> Time elapsed: 2643.88 secs (~ 44.064 mins)
*****************************************************.
Finished saving /dev/sda2 as /home/partimag/2023-02-25-19-img/sda2.ntfs-ptcl-img.zst
*****************************************************.
Saving block devices info in /home/partimag/2023-02-25-19-img/blkdev.list...
Saving block devices attributes in /home/partimag/2023-02-25-19-img/blkid.list...
Checking the integrity of partition table in the disk /dev/nvme0n1... 
Reading the partition table for /dev/nvme0n1...RETVAL=0
*****************************************************.
Saving the primary GPT of nvme0n1 as /home/partimag/2023-02-25-19-img/nvme0n1-gpt-1st by dd...
34+0 records in
34+0 records out
17408 bytes (17 kB, 17 KiB) copied, 0.00104782 s, 16.6 MB/s
*****************************************************.
Saving the secondary GPT of nvme0n1 as /home/partimag/2023-02-25-19-img/nvme0n1-gpt-2nd by dd...
32+0 records in
32+0 records out
16384 bytes (16 kB, 16 KiB) copied, 0.00133859 s, 12.2 MB/s
*****************************************************.
Saving the GPT of nvme0n1 as /home/partimag/2023-02-25-19-img/nvme0n1-gpt.gdisk by gdisk...
The operation has completed successfully.
*****************************************************.
Checking the integrity of partition table in the disk /dev/sda... 
Reading the partition table for /dev/sda...RETVAL=0
*****************************************************.
Saving the primary GPT of sda as /home/partimag/2023-02-25-19-img/sda-gpt-1st by dd...
34+0 records in
34+0 records out
17408 bytes (17 kB, 17 KiB) copied, 0.00107957 s, 16.1 MB/s
*****************************************************.
Saving the secondary GPT of sda as /home/partimag/2023-02-25-19-img/sda-gpt-2nd by dd...
32+0 records in
32+0 records out
16384 bytes (16 kB, 16 KiB) copied, 0.0023863 s, 6.9 MB/s
*****************************************************.
Saving the GPT of sda as /home/partimag/2023-02-25-19-img/sda-gpt.gdisk by gdisk...
The operation has completed successfully.
*****************************************************.
Saving the MBR data for nvme0n1...
1+0 records in
1+0 records out
512 bytes copied, 0.00160802 s, 318 kB/s
Saving the MBR data for sda...
1+0 records in
1+0 records out
512 bytes copied, 0.00249263 s, 205 kB/s
End of saveparts job for image /home/partimag/2023-02-25-19-img.
Checking if udevd rules have to be restored...
This program is not started by Clonezilla server, so skip notifying it the job is done.
This program is not started by Clonezilla server, so skip notifying it the job is done.
Finished!
Finished!
### End of log ###
### Image created time: 2023-0225-2208

Here is part of the output of the Mount raw images command

[05:46:27 INF] clonezilla-util v2.0.4
[05:47:54 INF] [nvme0n1p4] [partition0] Finding optimal decompressor (seekable/sequential)
[05:48:05 INF] [nvme0n1p4] [partition0] Loading partition information
[05:48:05 INF] Waiting for E:\ to be available.
[05:48:05 INF] [nvme0n1p4] [partition0] Retrieving a list of files.
[05:54:21 INF] [nvme0n1p4] [partition0] 7zFM.exe will be used to extract files from this partition.
[05:55:45 ERR] Error while finding parent of 107計算機科學.pdf
[05:55:45 ERR] Could not find Users\danielpclin\Desktop\考?箤考古\考古題\清大 in folderLookup
[05:55:46 ERR] Error while finding parent of 107ds.pdf
[05:55:46 ERR] Could not find Users\danielpclin\Desktop\考?箤考古\考古題\成大 in folderLookup
[05:55:47 ERR] Error while finding parent of 110ds.txt
[05:55:47 ERR] Could not find Users\danielpclin\Desktop\?珙箤考古\考古題\交大 in folderLookup
[05:55:53 ERR] Error while finding parent of 106年軟體.pdf
[05:55:53 ERR] Could not find Users\danielpclin\Desktop\考研\考古\考古題\?璊j in folderLookup
[05:55:56 ERR] Error while finding parent of 98年 市北教大 資科所 離散數學.pdf
[05:55:56 ERR] Could not find Users\danielpclin\Desktop\考研\考?j\P~市北教 in folderLookup
fiddyschmitt commented 1 year ago

Thanks for reporting it Daniel, and posting the clonezilla-img file :)

I think the issue is caused by some of those filenames containing special characters, which causes the program not to be able to work out the parent folders.

If you already have the img file (L:\test\nvme0n1p4.img) extracted, you should be able to right-click it and open it using 7-Zip.

Thanks! Fidel