LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-14-2010, 10:56 PM   #1
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,622
Blog Entries: 29

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
tar: Unexpected EOF in archive


I had created a tar ball of my home folder. But after formatting the system when I tried to untar it, it is showing the following error:

Code:
tar -xf home.tar
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now


Please help me to somehow recover my home folder !!
 
Old 02-14-2010, 11:18 PM   #2
throughthegreens
Member
 
Registered: Feb 2010
Location: Asekhshinuv Sacramento,Ca
Distribution: Slackware 13.0
Posts: 35

Rep: Reputation: 16
you might want run fsck and check dmesg for dma errors. I had this problem and my disk was going bad.

what to do about recovering from the tar you have now I don't know. sorry

Last edited by throughthegreens; 02-14-2010 at 11:20 PM.
 
Old 02-15-2010, 10:09 PM   #3
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 771
Blog Entries: 6

Rep: Reputation: 75
try tar -tvf home.tar
if you luck maybe can view some file
 
Old 02-16-2010, 03:45 AM   #4
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,622
Blog Entries: 29

Original Poster
Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Thanks to both of you for bothering to reply!

The reason of tar ball corruption was the scp command. I had placed this tar ball on a companion's computer. When he scp'ed the tar ball back to me, I received it in the corrupted form.

Today he again scp'ed me the same, and this time I received it error free.

Hence I have recovered my data and learnt not to trust the scp command.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unexpected EOF in archive Drone1 Linux - Newbie 5 11-09-2006 05:31 AM
Can anyone tell me what I need to do when running into a tar: Unexpected EOF error? schmootsypoo Linux - Software 2 09-03-2004 07:50 AM
Unexpected EOF in archive when install Gentoo 1.4 stage1 cirofren Linux - Distributions 1 11-06-2003 01:56 AM
Unexpected EOF Error??? ITJedi Programming 2 07-09-2003 02:01 PM
tar: Unexpected EOF saavik Linux - Newbie 1 04-13-2002 02:13 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration