[SOLVED] gzip: stdin: unexpected end of file
Posted: 2012/01/05 02:51:44
Hi
I preparation for upgrading my desktop machine from 5.7 to 6.2 I am backing up my /home files and /etc directories. But there are problems with the tar files I am creating. When run the following tar command and then try to get a listing of that file it shows this error.
[code]
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
[/code]
This is the command used to create the file
[code]
tar -cvzf /media/disk-1/ZZ.linux.d/pri/pri.music.tgz /home/music
[/code]
When I run the command
[code]
ls -R /home/music | wc -l
[/code]
it returns 2080
When I run the command
[code]
tar -tzvf /media/disk-1/ZZ.linux.d/pri/pri.music.tgz | wc -l
[/code]
it returns 721 and the above error.
Am I looking at apples and oranges??
Is there a way to get tar to explain the errors??
It would appear there is something in the directory being tar'ed that creates the error because tar'ing the /etc directory and listing that tar gives no errors.
Thanks
Jim
I preparation for upgrading my desktop machine from 5.7 to 6.2 I am backing up my /home files and /etc directories. But there are problems with the tar files I am creating. When run the following tar command and then try to get a listing of that file it shows this error.
[code]
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
[/code]
This is the command used to create the file
[code]
tar -cvzf /media/disk-1/ZZ.linux.d/pri/pri.music.tgz /home/music
[/code]
When I run the command
[code]
ls -R /home/music | wc -l
[/code]
it returns 2080
When I run the command
[code]
tar -tzvf /media/disk-1/ZZ.linux.d/pri/pri.music.tgz | wc -l
[/code]
it returns 721 and the above error.
Am I looking at apples and oranges??
Is there a way to get tar to explain the errors??
It would appear there is something in the directory being tar'ed that creates the error because tar'ing the /etc directory and listing that tar gives no errors.
Thanks
Jim