Subject: Re: overwritten tape recovery
To: None <netbsd-users@netbsd.org>
From: David S. <davids@idiom.com>
List: netbsd-users
Date: 03/12/2003 21:20:39
>
> It is critical and unfortunate that my backup tape was overwritten. I
> have backup by using star 1.4.2 and have backup file in 5 blocks.
> However, now I have discovered that only the first 3 blocks are
> overwritten onto the media. But I need to recover from the tape for the
> last 2 blocks which with any luck will not be overwritten.
>
> I have tried mt but withoug success.
>
> mt -f /dev/nrst0 eom
>
> with this I can cross over the EOD marker but I don't know how to
> recover the last 2 blocks.
>
> Any suggestion will be greatly appreciated.
dd if=/dev/nrst0 of=blocks45 bs=<your blocksize> seek=3 count=2
(For 'tar', blocksize is probably 20b.)
That should get the last two blocks off the tape. I don't know how
to make sense of the last 2/5 of a 'tar' file, however.
David S.
>