<?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: Newbi needs help. Tar commands replies error 'blocksize error' in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/newbi-needs-help-tar-commands-replies-error-blocksize-error/m-p/2766828#M895451</link>
    <description>Thanx all for the advice, but.....&lt;BR /&gt;&lt;BR /&gt;1. Steven, it's still giving blocksize error &lt;BR /&gt;   even after rewinding the tape.&lt;BR /&gt;2. Peter, I used pax -cdnv &amp;amp; pax -dv, but it&lt;BR /&gt;   that there is no output, just an empty line.&lt;BR /&gt;   did I give the correct command?&lt;BR /&gt;3. Heiner, I've tried the dd command with a&lt;BR /&gt;   few combinations of the ibs= ???k , even&lt;BR /&gt;   removing the ibs, but it's give a new error:&lt;BR /&gt;        'directory checksum error'&lt;BR /&gt;   My collegue is still at it, trying a few&lt;BR /&gt;   combos with ibs=???k.&lt;BR /&gt;</description>
    <pubDate>Thu, 18 Jul 2002 08:52:32 GMT</pubDate>
    <dc:creator>Firdaus Bin Abdul Aziz</dc:creator>
    <dc:date>2002-07-18T08:52:32Z</dc:date>
    <item>
      <title>Newbi needs help. Tar commands replies error 'blocksize error'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/newbi-needs-help-tar-commands-replies-error-blocksize-error/m-p/2766823#M895446</link>
      <description>hi,&lt;BR /&gt;I'm using HP-UX 11, (hp 9000, L1000).&lt;BR /&gt;Tape drive DDS4. I can read bakup tape&lt;BR /&gt;that i've created on my machine, however,&lt;BR /&gt;I'm getting 'Tar: tape blocksize error'&lt;BR /&gt;whenever trying to read tapes from other&lt;BR /&gt;machines. the tape is readable in other&lt;BR /&gt;machine (Unisys A series mainframe).&lt;BR /&gt;I'm using Tar command:&lt;BR /&gt;#tar -tvf /dev/rmt/0mn&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Jul 2002 07:10:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/newbi-needs-help-tar-commands-replies-error-blocksize-error/m-p/2766823#M895446</guid>
      <dc:creator>Firdaus Bin Abdul Aziz</dc:creator>
      <dc:date>2002-07-18T07:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Newbi needs help. Tar commands replies error 'blocksize error'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/newbi-needs-help-tar-commands-replies-error-blocksize-error/m-p/2766824#M895447</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Looks like you need to rewind your tape first&lt;BR /&gt;&lt;BR /&gt;mt -t /dev/rmt/0m rew&lt;BR /&gt;&lt;BR /&gt;Then&lt;BR /&gt;&lt;BR /&gt;tar -tvf /dev/rmt/0m&lt;BR /&gt;&lt;BR /&gt;The 0mn means you are using the no rewind option with your tar command&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 18 Jul 2002 07:24:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/newbi-needs-help-tar-commands-replies-error-blocksize-error/m-p/2766824#M895447</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2002-07-18T07:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Newbi needs help. Tar commands replies error 'blocksize error'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/newbi-needs-help-tar-commands-replies-error-blocksize-error/m-p/2766825#M895448</link>
      <description>The HP-UX tar command can only handle tar tape with max 64k bocksize (10k ist default). Other platforms  (eg SGI) like to write other blocksizes.&lt;BR /&gt;Maybe you can try it with:&lt;BR /&gt;dd if=/dev/rmt/0m ibs=256k | tar tvf -&lt;BR /&gt;&lt;BR /&gt;Maybe you can get ride of the ibs=256k at all, or you have to change it with the correct block size.&lt;BR /&gt;&lt;BR /&gt;Heiner&lt;BR /&gt;P.S. SGI also likes to write byteswapped. If this is here the case to you have to add the dd option 'conv=swab'</description>
      <pubDate>Thu, 18 Jul 2002 07:30:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/newbi-needs-help-tar-commands-replies-error-blocksize-error/m-p/2766825#M895448</guid>
      <dc:creator>Heiner E. Lennackers</dc:creator>
      <dc:date>2002-07-18T07:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Newbi needs help. Tar commands replies error 'blocksize error'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/newbi-needs-help-tar-commands-replies-error-blocksize-error/m-p/2766826#M895449</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you told us, that you have problems with tar- tapes from "other" machines. Does that mean other platforms, like solaris or aix? Then use a different command, which will solve your problem easily: pax&lt;BR /&gt;&lt;BR /&gt;The command pax is able to read every tar- or cpio- format. And it's available on every UNIX platform. For more information:&lt;BR /&gt;&lt;BR /&gt;man pax&lt;BR /&gt;&lt;BR /&gt;Allways stay on the bright side of life!&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Thu, 18 Jul 2002 07:50:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/newbi-needs-help-tar-commands-replies-error-blocksize-error/m-p/2766826#M895449</guid>
      <dc:creator>Peter Kloetgen</dc:creator>
      <dc:date>2002-07-18T07:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Newbi needs help. Tar commands replies error 'blocksize error'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/newbi-needs-help-tar-commands-replies-error-blocksize-error/m-p/2766827#M895450</link>
      <description>hi,&lt;BR /&gt;as already suggested just rewind the tape and issue &lt;BR /&gt;tar tvf /dev/rmt/0m&lt;BR /&gt;&lt;BR /&gt;regds</description>
      <pubDate>Thu, 18 Jul 2002 08:15:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/newbi-needs-help-tar-commands-replies-error-blocksize-error/m-p/2766827#M895450</guid>
      <dc:creator>V. V. Ravi Kumar_1</dc:creator>
      <dc:date>2002-07-18T08:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Newbi needs help. Tar commands replies error 'blocksize error'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/newbi-needs-help-tar-commands-replies-error-blocksize-error/m-p/2766828#M895451</link>
      <description>Thanx all for the advice, but.....&lt;BR /&gt;&lt;BR /&gt;1. Steven, it's still giving blocksize error &lt;BR /&gt;   even after rewinding the tape.&lt;BR /&gt;2. Peter, I used pax -cdnv &amp;amp; pax -dv, but it&lt;BR /&gt;   that there is no output, just an empty line.&lt;BR /&gt;   did I give the correct command?&lt;BR /&gt;3. Heiner, I've tried the dd command with a&lt;BR /&gt;   few combinations of the ibs= ???k , even&lt;BR /&gt;   removing the ibs, but it's give a new error:&lt;BR /&gt;        'directory checksum error'&lt;BR /&gt;   My collegue is still at it, trying a few&lt;BR /&gt;   combos with ibs=???k.&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Jul 2002 08:52:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/newbi-needs-help-tar-commands-replies-error-blocksize-error/m-p/2766828#M895451</guid>
      <dc:creator>Firdaus Bin Abdul Aziz</dc:creator>
      <dc:date>2002-07-18T08:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Newbi needs help. Tar commands replies error 'blocksize error'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/newbi-needs-help-tar-commands-replies-error-blocksize-error/m-p/2766829#M895452</link>
      <description>For a tape "from other machine" do:&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/rmt/0mn of=/tmp/record1 bs=64k count=1&lt;BR /&gt;dd if=/dev/rmt/0mn of=/tmp/record2 bs=64k count=1&lt;BR /&gt;ll /tmp/record1 /tmp/record2&lt;BR /&gt;file /tmp/record1&lt;BR /&gt;&lt;BR /&gt;and report the result (i.e. output) here.&lt;BR /&gt;&lt;BR /&gt;What this will show is:&lt;BR /&gt;- The record size of the first and second record.&lt;BR /&gt;- Whether HP-UX recognizes this as a tar archive (i.e. byte order correct).&lt;BR /&gt;&lt;BR /&gt;Other question: Does "tar -tvf /dev/rmt/0mn" report *anything else* (besides "tar: tape blocksize error" , i.e. (part of) the *listing*? If so, then please post the beginning of that listing, i.e. 10 or so lines. &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Thu, 18 Jul 2002 12:47:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/newbi-needs-help-tar-commands-replies-error-blocksize-error/m-p/2766829#M895452</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2002-07-18T12:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Newbi needs help. Tar commands replies error 'blocksize error'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/newbi-needs-help-tar-commands-replies-error-blocksize-error/m-p/2766830#M895453</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;It is possible that the tapes are not in tar format . I would suggest that you do a simple dd to check whter the data is wriiten or not like &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/rmt/0m of=/tmp/test &lt;BR /&gt;&lt;BR /&gt;and check after that whether there is some data in that file or not , in case you see some data then the tapes are not in tar format .&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I dont hink it is a media issue as you can write and read sucessfully.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
      <pubDate>Thu, 18 Jul 2002 12:58:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/newbi-needs-help-tar-commands-replies-error-blocksize-error/m-p/2766830#M895453</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-07-18T12:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Newbi needs help. Tar commands replies error 'blocksize error'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/newbi-needs-help-tar-commands-replies-error-blocksize-error/m-p/2766831#M895454</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;First check if there was any block size used while taking the backup or what is the default block size when using tar on the system where the backup was taken. &lt;BR /&gt;&lt;BR /&gt;Then use the -b option with the tar command to specify the block size,&lt;BR /&gt;&lt;BR /&gt;tar -tvfb /dev/rmt/0m block_size&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Jul 2002 13:10:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/newbi-needs-help-tar-commands-replies-error-blocksize-error/m-p/2766831#M895454</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-07-18T13:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Newbi needs help. Tar commands replies error 'blocksize error'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/newbi-needs-help-tar-commands-replies-error-blocksize-error/m-p/2766832#M895455</link>
      <description>I've had this problem on a Sun machine not HP, try a large block size value until it lets you read the tape i.e. tar -tvfb /dev/rmt/0mn 1000&lt;BR /&gt;good luck</description>
      <pubDate>Fri, 19 Jul 2002 06:33:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/newbi-needs-help-tar-commands-replies-error-blocksize-error/m-p/2766832#M895455</guid>
      <dc:creator>Matthew McNally</dc:creator>
      <dc:date>2002-07-19T06:33:43Z</dc:date>
    </item>
  </channel>
</rss>

