gunzip error


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers gunzip error
# 1  
Old 01-16-2004
gunzip error

While trying to gunzip afile I get the following error message

ls -l UK_US_02310.dat.gz
-rwxrwxrwx 1 imis abint 348854527 Jan 8 00:17 UK_US_02310.dat.gz

gunzip UK_US_02310.dat.gz

gunzip: UK_US_02310.dat.gz: invalid compressed data--format violated


I can gzcat the file and pipe to a file but it coredumps after 230k of records . I know there are 12952988 records in file

Is there anyway of fixing the file or extracting the data minus the corrupt part or have I lost all the data
# 2  
Old 01-16-2004
I have 2 ideas based on problems I've had with gzip. I don't know if either is the case you're running into, but both are worth checking out.

1. Could it be that your file hits 2 GB in size at the 230k records mark and that is what chokes gunzip? I think I remember seeing where gunzip (maybe just some versions of it) can't handle largefiles properly.

2. Also check the versions. On a Solaris box I once had a problem where the version of gzip on that box was different than the gzip on the box I transferred the file from and that caused problems. Installing the same version both places took care of that issue.

Good luck.
# 3  
Old 01-16-2004
reply

I don't think it is a problem with the size as we have files larger than 2 gigs .

I have also tried cat file |gunzip >a but this fails with the same error. I remember getting this error on windows and I used an app to reconstruct the file but I can't find it for unix
# 4  
Old 01-16-2004
Did you create the file or did you ftp it from somewhere? I think you could get this error if you downloaded the file in ascii mode instead of binary mode...

What version of gunzip are you using? FYI, you can download the latest version of gzip here and try it with that...

Also, see if this helps: http://www.gzip.org/recover.txt Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Gunzip: File too large error

Hello All, I'm trying to write a script to load the MySQL DB from a dump file but the unzipping doesnt seem to work, not sure whats the issue, i get below error bash>gunzip mysql2-dump.gz gunzip: mysql2-dump: File too large bash > can anyone pls let me know how to sort this out? ... (2 Replies)
Discussion started by: Mahesh_RPM
2 Replies

2. AIX

Gunzip tar A directory checksum error on media

Hi, what is the directory checksum error ? # sed 's/^M$//' test4_bkp_19Jan13.tgz | tar -tvf - tar: 0511-169 A directory checksum error on media; -265745505 not equal to 76225. # mv test4_bkp_19Jan13.tgz test4.gz # gunzip < /ebs2/test4.gz | tar -xvf - tar: 0511-169 A directory checksum... (4 Replies)
Discussion started by: filosophizer
4 Replies

3. Shell Programming and Scripting

Help with gunzip

Hi All, I have a file "HOTEL_INFO.zip" and getting the below errors: server1:/home/arun# gunzip -S .zip HOTEL_INFO.zip gunzip: HOTEL_INFO.zip: first entry not deflated or stored -- use unzip server1:/home/arun#unzip HOTEL_INFO.zip ksh: unzip: not found. ... (11 Replies)
Discussion started by: Arunprasad
11 Replies

4. UNIX for Dummies Questions & Answers

gunzip

I have a zip file as a.zip and it contains 1m xml files. like a1.xml, a2.xml.... The size is also very big nearly 1GB. I want to extract only a123.xml. Can any one help how can I do this? (1 Reply)
Discussion started by: siba.s.nayak
1 Replies

5. Shell Programming and Scripting

Help on gunzip

Hi All, I am using UNIX command to unzip the files gzip -d9 DW_*.gz The Xmls are compressed using gzip and it is received in the .gz format at UNIX box which need to be uncompressed. The above command is working fine for 400 compressed xmls(.gz files) but when the count becomes 401 or more i... (7 Replies)
Discussion started by: Codesearcher
7 Replies

6. UNIX for Dummies Questions & Answers

gunzip error - not in gzip format

Hi, I am getting this error gunzip file1.tar.Z gunzip: file1.tar.Z: not in gzip format Any clues? This goes bad only in some recent installations of ids (5 Replies)
Discussion started by: eagercyber
5 Replies

7. UNIX for Dummies Questions & Answers

gunzip question

unzip test.zip ==> This uncompresses and keeps the original zip file. gunzip test.gz ==> Removes the .gz file after uncompressing. Is there any switch to make the .gz file available after uncompression. Thanx in advance. (3 Replies)
Discussion started by: devs
3 Replies

8. HP-UX

error using gunzip

Good day, Recently I zipped an oracle export file task123.dmp using gzip. And now I am trying to unzip it using gunzip task123.dmp.gz but am unable to do so. It keeps on giving the following error; > gunzip task123.dmp.gz gunzip: task123.dmp: File too large The task123.dmp.gz file... (3 Replies)
Discussion started by: Keyser Soze
3 Replies

9. UNIX for Dummies Questions & Answers

gunzip error

I am trynig to unzip a file with gunzip, and am getting an error 'File too large'. Any ideas on how to get around this? (2 Replies)
Discussion started by: pkappaz
2 Replies

10. UNIX for Dummies Questions & Answers

Gunzip

Hi can't unzip a gz file in TurboLinux 7.0 when i'm trying this gunzip filename.tar.gz it always says not in gzip format what should I do...please help me (4 Replies)
Discussion started by: CreamHarry
4 Replies
Login or Register to Ask a Question