Linux Debian support - trouble in cp and gunzip

This is Interesting: Free IT Magazines  
Home > Archive > Linux Debian support > September 2005 > trouble in cp and gunzip





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author trouble in cp and gunzip
charles

2005-09-21, 5: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

Bill Marcum

2005-09-22, 2: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
charles

2005-09-22, 2: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

Bill Marcum

2005-09-22, 7:46 am

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.
Eric Pozharski

2005-09-22, 8:48 pm

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.)
charles

2005-09-25, 5: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)

Unruh

2005-09-25, 5: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.


charles

2005-09-25, 5: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

Darshaka Pathirana

2005-09-26, 2: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
Bill Marcum

2005-09-26, 2: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
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com