Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

restore partial overwritten tape

iliviu
Occasional Advisor

restore partial overwritten tape

Hello .
I have a tape containing severeal vdump sessions. Accidentaly I forgot to seek the end of tape before starting a vdump session. So I wrote a new session from the beginning. Since each session is aprox. the same size (I probably lost max 2 sessions), I expect to find a method to recover some sessions, since they were not overwritten. Do you know a simple way ( without using the services of a professional recovery lab) in order to achive this ?

Thank you
Liviu
3 REPLIES
Rob Leadbeater
Honored Contributor

Re: restore partial overwritten tape

Hi,

You should be able to forward through the sessions with mt fsf

So...:

mt -f /dev/tape/tape0 rewind (to get to the start of the tape)
mt -f /dev/ntape/tape0 fsf 1 (to go forward a session)

Then use vrestore to see what's on the tape...

I've assumed your tape device is tape0. If not change it appropriately.

Hope this helps,

Regards,

Rob
iliviu
Occasional Advisor

Re: restore partial overwritten tape

The problem is the EOM (End of Medium). The drive doesn't pass over this mark. Right now I am trying a trick to write over the EOM mark. Any idea is still much appreciated.
Thank you.
Vladimir Fabecic
Honored Contributor

Re: restore partial overwritten tape

There is a hacker "way" how to pass EOM.
1. Forward tape to stop at OEM
2. Create a large "junk" file, about 100MB
3. # tar cvf /dev/ntape/tape0 junk_file
4. Start writing this file to tape, but interrupt the writing an EOM mark by powering off the tape drive (after 15 seconds)

Doing this new EOM will not be written.
In vino veritas, in VMS cluster