File compressed with 5-17-2004 Knoppix CD, Partimage 0.6.2
Saved with gzip compression level.
File could not be restored from same Knoppix CD moments later,
gave an "invalid compression level" error, both in knoppix and
Mandrake 10
(both 0.6.2 IIRC)
In desperation, renamed file with a .gz extention, gunziped, and
it restored properly... (Yippee!!!)
Other partitions saved in the same period, same options,
saved/restored clean.
Is partimage forgetting semi randomly to include the compression
level info in a header or something?
gjmcgee@cableone.NOSPAM-PLEASE.net
Logged In: NO
Had the same problem
Excruciatingly annoying
Jon
jon @ web prophets . net . au
Logged In: NO
did the same gunzip and restore works fiene :))) stupid
partimage!!!
Logged In: YES
user_id=1205116
Originator: NO
Hi all,
I encoutered the same problem I think, using Partimage 0.6.6 from SystemRescueCD 0.4.3.
I did save an NTFS partition of 78GB (/dev/hda1) to a USB disk mounted thru ntfs-3g (ntfs-3g /dev/sdb1 /mnt/windows), using GZIP compression and automatic image split.
Saving works fine and leaves a 'quarkt-sda1.000' file of about 67GB.
Upon restore, I get an 'Invalid compression level for /mnt/windows/quarkt-sda1.000' error within the GUI.
I tried to rename the file to 'quarkt-sda1.000.gz', and lauched parted again, but got the same message.
I could not gunzip the image, as I do not have enough room on the disk. Peeking at the archive contents, I could see 1) the compression ratio was wrong 2) the uncompressed name was the same as the archive name (which suggests one should rename the archive created by PartImage in every case):
~# gzip -l /mnt/windows/quarkt-sda1.000
compressed uncompressed ratio uncompressed_name
68639053700 1266326748 -5320.3% quarkt-sda1.000
You'll find hereafter the contents of the '/var/log/partimage-debug.log' file.
As a workaround, I'll try the 'gunzip -c <imagefile> | partimage restore <partition> stdin' tip as suggested in the forum [1].
Hope this helps, Olivier
[1] http://www.partimage.org/forums/viewtopic.php?t=213&highlight=invalid+compression+level
--
Le Petit Atelier de Génie logiciel
t. +41-21-6487665, m. +41-76-5166212, http://www.petit-atelier.ch/
~# cat /var/log/partimage-debug.log
[Main] main.cpp->main#369: ==== Partition Image: compilation options used ====
* Version is 0.6.6 [4.1.2 (Gentoo 4.1.2 p1.0.2)].
* Supported file systems:
- ext2fs,ext3fs,reiserfs-3.5,reiserfs-3.6,reiserfs,fat,fat16,fat32,ntfs,hpfs,xfs,jfs,hfs,ufs
- Ext2fs support: internal code
* Debug options:
- PARTIMAGE_LOG=/var/log/partimage-debug.log
- PARTIMAGED_LOG=/var/log/partimaged.log
- DEVEL DISABLED
- DEFAULT_DEBUG_LEVEL=1
* Other options:
- CURRENT_IMAGE_FORMAT=0.6.1
- USERS DON'T LOGIN
- PARTIMAGED_USERS not used
- SSL DISABLED
- CHEUID DISABLED
[Main] main.cpp->main#451: ENDIANESS=ENDIAN_LITTLE
[Main] main.cpp->main#598: action=RESTORE
[Main] imagefile.cpp->openReading#992: begin (/mnt/windows/quarkt-sda1.000)
[Main] imagefile.cpp->openReading#1039: LEVEL [/mnt/windows/quarkt-sda1.000]=-1
[Main] image_disk.cpp->openReading#385: ALREADY=0
[Main] image_disk.cpp->openReading#397: openReading[/mnt/windows/quarkt-sda1.000]
[Main] image_disk.cpp->openReading#412: preopen successfull for /mnt/windows/quarkt-sda1.000
[Main] image_disk.cpp->openReading#437: open
[Main] image_disk.cpp->openReading#438: file /mnt/windows/quarkt-sda1.000 opened ok
[Main] imagefile.cpp->openReading#1079: PTHREAD_CREATE before
[Main] image_disk.cpp->read#254: cid: 14336 ; m_qwTotal = 14336
[Main] image_disk.cpp->read#254: cid: 14336 ; m_qwTotal = 28672
[Main] image_disk.cpp->read#254: cid: 14336 ; m_qwTotal = 43008
[Main] image_disk.cpp->read#254: cid: 14336 ; m_qwTotal = 57344
[Main] image_disk.cpp->read#254: cid: 14336 ; m_qwTotal = 71680
[Main] imagefile.cpp->openReading#1081: PTHREAD_CREATE after
[Main] imagefile.cpp->openReading#1109: THROW: -42
[Main] exceptions.cpp->CExceptions#88: openReading -> throws: -42
[Main] image_disk.cpp->close#274: close -> 71680
[Main] image_disk.cpp->destroySpaceFile#454: DESTROY SPACE FILE []
[Main] image_disk.cpp->~CImageDisk#80: total written: 71680
[Main] ../../src/shared/exceptions.h->get_szArg1#59: STR=(null)
[Main] main.cpp->main#611:
FINAL ERROR
[Main] main.cpp->main#731:
============= TIME and CPU infos ================
[Main] main.cpp->main#732: Total time:...........335295h: 1m:49sec
[Main] main.cpp->main#735: User time:............ 0sec (main= 0sec, child= 0sec)
[Main] main.cpp->main#738: System time:.......... 0sec (main= 0sec, child= 0sec)
[Main] main.cpp->main#739: CPU used:.............0 %
[Main] main.cpp->main#740: Beginning:............ 1207062107 = Tue Apr 1 15:01:47 2008
[Main] main.cpp->main#741: Start copy:........... 0 = Thu Jan 1 00:00:00 1970
[Main] main.cpp->main#742: End:.................. 1207062109 = Tue Apr 1 15:01:49 2008
[Main] main.cpp->main#743:
============= TIME and CPU infos ================
[Main] main.cpp->main#749: End of operation: FAILED
Logged In: YES
user_id=1205116
Originator: NO
The following workaround, as suggested on the forum, allowed me to restore the partition:
~# gunzip -c quarkt-sda1.000.gz | partimage restore /dev/sdc1 stdin
I also reran gzip with the --verbose switch, which gives some more details. Here is its output:
method crc date time compressed uncompressed ratio uncompressed_name
defla 793e397d Apr 1 07:04 68639053700 1266326748 -5320.3% quarkt-sda1.000
Logged In: YES
user_id=1205116
Originator: NO
I also tried to save a FAT32 partition, with GZIP compression and automatic split. It gave me a 'quarkt-sda2.000' file of about 3.3GB, which I also stored on ntfs-3g mounted NTFS partition on an external USB disk.
When I tried to restore that file, I ran into the same issue, I received an 'invalid compression level' error, followed by a segfault. You'll find partimage's debug log hereafter.
So it seems the problem isn't directly related to the partition type.
Peeking into the GZIP archive with gzip -l -v:
~# gzip -l -v quarkt-sda2.000
method crc date time compressed uncompressed ratio uncompressed_name
defla 0187f4c9 Apr 2 12:03 3633808305 4048330556 10.2% quarkt-sda2.000
In that case I had enough room, so I renamed the archive to 'quarkt-sda2.000.gz', extracted it with 'gunzip -d quarkt-sda2.000.gz' and then could restore the extracted 'quarkt-sda2.000' with partimage (partimage restore /dev/sdc2 quarkt-sda2.000).
Hope this provides some kind of useful information.
Kind regards,
Olivier
--
Le Petit Atelier de Génie logiciel
t. +41-21-6487665, m. +41-76-5166212, http://www.petit-atelier.ch/
~# cat /var/log/partimage-debug.log
[Main] main.cpp->main#364: /var/log/partimage-debug.log: Partition Image version 0.6.6 (DebugLevel 1 used, MainThread=15543)
[Main] main.cpp->main#366: =======================================================================================
[Main] main.cpp->main#369: ==== Partition Image: compilation options used ====
* Version is 0.6.6 [4.1.2 (Gentoo 4.1.2 p1.0.2)].
* Supported file systems:
- ext2fs,ext3fs,reiserfs-3.5,reiserfs-3.6,reiserfs,fat,fat16,fat32,ntfs,hpfs,xfs,jfs,hfs,ufs
- Ext2fs support: internal code
* Debug options:
- PARTIMAGE_LOG=/var/log/partimage-debug.log
- PARTIMAGED_LOG=/var/log/partimaged.log
- DEVEL DISABLED
- DEFAULT_DEBUG_LEVEL=1
* Other options:
- CURRENT_IMAGE_FORMAT=0.6.1
- USERS DON'T LOGIN
- PARTIMAGED_USERS not used
- SSL DISABLED
- CHEUID DISABLED
[Main] main.cpp->main#451: ENDIANESS=ENDIAN_LITTLE
[Main] main.cpp->main#598: action=RESTORE
[Main] imagefile.cpp->openReading#992: begin (quarkt-sda2.000.gz)
[Main] imagefile.cpp->openReading#1039: LEVEL [quarkt-sda2.000.gz]=-1
[Main] image_disk.cpp->openReading#385: ALREADY=0
[Main] image_disk.cpp->openReading#397: openReading[quarkt-sda2.000.gz]
[Main] image_disk.cpp->openReading#412: preopen successfull for quarkt-sda2.000.gz
[Main] image_disk.cpp->openReading#437: open
[Main] image_disk.cpp->openReading#438: file quarkt-sda2.000.gz opened ok
[Main] imagefile.cpp->openReading#1079: PTHREAD_CREATE before
[Main] imagefile.cpp->openReading#1081: PTHREAD_CREATE after
[Main] imagefile.cpp->openReading#1109: THROW: -42
[Main] exceptions.cpp->CExceptions#88: openReading -> throws: -42
[Main] image_disk.cpp->close#274: close -> 0
[Main] image_disk.cpp->destroySpaceFile#454: DESTROY SPACE FILE []
[Main] image_disk.cpp->~CImageDisk#80: total written: 0
[Main] ../../src/shared/exceptions.h->get_szArg1#59: STR=(null)
Had the same problem restoring an NTFS partition. Really freaked me out until I found this. Using version 0.6.7
I am really happy to glance at this web site posts which carries tons of valuable facts, thanks for providing these kinds of data.
choice cheapest hermes bags at her.mesbags.com http://hermesbagsonline.ezweb123.com/
Wonderful site. A lot of useful information here. Im sending it to some pals ans also sharing in delicious. And obviously, thank you on your effort!
gw2 gold http://www.guildwars2star.com
Gold is created past drops and looting. Inflation. The only thing which in turn causes inflation is Farming mobs for items and gold.
ud3ah.com http://www.ud3ah.com/
Hunger is the main reason people often lose the battle in a diet. the extra you eat, The more your stomach stretches and therefore you hold more and more food leading you to gain more weight. Also the bigger you get the more your metabolism slows down leading you to gain even more weight. This pill helps curb your appetite and speeds up your metabolism which in turn burns more fat and carbs causing you to lose the weight. With a proper diet and prescription drugs the payout is weight loss podedsja.
2012 Red Meizitang http://www.slimmingcapsulesale.com/2012-red-meizitang-strong-version-p-16.html
After examine just a number of of the weblog posts in your website now, and I actually like your way of blogging. I bookmarked it to my bookmark website record and can be checking again soon. Pls try my website as well and permit me know what you believe.
derrick rose shoes http://derrickroseshoes0.webnode.com
Adding this to twitter great info.
charles barkley shoes http://charlesbarkleyshoes.webnode.com
jtcrxerfxrq <a href="http://www.longchamppliable.biz" title="sac à main longchamp">sac à main longchamp</a>
Baidu world's largest Chinese search engine dedicated to Internet users more convenient access to information, find the demand.Baidu over billions of Chinese web database, you can instantly find relevant search results [url=http://www.baidu.com]Bai du[/url]