home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.sun.misc:4151 comp.sys.sun.hardware:4299 comp.unix.solaris:208
- 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
- From: jarmolow@samsung.com (Tom Jarmolowski)
- Newsgroups: comp.sys.sun.misc,comp.sys.sun.hardware,comp.unix.solaris
- Subject: Re: Adding to a TAR tape
- Keywords: tar tape
- Message-ID: <33639@samsung.samsung.com>
- Date: 9 Sep 92 15:25:35 GMT
- References: <lsloan.715963681@nova> <BuB4rL.HCt@world.std.com>
- Sender: news@samsung.COM
- Reply-To: jarmolow@samsung.com
- Followup-To: comp.sys.sun.misc
- Organization: Samsung Software America
- Lines: 40
-
- In article <BuB4rL.HCt@world.std.com>, tombaker@world.std.com (Tom A Baker) writes:
- |> In article <lsloan.715963681@nova> lsloan@nova.gmi.edu (Lance Sloan) writes:
- |> >I am using a Sun SPARCserver 4/490 with an 8mm tape drive on /dev/rst0.
- |> >I can use tar to put files on the tape, but I cannot add files to the tape
- |> >after the initial tar.
- |> >
- |> >For example, I tar several files to the tape and later want to add a file
- |> >to the end of the existing tar file. The u (update) and r (write) options
- |> >to tar return errors.
- |> >
- |> >Any help would be greatly appreciated.
- |> >
- |> >Thanks,
- |> >Lance Sloan
- |> >lsloan@nova.gmi.edu
- |> >
- |>
- |> (I am posting, a.o.t. email, because I am asking a query myself.)
- |>
- |>
- |> The way I used to do this was to use the command: mt fsf 1
- |>
- |> The tarfile looks like any other file on a tape. Just position the
- |> tape past the end-of-file mark, and start a new tarfile ...
- |>
- |> $ tar cvf /dev/rst8 .. (first tarfile)
- |> $ mt -f /dev/rst8 rew (rewind)
- |> $ mt -f /dev/rst8 fsf 1 (position past first file)
- |> $ tar cvf /dev/rst8 .. (second tarfile)
- |>
-
- The problem here is the device name. "rst8" is the "rewind" device.
- After each operation the tape is rewound. Use "nrst8" instead.
-
- --
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- Tom Jarmolowski _/_ jarmolow@samsung.com
- Samsung Software America / __ _____ ...uunet!samsung!jarmolow
- One Corporate Drive (__ (_) ( ) ) Voice: (508) 685-7200 x308
- Andover MA 01810 Fax: (508) 685-4940
-