8mm tape corrupted tar header file - HELP!

8mm tape corrupted tar header file - HELP!

Post by Kevin Ance » Tue, 21 Jan 1997 04:00:00



Someone in our group accidently overwrote the header file on an 8mm
tar archive.  We believe what happened was instead of typing tar xvf
they typed tar cvf /dev/rmt0 filename  while trying to extract
filename off the tape.  Tar then tried to write filename to tape
however when it was not on disk it simple overwrote the header with no
file listing.  I believe the data ( about 1 GB) is still on the tape
however  tar just does not know how to access it. We are using AIX
ver. 3.2.5 . Please let me know if there is anything I can do to
access the data on the tape by email or post.  I also have a listing
of the tape from before it was corrupted.

Thanks in advance.

Kevin Ancell

 
 
 

8mm tape corrupted tar header file - HELP!

Post by Darryn Ros » Thu, 23 Jan 1997 04:00:00



> Someone in our group accidently overwrote the header file on an 8mm
> tar archive.  We believe what happened was instead of typing tar xvf
> they typed tar cvf /dev/rmt0 filename  while trying to extract
> filename off the tape.  Tar then tried to write filename to tape
> however when it was not on disk it simple overwrote the header with no
> file listing.  I believe the data ( about 1 GB) is still on the tape
> however  tar just does not know how to access it. We are using AIX
> ver. 3.2.5 . Please let me know if there is anything I can do to
> access the data on the tape by email or post.  I also have a listing
> of the tape from before it was corrupted.

> Thanks in advance.

> Kevin Ancell


Let's try that again...

I would recommend that you research the use of the 'dd' command.  It is
a bit complicated and would take too long to explain here, but you could
try:

dd if=/dev/rmt0 of=[file name on disk]

If there is anything on the tape, that should grab it.  You can then try
using 'tar' on the file that is written to disk and see if the contents
are still intact.

Darryn Rose
http://members.aol.com/rosedw

 
 
 

8mm tape corrupted tar header file - HELP!

Post by Larry Star » Thu, 23 Jan 1997 04:00:00




> > Someone in our group accidently overwrote the header file on an 8mm
> > tar archive.  We believe what happened was instead of typing tar xvf
> > they typed tar cvf /dev/rmt0 filename  while trying to extract
> > filename off the tape.  Tar then tried to write filename to tape
> > however when it was not on disk it simple overwrote the header with no
> > file listing.  I believe the data ( about 1 GB) is still on the tape
> > however  tar just does not know how to access it. We are using AIX
> > ver. 3.2.5 . Please let me know if there is anything I can do to
> > access the data on the tape by email or post.  I also have a listing
> > of the tape from before it was corrupted.

> > Thanks in advance.

> > Kevin Ancell

> Let's try that again...

> I would recommend that you research the use of the 'dd' command.  It is
> a bit complicated and would take too long to explain here, but you could
> try:

> dd if=/dev/rmt0 of=[file name on disk]

> If there is anything on the tape, that should grab it.  You can then try
> using 'tar' on the file that is written to disk and see if the contents
> are still intact.

> Darryn Rose
> http://members.aol.com/rosedw

I would expect that you may have to use the No-rewind device and go
after the second file, or perhaps the third.

This may allow you to get some of the data back, however, a tar archive
does not have a header per-se, and the tar command above most certaily
wrote a tape mark at the end of it's output, the tape.

If my memory serves correctly, a tape mark on 8MM media occupies about
10MB worth of tape space, and and EOT is usually written as a double
Tape Mark.

By all means try to salvage what you can, but don't get your hopes too
high.

I would also suggest that you get in the habbit of Write Protecting
critical tapes.
--

================================================================
There are only three sports: bullfighting, motor racing, and
mountaineering; all the restare merely games. - Ernest Hemingway

 
 
 

8mm tape corrupted tar header file - HELP!

Post by Robert Kais » Fri, 24 Jan 1997 04:00:00




Quote:> We believe what happened was instead of typing tar xvf
>they typed tar cvf /dev/rmt0 filename  while trying to extract
>filename off the tape.  Tar then tried to write filename to tape
>however when it was not on disk it simple overwrote the header with no
>file listing.  I believe the data ( about 1 GB) is still on the tape
>however  tar just does not know how to access it. We are using AIX
>ver. 3.2.5 . Please let me know if there is anything I can do to
>access the data on the tape by email or post.  I also have a listing
>of the tape from before it was corrupted.

I'm afraid you can't do much about it :-(. Usually, when a tape driver
does a write() followed by a close() (which it does when you do
a tar cvf /dev/rmt0), it writes an EOT (end of tape) mark onto the tape.
When reading from the tape, this mark is detected by the tape drive
itself (i.e. there is no way to control or influence this behaviour
via the SCSI bus) and it will refuse to go anywhere beyond that mark,
except for writing more data.

There are companies that specialise in retrieval of data from
corrupted media. They use special hard/software for the retrieval
and I'm afraid this is your best bet -- sorry.

Regards

----------------------------------------------------------------

SYSGO RTS GmbH
Mommsenstr. 19                         phone: (49) 30 3270153-0
D-10629 Berlin / Germany               fax:   (49) 30 3247839

 
 
 

8mm tape corrupted tar header file - HELP!

Post by Brian Graha » Sat, 25 Jan 1997 04:00:00




> > Someone in our group accidently overwrote the header file on an 8mm
> > tar archive.  We believe what happened was instead of typing tar xvf
> > they typed tar cvf /dev/rmt0 filename  while trying to extract
> > filename off the tape.  Tar then tried to write filename to tape
> > however when it was not on disk it simple overwrote the header with no
> > file listing.  I believe the data ( about 1 GB) is still on the tape
> > however  tar just does not know how to access it. We are using AIX
> > ver. 3.2.5 . Please let me know if there is anything I can do to
> > access the data on the tape by email or post.  I also have a listing
> > of the tape from before it was corrupted.

> > Thanks in advance.

> > Kevin Ancell

> Let's try that again...

> I would recommend that you research the use of the 'dd' command.  It is
> a bit complicated and would take too long to explain here, but you could
> try:

> dd if=/dev/rmt0 of=[file name on disk]

> If there is anything on the tape, that should grab it.  You can then try
> using 'tar' on the file that is written to disk and see if the contents
> are still intact.

> Darryn Rose
> http://members.aol.com/rosedw

There is nothing you can do. When the tar -cvf was executed, it put a
new end of tape marker on the tape (two consecutive eof markers). You
cannot get past this boundary even with dd. When it hits the eot marker
it will not go further.
--

                Brian Graham

 
 
 

1. 8mm tape corrupted tar header file - HELP!

I would recommend that you research the use of the 'dd' command.  It is a bit complicated and would take too long to explain here, but you could try:

dd if=/dev/rmt0 of=[file name on disk]

If there is anything on the tape, that should grab it.  You can then try using 'tar' on the file that is written to disk and see if the contents are still intact.

Darryn
http://members.aol.com/rosedw

2. sigsegv

3. Please Help: Corrupt tar file on Exabyte 112m tape

4. self debugging

5. extracting files on tar'd 8mm tape

6. Dell/AMI Hardware Raid Controller Support?

7. How do I TAR backup multi files to 8mm tape drive ??

8. 2.5.39: hdparm: HDIO_SET_DMA failed: Operation not permitted

9. 8mm TAPE CORRUPTED - HELP!

10. Multiple tar files on a single 8mm tape

11. Re. copy 8mm tape to 8mm tape

12. Stupid Questions: Sun 8mm dump tape =>AIX 8mm dump tape

13. How can I get the IBM RS6000's 8mm tape to read other 8mm tapes ?