Operating System - HP-UX
1833220 Members
3389 Online
110051 Solutions
New Discussion

How to recover overwrite tape

 
Samboja
Advisor

How to recover overwrite tape

Dear all,

I need Ur help.
I've just overwriten tape by tar command. Now I need old data on that tape. Is it possible for me to get old data ?

Thanks for your help.

BR,

Sam.
6 REPLIES 6
Suhas_2
Regular Advisor

Re: How to recover overwrite tape

Sam,
To my knowledge, the old data is gone forever.

Rgds..
Suhas
Never say "Die"
Michael Tully
Honored Contributor

Re: How to recover overwrite tape

Sorry, but the data is gone. by default, tar starts at the beginning of the tape.
Anyone for a Mutiny ?
Eugeny Brychkov
Honored Contributor

Re: How to recover overwrite tape

Sam,
try http://www.vogon-international.com . Data overwritten is lost, but I believe if there's a data chunk left from that backup (not overwritten but your tar operation) then something can be saved
Eugeny
John Bolene
Honored Contributor

Re: How to recover overwrite tape

If you did not overwrite all of the tape, then one of the data recovery companies might be able to recover what was not overwritten, but be aware that these companies charge a premium for their services, to the tune of thousands.

It depends on what the data is worth.

Otherwise, consider that you have made a mistake and it is not recoverable.
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
Mark Greene_1
Honored Contributor

Re: How to recover overwrite tape

If the tar didn't write over the whole tape, you may be able to skip past the tar with mt & the fsf option to get to the remainder of the old save, and then pull what's left off the tape with dd.

HTH
mark
the future will be a lot like now, only later
Shannon Petry
Honored Contributor

Re: How to recover overwrite tape

This is a specialized companies job. We had a similar thing occur about 5 years ago, we found a company out in CA which could extract all of the volumes from the tape. However, this takes special hardware and software to do. Here is the basic's of why...

When you write to a tape, there is a EOF mark maded, then an EOM mark. When you do something like this..

tar cvf /dev/rmt/0mn /etc

/etc is put on tape, and an EOM mark is written (2 EOF marks).

Now, since we did not rewind the tape, we can do this...

tar cvf /dev/rmt/0m /usr

Now, the last EOF mark is erased and the new volume created. Remember that EOM is a double EOF, so we still have 1. The new volume is written, then a new EOM mark is made. *NOTE I REWOUND THE TAPE*

Now, we do this.

tar cvf /dev/rmt/0mn /etc

The tape has been rewound, and now we have created a new volume of /etc. A new EOM mark is made. Our backup of /usr is now gone, as we can tell the tape to go to an EOF mark, or an EOM mark. There is no way with standard hardware to pass an EOM mark.

Hope this helps explain it all :)

Shannon
Microsoft. When do you want a virus today?