LinuxQuestions.org
Review your favorite Linux distribution.
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 11-08-2006, 10:51 AM   #1
Drone1
LQ Newbie
 
Registered: Jan 2005
Location: North Yorkshire
Posts: 6

Rep: Reputation: 0
Unhappy Unexpected EOF in archive


Use tar to backup to tape drive, which is set as /dev/st0.

Error message in file stated
tar: /dev/st0 wrote only 0 of 10240 bytes
Error is not recoverable: exiting now.

As I worried that this meant the headers had not been written to the tape, which means the backup would be useless attempted to restore one file to the root directory from the tape by tying:

tar xvf /dev/st0 "filename.ext"

Got message back after two hours of tape being scanned saying:

Unexpected EOF in archive
Error is not receoverable: exiting now

Can anyone please explain what this means and more importantly what I do about it?

Thank you
 
Old 11-09-2006, 04:11 AM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Quote:
Originally Posted by Drone1
Use tar to backup to tape drive, which is set as /dev/st0.

Error message in file stated
tar: /dev/st0 wrote only 0 of 10240 bytes
Error is not recoverable: exiting now.
This was what you got when you tried to create the archive?
 
Old 11-09-2006, 04:37 AM   #3
Drone1
LQ Newbie
 
Registered: Jan 2005
Location: North Yorkshire
Posts: 6

Original Poster
Rep: Reputation: 0
Unexpected EOF in archive

When we do a backup we output all information of that backup to a file.

tar -cvpf /dev/st0 --label="$(date +%b%d%y).tar" . >> $log

If there are any error messages these are output to a file called *.elog. When you cat the elog message for the last 3 backups this is the error message in those logs.
 
Old 11-09-2006, 04:55 AM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
So this error message is from this log you made when you created the backup?
 
Old 11-09-2006, 05:06 AM   #5
Drone1
LQ Newbie
 
Registered: Jan 2005
Location: North Yorkshire
Posts: 6

Original Poster
Rep: Reputation: 0
Unexpected EOF in archive

Yes this error message is from the log we made when we created the backup
 
Old 11-09-2006, 05:31 AM   #6
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
What do you get if you do this?
Code:
tar tvf /dev/st0 "filename.ext"
 
  


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
[crontab] unexpected EOF G00fy Programming 7 11-01-2006 03:09 AM
G4U unexpected EOF jonax2k5 Linux - Software 1 11-16-2005 11:05 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:38 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
Open Source Consulting | Domain Registration