<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: confused with command &amp;quot;tar&amp;quot;. would the tape be full? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/confused-with-command-quot-tar-quot-would-the-tape-be-full/m-p/2445983#M9343</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you are right, tar with -c starts a new archive BUT if you had a previous command with the device /dev/rmt/0mn, the tape isn't rewind and so the next tar command writes after this position.&lt;BR /&gt;To prevent this rewind the tape explictly with:&lt;BR /&gt;mt -t /dev/rmt/0m rew&lt;BR /&gt;&lt;BR /&gt;Regards</description>
    <pubDate>Mon, 18 Sep 2000 09:48:49 GMT</pubDate>
    <dc:creator>Andreas Voss</dc:creator>
    <dc:date>2000-09-18T09:48:49Z</dc:date>
    <item>
      <title>confused with command "tar". would the tape be full?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/confused-with-command-quot-tar-quot-would-the-tape-be-full/m-p/2445982#M9342</link>
      <description>Got a question here.&lt;BR /&gt;When I reused a tape on the command&lt;BR /&gt;"tar -cvf /dev/rmt/0m /dir1 /dir2"&lt;BR /&gt;for several time, would the tape be possible full?&lt;BR /&gt;Isn't tar create a new archive and over-write the old tape instead of appeading to it, when it executes with option "-c", ?&lt;BR /&gt;&lt;BR /&gt;Thank you in advance.&lt;BR /&gt;&lt;BR /&gt;Jessica</description>
      <pubDate>Mon, 18 Sep 2000 09:44:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/confused-with-command-quot-tar-quot-would-the-tape-be-full/m-p/2445982#M9342</guid>
      <dc:creator>Jessica Chou</dc:creator>
      <dc:date>2000-09-18T09:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: confused with command "tar". would the tape be full?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/confused-with-command-quot-tar-quot-would-the-tape-be-full/m-p/2445983#M9343</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you are right, tar with -c starts a new archive BUT if you had a previous command with the device /dev/rmt/0mn, the tape isn't rewind and so the next tar command writes after this position.&lt;BR /&gt;To prevent this rewind the tape explictly with:&lt;BR /&gt;mt -t /dev/rmt/0m rew&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Mon, 18 Sep 2000 09:48:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/confused-with-command-quot-tar-quot-would-the-tape-be-full/m-p/2445983#M9343</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2000-09-18T09:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: confused with command "tar". would the tape be full?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/confused-with-command-quot-tar-quot-would-the-tape-be-full/m-p/2445984#M9344</link>
      <description>Hi Jessica,&lt;BR /&gt;&lt;BR /&gt;Because you are using the 'rewind' tape device (/dev/rmt/0m) tar will always rewind the tape when it closes the output file.&lt;BR /&gt;&lt;BR /&gt;Thus if you run several 'tars' they will always overwrite each other.&lt;BR /&gt;&lt;BR /&gt;If you want to have several tar dumps on a tape, you must use the 'non rewind' tape device (/dev/rmt/0mn (or 0mnb)).&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John</description>
      <pubDate>Mon, 18 Sep 2000 09:48:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/confused-with-command-quot-tar-quot-would-the-tape-be-full/m-p/2445984#M9344</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2000-09-18T09:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: confused with command "tar". would the tape be full?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/confused-with-command-quot-tar-quot-would-the-tape-be-full/m-p/2445985#M9345</link>
      <description>Yes "-c" option creates a new archive and overwrite the old tape. Maybe the tape must be having some problem or worn out. What error/message you get?</description>
      <pubDate>Mon, 18 Sep 2000 09:49:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/confused-with-command-quot-tar-quot-would-the-tape-be-full/m-p/2445985#M9345</guid>
      <dc:creator>Vincente Fernandes</dc:creator>
      <dc:date>2000-09-18T09:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: confused with command "tar". would the tape be full?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/confused-with-command-quot-tar-quot-would-the-tape-be-full/m-p/2445986#M9346</link>
      <description>One common cause of this error, is a fault with the tape or the tape drive. The other, obviously is the tape has filled up.&lt;BR /&gt;&lt;BR /&gt;You didn't mention whether this occurs instantly or after a while. Also, what tape drive/media are you using, and how big is the data?</description>
      <pubDate>Mon, 18 Sep 2000 11:01:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/confused-with-command-quot-tar-quot-would-the-tape-be-full/m-p/2445986#M9346</guid>
      <dc:creator>Andy Monks</dc:creator>
      <dc:date>2000-09-18T11:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: confused with command "tar". would the tape be full?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/confused-with-command-quot-tar-quot-would-the-tape-be-full/m-p/2445987#M9347</link>
      <description>Hi! &lt;BR /&gt;Thanks all you guys' reply.&lt;BR /&gt;The media I use is HP's DLT tape drive with&lt;BR /&gt;a 40-80 GB data cartridge.&lt;BR /&gt;&lt;BR /&gt;The error message I got at tar command was something like "tape full... enter device name... or null to abort ..."(I forgot to write it down at that moment.)&lt;BR /&gt;&lt;BR /&gt;Since some of you mentioned that  "/dev/rmt/0mn" can have the tape un-rewinded, I would like to know what benefit I can get by using this device?  How can I identify the tar files I made on a tape for later extraction?&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;Jessica</description>
      <pubDate>Tue, 19 Sep 2000 09:15:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/confused-with-command-quot-tar-quot-would-the-tape-be-full/m-p/2445987#M9347</guid>
      <dc:creator>Jessica Chou</dc:creator>
      <dc:date>2000-09-19T09:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: confused with command "tar". would the tape be full?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/confused-with-command-quot-tar-quot-would-the-tape-be-full/m-p/2445988#M9348</link>
      <description>Jessica,&lt;BR /&gt;&lt;BR /&gt;The message that you got was that tar had run off the end of the tape.&lt;BR /&gt;&lt;BR /&gt;If you use the non-rewind tape device file then when a program like 'tar' finishes the tape is left positioned at the end of the tar file. Running another tar produces a second file on the tape and so on. Each of the files is separated from the previous by a 'tape mark' and end of the last file is indicated by a 'double tape mark'. Thus three runs of tar to /dev/rmt/0mn will produce the following data on tape (*TM* is a tape mark):-&lt;BR /&gt;&lt;BR /&gt;&lt;TAR file="" 1=""&gt;&lt;BR /&gt;*TM*&lt;BR /&gt;&lt;TAR file="" 2=""&gt;&lt;BR /&gt;*TM*&lt;BR /&gt;&lt;TAR file="" 3=""&gt;&lt;BR /&gt;*TM*&lt;BR /&gt;*TM*&lt;BR /&gt;&lt;BR /&gt;If you wrote a fourth file, this would start by overwriting the final tape mark.&lt;BR /&gt;&lt;BR /&gt;As far as identifying the tar files goes, various techniques can be employed:-&lt;BR /&gt;&lt;BR /&gt;If you script the running of tar then the script could log what it has done to a file somewhere.&lt;BR /&gt;You could write the contents on the tape label.&lt;BR /&gt;You could also use tar itself to identify the contents of a tar file with &lt;BR /&gt;'tar tvf /dev/rmt/0mn'&lt;BR /&gt;&lt;BR /&gt;On a performance note, it is worth specifying the 'b' argument to tar with a blocksize of 64. This speeds up tar considerably and gets more data onto the tape.&lt;BR /&gt;&lt;BR /&gt;Use 'tar cbf 64 /dev/rmt/0mn' to backup&lt;BR /&gt;and 'tar xbf 64 /dev/rmt/0mn to restore.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;John&lt;/TAR&gt;&lt;/TAR&gt;&lt;/TAR&gt;</description>
      <pubDate>Tue, 19 Sep 2000 14:50:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/confused-with-command-quot-tar-quot-would-the-tape-be-full/m-p/2445988#M9348</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2000-09-19T14:50:33Z</dc:date>
    </item>
  </channel>
</rss>

