home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / sun / misc / 4151 < prev    next >
Encoding:
Internet Message Format  |  1992-09-09  |  2.3 KB

  1. Xref: sparky comp.sys.sun.misc:4151 comp.sys.sun.hardware:4299 comp.unix.solaris:208
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!sample.eng.ohio-state.edu!purdue!mentor.cc.purdue.edu!noose.ecn.purdue.edu!samsung!samsung.com!jarmolow
  3. From: jarmolow@samsung.com (Tom Jarmolowski)
  4. Newsgroups: comp.sys.sun.misc,comp.sys.sun.hardware,comp.unix.solaris
  5. Subject: Re: Adding to a TAR tape
  6. Keywords: tar tape
  7. Message-ID: <33639@samsung.samsung.com>
  8. Date: 9 Sep 92 15:25:35 GMT
  9. References: <lsloan.715963681@nova> <BuB4rL.HCt@world.std.com>
  10. Sender: news@samsung.COM
  11. Reply-To: jarmolow@samsung.com
  12. Followup-To: comp.sys.sun.misc
  13. Organization: Samsung Software America
  14. Lines: 40
  15.  
  16. In article <BuB4rL.HCt@world.std.com>, tombaker@world.std.com (Tom A Baker) writes:
  17. |> In article <lsloan.715963681@nova> lsloan@nova.gmi.edu (Lance Sloan) writes:
  18. |> >I am using a Sun SPARCserver 4/490 with an 8mm tape drive on /dev/rst0.
  19. |> >I can use tar to put files on the tape, but I cannot add files to the tape
  20. |> >after the initial tar.
  21. |> >
  22. |> >For example, I tar several files to the tape and later want to add a file
  23. |> >to the end of the existing tar file.  The u (update) and r (write) options
  24. |> >to tar return errors.
  25. |> >
  26. |> >Any help would be greatly appreciated.
  27. |> >
  28. |> >Thanks,
  29. |> >Lance Sloan
  30. |> >lsloan@nova.gmi.edu
  31. |> >
  32. |> 
  33. |> (I am posting, a.o.t. email, because I am asking a query myself.)
  34. |> 
  35. |> 
  36. |> The way I used to do this was to use the command:  mt fsf 1
  37. |> 
  38. |> The tarfile looks like any other file on a tape.  Just position the
  39. |> tape past the end-of-file mark, and start a new tarfile ...
  40. |> 
  41. |>     $ tar cvf /dev/rst8 ..      (first tarfile)
  42. |>     $ mt -f /dev/rst8 rew       (rewind)
  43. |>     $ mt -f /dev/rst8 fsf 1     (position past first file)
  44. |>     $ tar cvf /dev/rst8 ..      (second tarfile)
  45. |> 
  46.  
  47. The problem here is the device name. "rst8" is the "rewind" device.
  48. After each operation the tape is rewound. Use "nrst8" instead.
  49.  
  50. -- 
  51. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  52. Tom Jarmolowski              _/_                    jarmolow@samsung.com
  53. Samsung Software America     /      __     _____    ...uunet!samsung!jarmolow
  54. One Corporate Drive         (__    (_)    (  )  )   Voice: (508) 685-7200  x308
  55. Andover MA 01810                                    Fax: (508) 685-4940
  56.