Oh, I did not notice that you are using "partclone.restore". Please use "partclone.ext4" in your case. Because the varieties of file systems which partclone has, partclone.restore becomes very difficult to maintain. Therefore it is deprecated actually. We do not use partclone.restore in any program of Clonezilla now. This command will be abandoned in the future.
The testing I have here:
I have the same problem. Now the -C options works without the --restore_raw_file, but I am trying to make an img file that I can mount via loop.
Bottom line... I created an image of a 160GB drive with clonezilla, now I want to create an img file I can mount and get some files off of. There was only 30GB of data on the drive and I have 100G free on my current 160GB drive. I'm expecting a 30GB .img file.
I usually need extract Clonezilla images so I use the sequence:
cat sdc1.ext4-ptcl-img.* | gzip -d -c | parclone.restore -C -s - -o ../sdc1.loop.img --restore_raw_file
Partclone (v0.2.66 and v0.2.69) says:
Partclone v0.2.69 http://partclone.org
Staring to restore image (-) to device (../sdc1.loop.img)
device (../sdc1.loop.img) is mounted at
error exit
Partclone fail, pease check /var/logpartclone.log !
Older Partclone releases ( tested on v0.2.56 and v0.2.60 ) with same sequence say:
Partclone v0.2.60 http://partclone.org
Staring to restore image (-) to device (../sdc1.loop.img)
Calculating bitmap... Please wait...done !
File system: ...
Device size: ...
Space in use: ...
Free Space: ...
Block size: ...
Elapsed: ...
current block: ...
...
Cloned successfully.
What's wrong ?
Thanks for this bug report. I confirmed this issue.
I have forwarded this to Thomas Tsai.
Steven.
This issue has been fixed in Partclone 0.2.70, and testing Clonezilla live 2.2.2-1 and 20140120-* have used this version.
Thanks.
Steven.
Ok...now works, but "-C" flag doesn't works.
Partclone still check free disk space with or without "-C" option.
cat sda7.ext4-ptcl-img.* | gzip -d -c | partclone.restore -C -s - -o /test.img --restore_raw_file
Partclone v0.2.70 http://partclone.org
Starting to restore image (-) to device (/test.img)
Calculating bitmap... Please wait... Destination doesn't have enough free space: 7757 MB < 15834 MB
cat sda7.ext4-ptcl-img.* | gzip -d -c | partclone.restore -s - -o /test.img --restore_raw_file
Partclone v0.2.70 http://partclone.org
Starting to restore image (-) to device (/test.img)
Calculating bitmap... Please wait... Destination doesn't have enough free space: 7757 MB < 15834 MB
Thanks.
This is weird... Was your test.img created before that command is created?
Or is your system free space is not enough?
Steven.
Destination doesn't have enough free space: 7757 MB < 15834 MB
but
-C, --no_check Don't check device size and free space
With v0.2.60, this works properly.
Oh, I did not notice that you are using "partclone.restore". Please use "partclone.ext4" in your case. Because the varieties of file systems which partclone has, partclone.restore becomes very difficult to maintain. Therefore it is deprecated actually. We do not use partclone.restore in any program of Clonezilla now. This command will be abandoned in the future.
The testing I have here:
zcat sda5.ext4-ptcl-img.gz.aa | partclone.ext4 -C -s - -r -o /mnt/sda1.loop.img --restore_raw_file
Partclone v0.2.70 http://partclone.org
Starting to restore image (-) to device (/mnt/sda1.loop.img)
Calculating bitmap... Please wait... done!
File system: EXTFS
Device size: 3.1 GB = 751104 Blocks
Space in use: 120.1 MB = 29311 Blocks
Free Space: 3.0 GB = 721793 Blocks
Block size: 4096 Byte
Elapsed: 00:00:02, Remaining: 00:00:00, Completed: 100.00%, Rate:
3.60GB/min,
current block: 527897, total block: 751104, Complete: 100.00%
Total Time: 00:00:02, Ave. Rate: 3.6GB/min, 100.00% completed!
Syncing... OK!
Partclone successfully restored the image (-) to the device
(/mnt/sda1.loop.img)
Cloned successfully.
Steven.
The same error using that for ntfs images.
Partclone v0.2.70 http://partclone.org
Staring to restore image (-) to device (../sda2.loop.img)
device (../sda2.loop.img) is mounted at
error exit
Could you please show us the full command?
It would be easier for us to reproduce the problem.
Thanks.
Steven.
I have the same problem. Now the -C options works without the --restore_raw_file, but I am trying to make an img file that I can mount via loop.
Bottom line... I created an image of a 160GB drive with clonezilla, now I want to create an img file I can mount and get some files off of. There was only 30GB of data on the drive and I have 100G free on my current 160GB drive. I'm expecting a 30GB .img file.
cat vgname-root.ext4-ptcl-img.gz.a* | gunzip -c |partclone.ext4 -C -r -s - -O /vgname-root.ext4.img --restore_raw_file
Partclone v0.2.70 http://partclone.org
Starting to restore image (/vgname-root.img) to device (/vgname-root.ext4.2.img)
Calculating bitmap... Please wait... Destination doesn't have enough free space: 119733 MB < 156830 MB
Partclone fail, please check /var/log/partclone.log !
Could you please try partclone 0.2.72?
Please let us know the results.
Thanks.
Steven.