[comp.unix.questions] Recovering cartridge tape files

chuck@pluto.Harris-ATD.com (Chuck Musciano) (06/07/91)

     I have a QIC-24 cartridge tape that had a number of files on it, and
then had another file written to the tape at the beginning.  This overwrote
at least one of the files on the tape, of course, but should not have harmed
the remaining files after that point.

     How can I recover the remaining files on the tape?  I tried using mt
and dd to move past EOT and continue reading, but had no luck.  Is there
some magic sequence of tape ioctl's I can use to skip the first file on
the tape and then continue reading subsequent files?

     I am using a QIC-24 SCSI tape drive on a Sun 3/280 running SunOS 4.0.3.

-- 

Chuck Musciano				ARPA  : chuck@trantor.harris-atd.com
Harris Corporation 			Usenet: ...!uunet!x102a!trantor!chuck
PO Box 37, MS 3A/1912			AT&T  : (407) 727-6131
Melbourne, FL 32902			FAX   : (407) 729-3363

A good newspaper is never good enough,
	but a lousy newspaper is a joy forever.		-- Garrison Keillor

pha21@seq1.keele.ac.uk (Braham Levy) (06/11/91)

In article <6462@trantor.harris-atd.com>, chuck@pluto.Harris-ATD.com (Chuck Musciano) writes:
> 
>      I have a QIC-24 cartridge tape that had a number of files on it, and
> then had another file written to the tape at the beginning.  This overwrote
> at least one of the files on the tape, of course, but should not have harmed
> the remaining files after that point.
> 
>      How can I recover the remaining files on the tape?  I tried using mt
> and dd to move past EOT and continue reading, but had no luck.  Is there
> some magic sequence of tape ioctl's I can use to skip the first file on
> the tape and then continue reading subsequent files?
> 
>      I am using a QIC-24 SCSI tape drive on a Sun 3/280 running SunOS 4.0.3.
>

if it can be done you'll need to use the non-rewind tape device. usually
this is the same device name but with a digit number higher eg /dev/mt0
and /dev/mt8, see man mt and associated for details on your system. dd
is probably the only way you'll get the stuff off, if you can at all.
the easiest thing to do then is to read the tape with dd twice. if you
want to be clever you can use `mt fsf` command but this mightn't work. 
> -- 
> 
>
braham

______
j braham levy					| UDSP Lab, EE Group,
JANET:	brahamlevy@uk.ac.keele			| Physics Department,
USENET:	brahamlevy@keele.ac.uk			| University of Keele , Keele,
UUCP: ...ukc!keele.ac.uk!brahamlevy		| Staffordshire, ST5 5BG, UK.
						| +44-782-621111 ext 3943