-
Notifications
You must be signed in to change notification settings - Fork 17
Description
I know this sounds like a 7zip issue, or a corrupt image but stay with me here, because its stranger than it sounds, and may be something to do with clonezilla-util.
Story:
- Cloned my Win10 drive (all partitions) before a wipe out and rebuild.
- Attempted to mount the partitions as directories under drive L:\ using clonezilla-util.
- The ~500MB recovery partition mounts fine as \sda2, but the \sda1 (the old C:\ drive) is just empty.
- Checked the logs and found 7z error, "Cannot open the file as archive," given after indexing.
- So I abandon indexed mounting... Used clonezilla-util to unzip the \sda1 partition fully to sda1.img.
- Attempting to open the uncompressed .img, 7zip errors: "Cannot open the file sda1.img as archive"
- Check file with hex editor: Header is okay. But end of file cuts off with 100's of pages of 00 00 00 00s, and no obvious end-header where the data cuts off. (footer)
- Abandon accessing image file... Boot to same CloneZilla live environment that made the clone.
- Restore the whole image to an empty drive.
- Boot to a Fedora KDE Plasma Live environment.
- Use Dolphin to mount and access the restored partition, offline.
- Copy data to from the old C:\ to the new C:\ -- no problem.
So, to recap: I cloned my whole drive, and when I tried to mount it using clonezilla-util's indexing, the primary partition (223Gb's unzipped; 118Gb's as .gz) became unmountable, likely due to dropping the footer, along with a big chunk of the end of the raw data. When I finally cut my losses and restored to an empty drive using CloneZilla itself, the data was all there, and accessible offline, using a Fedora Live environment.
That allowed me to go ahead and mount my new C:\ drive and my old C:\ drive next to each other and transfer some leftovers that I wanted on the new disk. So I'm all set now.
Here's some important details: The version of CloneZilla I used to make and restore the disk clone is from early 2023. It's on an old Ventoy boot disk I made to cover a wealth of needs, and I haven't had cause to swap any of the iso's out for modern counterparts. So, old CloneZilla / old linux kernel may have made a weird image? ...I wouldn't think much has changed in gzipped disk clones in the last 2 decades, honestly. But I'm mentioning it, just in case.
The other thing to note is that this Win10 NTFS environment had undergone the mbr2gpt conversion. Again, just throwing it out there as a potential oddity that might've tripped things up. I suppose I could also mention that the cloned disk was an SSD. Not an NVMe; not a platter.
And when I made the original backup, my CloneZilla/parted settings were very basic. I went through the CloneZilla UI, chose the usual options to make a full disk clone... No wacky custom command line configs, or anything. Standard.
I saw how useful this tool might've been, and how much time I could have saved by indexing the compressed file instead of unzipping or fully restoring it, so keep at it! And I'll be back to give it another try, next time.