LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-02-2010, 09:15 PM   #1
ayongying
Member
 
Registered: Mar 2010
Location: Bei Jing
Posts: 41

Rep: Reputation: 15
gzip: stdin: Input/output error,what does it mean?


I do the following and get error as below,what does it mean and how to resolve it ,Thanks for any help...

(1)mount /dev/cdrom /mnt -->okay,will get *.gz file when cd /mnt
(2)cd /tmp
(3)tar zxf /mnt/*.gz
get error like below:
gzip: stdin: Input/output error
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

PS. Let me know if anymore details are required?

Cheers

Last edited by ayongying; 03-02-2010 at 09:25 PM.
 
Old 03-02-2010, 10:07 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Can you confirm that the archive is really ok?

Evo2.
 
Old 03-02-2010, 10:21 PM   #3
ayongying
Member
 
Registered: Mar 2010
Location: Bei Jing
Posts: 41

Original Poster
Rep: Reputation: 15
ok,I will check it ,Maybe the package is broken...
Thanks.
 
Old 03-02-2010, 10:23 PM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Quote:
Originally Posted by ayongying View Post
ok,I will check it ,Maybe the package is broken...
Code:
md5sum /mnt/*.gz
And then compare that output with the same command run on copies of the files that you know are ok.

Evo2.

Last edited by evo2; 03-02-2010 at 10:24 PM. Reason: tags
 
Old 03-02-2010, 10:46 PM   #5
ayongying
Member
 
Registered: Mar 2010
Location: Bei Jing
Posts: 41

Original Poster
Rep: Reputation: 15
When I am running md5sum /mnt/*.gz,I get Input/output error.
And if I want to copy /mnt/*.gz to a desktop location ,will get Input/output error.also

Last edited by ayongying; 03-02-2010 at 10:55 PM.
 
Old 03-02-2010, 10:55 PM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Sounds like the cdrom was not mounted properly, or has very serious problems. I Noticed that you did not pass any options to mount: so I wonder what the /mnt line in your /etc/fstab looks like. Can you please post the output of the following?

Code:
ls -al /mnt
file /mnt/*
grep mnt /etc/fstab
mount | grep mnt
Evo2.
 
Old 03-02-2010, 11:04 PM   #7
ayongying
Member
 
Registered: Mar 2010
Location: Bei Jing
Posts: 41

Original Poster
Rep: Reputation: 15
All the output of the following as below,Thank you.

ls -al /mnt
total 108365
dr-xr-xr-x 2 root root 2048 2010-02-27 00:33 .
drwxr-xr-x 21 root root 4096 2010-02-26 03:34 ..
-r--r--r-- 1 root root 1872 2010-03-02 01:02 manifest.txt
-r--r--r-- 1 root root 110957516 2010-03-02 01:02 file.tar.gz


file /mnt/*
/mnt/manifest.txt: ASCII text
/mnt/file.tar.gz: gzip compressed data, from Unix, last modified: Tue Mar 2 01:02:04 2010


grep mnt /etc/fstab
none

mount | grep mnt
/dev/sr0 on /mnt type iso9660 (ro)
 
Old 03-02-2010, 11:22 PM   #8
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
The output you show in post #8 seems to indicate that the cdrom is mounted ok. In particular 'file /mnt/*' gives no errors. Are you able to read or copy the file /mnt/manifest.txt? Or do you get i/o errors like with file.tar.gz?

Evo2.
 
Old 03-02-2010, 11:37 PM   #9
ayongying
Member
 
Registered: Mar 2010
Location: Bei Jing
Posts: 41

Original Poster
Rep: Reputation: 15
Are you able to read or copy the file /mnt/manifest.txt?
-->Yes,I can

Or do you get i/o errors like with file.tar.gz?
-->Yes,When I want to copy /mnt/file.tar.gz to a local location ,will get Input/output error.
 
Old 03-02-2010, 11:46 PM   #10
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Ok so manifest.txt seem to be ok, but file.tar.gz is not. I think you need to reburn file.tar.gz to a new cdrom.

Evo2.
 
Old 03-03-2010, 12:02 AM   #11
ayongying
Member
 
Registered: Mar 2010
Location: Bei Jing
Posts: 41

Original Poster
Rep: Reputation: 15
You are right! Now,it can works.
Great ,Thanks you.
 
Old 03-03-2010, 12:13 AM   #12
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Quote:
Originally Posted by ayongying View Post
You are right! Now,it can works.
Excellent.
Quote:
Great ,Thanks you.
No problem.

Cheers,

Evo2.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gzip: stdin: invalid compressed data--format violated ftp ascii transfer sridhar_dct3 Linux - Software 10 07-28-2012 02:25 PM
Cannot extract a tarfile that I created, error states stdin: not in gzip format Mo-regard Linux - Server 4 09-22-2009 11:51 AM
aplay: pcm_write:1029: write error: Input/output error mimithebrain Linux - Software 2 12-04-2007 11:51 AM
RPM iinstallation [error: failed to stat /mnt/windows: Input/output error] Ameii83 Linux - Software 1 04-09-2007 07:05 AM
apt-get update error: "gzip: stdin: not in gzip format" haertig Debian 0 08-02-2006 05:21 PM


All times are GMT -5. The time now is 02:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration