home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / wizards / 4620 < prev    next >
Encoding:
Text File  |  1992-11-11  |  1.9 KB  |  46 lines

  1. Newsgroups: comp.unix.wizards
  2. Path: sparky!uunet!mcrware!troyf
  3. From: troyf@microware.com (Troy Frericks)
  4. Subject: Re: >>TAR file on tape distroyed, are files recoverable?<<
  5. Message-ID: <1992Nov11.222308.25090@microware.com>
  6. Sender: news@microware.com
  7. Nntp-Posting-Host: marx
  8. Organization: Microware Systems Corp., Des Moines, Iowa
  9. References: <1992Nov10.184320.5998@microware.com>
  10. Date: Wed, 11 Nov 1992 22:23:08 GMT
  11. Lines: 33
  12.  
  13. In article <1992Nov10.184320.5998@microware.com> troyf@microware.com (Troy Frericks) writes:
  14. >I have a tape that contained a large 'tar' file.  The data is not
  15. >replaceable.  The data that is needed is at the end of the tar
  16. >file, but it is inaccessable because the wrong parameter was
  17. >passed to tar when attempting to retrieve it.  The 'c' for
  18. >create, rather than 'x' for eXtract was passed, which caused
  19. >tar to write a tiny tar file over the beginning of the
  20. >larger one.
  21. >
  22. >Any hints on how to retrieve files from a large tar file once
  23. >the beginning of the tar file has been distroyed?
  24. >
  25. >-
  26. >Troy Frericks                      Internet: troyf@MICROWARE.COM
  27. >Microware Systems Corporation          UUCP: uunet!mcrware!troyf
  28. >1900 NW 114th St                      Phone: (515)224-1929
  29. >Des Moines, IA 50325-7077               Fax: (515)224-1352
  30.  
  31. Thanks to all who helped me out on this -- espically uunet!iti.gov.sg!ram (Ram)
  32. What I ended up doing was
  33.  
  34. - dd'ed the contents of first meg of tape to a disk file
  35. - hexdump the file looking for valid data - noted offset of the first valid
  36.     file name (offset was 10753)
  37. - dd if=device bs=1024 | tail +10753c | tar -xvf -
  38.     which got the info from tape | skipped over the bad part | and
  39.     let tar process the good part.
  40.  
  41. -
  42. Troy Frericks                      Internet: troyf@MICROWARE.COM
  43. Microware Systems Corporation          UUCP: uunet!mcrware!troyf
  44. 1900 NW 114th St                      Phone: (515)224-1929
  45. Des Moines, IA 50325-7077               Fax: (515)224-1352
  46.