trouble in cp and gunzip
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Debian support > Linux Debian support > trouble in cp and gunzip




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    trouble in cp and gunzip  
charles


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-21-05 10:48 PM

when I try to copy some .zip file from cdrom to my directory , it have
error

cp : reading 'myfile.zip'  Input/output error

and

gunzip -S .zip file.zip
gunzip  file.zip has more than one entries -- unchanged

highly appreciate any hint or help
charles






[ Post a follow-up to this message ]



    Re: trouble in cp and gunzip  
Bill Marcum


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-22-05 07:46 AM

On 21 Sep 2005 12:27:25 -0700, charles
<fsshl@yahoo.com> wrote:
> when I try to copy some .zip file from cdrom to my directory , it have
> error
>
> cp : reading 'myfile.zip'  Input/output error
>
This could mean you have a hardware problem.  Have you rebooted or run
fsck lately?

> and
>
> gunzip -S .zip file.zip
> gunzip  file.zip has more than one entries -- unchanged
>
Try "unzip file.zip".  If it says "command not found", install zip and
unzip.

--
The whole world is a scab.  The point is to pick it constructively.
-- Peter Beard





[ Post a follow-up to this message ]



    Re: trouble in cp and gunzip  
charles


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-22-05 07:46 AM

Try "unzip file.zip".  If it says "command not found", install zip and
unzip.

so I tried:
----------------------------------------------------------------------------
------
root@etutor:~ # unzip *.zip
Archive:  myfile2.zip
End-of-central-directory signature not found.  Either this file is
not
a zipfile, or it constitutes one disk of a multi-part archive.  In
the
latter case the central directory and zipfile comment will be found
on
the last disk(s) of this archive.
note:  myfile2.zip may be a plain executable, not an archive
unzip:  cannot find zipfile directory in one of myfile2.zip or
myfile2.zip.zip, and cannot find myfile2.zip.ZIP, period.
root@etutor:~ #
----------------------------------------------------------------------------
-
that zip file is from window xp platform, it can somehow be unzip by
winzip(or winunzip).

looking for further advice






[ Post a follow-up to this message ]



    Re: trouble in cp and gunzip  
Bill Marcum


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-22-05 12:46 PM

On 21 Sep 2005 22:43:13 -0700, charles
<fsshl@yahoo.com> wrote:
> Try "unzip file.zip".  If it says "command not found", install zip and
> unzip.
>
> so I tried:
> --------------------------------------------------------------------------
--------
> root@etutor:~ # unzip *.zip
> Archive:  myfile2.zip
>   End-of-central-directory signature not found.  Either this file is
> not
>   a zipfile, or it constitutes one disk of a multi-part archive.  In
> the
>   latter case the central directory and zipfile comment will be found
> on
>   the last disk(s) of this archive.
> note:  myfile2.zip may be a plain executable, not an archive
> unzip:  cannot find zipfile directory in one of myfile2.zip or
>         myfile2.zip.zip, and cannot find myfile2.zip.ZIP, period.
> root@etutor:~ #

file myfile2.zip

If you used ftp to get myfile2.zip, you may have forgotten to use binary
mode.

--
Chemicals, n.:
Noxious substances from which modern foods are made.





[ Post a follow-up to this message ]



    Re: trouble in cp and gunzip  
Eric Pozharski


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-23-05 01:48 AM

charles <fsshl@yahoo.com> wrote:
> when I try to copy some .zip file from cdrom to my directory , it have
> error
>
> cp : reading 'myfile.zip'  Input/output error

try

dd if=/cdrom/path/myfile.zip of=/dev/null

if it gives input/output error too, then your cd-rom disk (not drive)
seems to be damaged.

> gunzip -S .zip file.zip
> gunzip  file.zip has more than one entries -- unchanged

zip files aren't handled by gzip and company (despite the fact that
gunzip can decompress some .zip files).  There two packages for them zip
and unzip.  Install, RTFM, enjoy.

Let me explain a difference.  gzip file (with .gz extension) is *one*
regular file compressed in one compressed-file.  So are bzip2 files
(with .bz2) too.  .zip, .rar, .arj etc files from the other OS-like
platform (you know) are many files amassed in one *archive* by the way
compressed.  In the POSIX world *archiving* is perfomed using tar, cpio,
shar etc.  Some of them can be managed to compress files itself,
(afaicr) with some restrictions.  (imho) That's not a habit.

Hint.  In order to find apropriate tool discover a utility named `file'.

--
Torvalds' goal for Linux is very simple: World Domination
(it's third person quote.)





[ Post a follow-up to this message ]



    Re: trouble in cp and gunzip  
charles


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-25-05 10:46 PM

I use dd if=/cdrom/

my file name appear on ls is like
my some window file.zip

how should I type that in your myfile.zip? (I tried using wild card
my*
is not working)






[ Post a follow-up to this message ]



    Re: trouble in cp and gunzip  
Unruh


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-25-05 10:46 PM

"charles" <fsshl@yahoo.com> writes:

> I use dd if=/cdrom/

>my file name appear on ls is like
>my some window file.zip

>how should I type that in your myfile.zip? (I tried using wild card
>my*
>is not working)

sspaces are end of word markers in Linux. You eitehr need to escape the
spaces
my\ some\ window\ file.zip
or single quote them
'my some window file.zip'
to prevent bash from interpreting the spaces as end of word markers.







[ Post a follow-up to this message ]



    Re: trouble in cp and gunzip  
charles


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-25-05 10:46 PM

:~ # dd if=/cdrom/'my some window file.zip'  of=/dev/null
dd: reading `/cdrom/,y some window file.zip': Input/output error
40+0 records in
40+0 records out
20480 bytes transferred in 292.900342 seconds (70 bytes/sec)

the result is not very useful for me, so please help agin






[ Post a follow-up to this message ]



    Re: trouble in cp and gunzip  
Darshaka Pathirana


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-26-05 07:46 AM

On 2005-09-25@21:38:25, charles <fsshl@yahoo.com> wrote:
>:~ # dd if=/cdrom/'my some window file.zip'  of=/dev/null
> dd: reading `/cdrom/,y some window file.zip': Input/output error
> 40+0 records in
> 40+0 records out
> 20480 bytes transferred in 292.900342 seconds (70 bytes/sec)
>
> the result is not very useful for me, so please help agin

try:
# dd if='/cdrom/my some window file.zip'  of=/dev/null

(single quote around the whole path.)

HTH
- Darsha





[ Post a follow-up to this message ]



    Re: trouble in cp and gunzip  
Bill Marcum


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-26-05 07:46 AM

On 25 Sep 2005 14:38:25 -0700, charles
<fsshl@yahoo.com> wrote:
>:~ # dd if=/cdrom/'my some window file.zip'  of=/dev/null
> dd: reading `/cdrom/,y some window file.zip': Input/output error
> 40+0 records in
> 40+0 records out
> 20480 bytes transferred in 292.900342 seconds (70 bytes/sec)
>
> the result is not very useful for me, so please help agin
>
Your cdrom was burned badly.  Download the iso and try again.


--
If Beethoven's Seventh Symphony is not by some means abridged, it will soon
fall into disuse.
-- Philip Hale, Boston music critic, 1837





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:34 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register