<?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: Data Wipe on tapes using dd in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/data-wipe-on-tapes-using-dd/m-p/4366623#M346772</link>
    <description>&lt;!--!*#--&gt;The tape driver may not be able to handle a pending I/O for the length of time it takes to rewind. I am fairly certain that the automatic rewind returns immediately which means the next dd will try to start an I/O on the busy drive. I would follow each dd with a pause+mt command looking for BOT status:&lt;BR /&gt; &lt;BR /&gt;dd if=/dev/zero of=/dev/rmt/cXtXdXBEST bs=1024k&lt;BR /&gt;STATUS=""&lt;BR /&gt;while [ "$STATUS" = "" ]&lt;BR /&gt;do&lt;BR /&gt;   sleep 1&lt;BR /&gt;   STATUS=$(mt -f /dev/rmt/cXtXdXBEST status | grep -i BOT)&lt;BR /&gt;done&lt;BR /&gt;# next dd command...&lt;BR /&gt;</description>
    <pubDate>Tue, 24 Mar 2009 23:53:40 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2009-03-24T23:53:40Z</dc:date>
    <item>
      <title>Data Wipe on tapes using dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/data-wipe-on-tapes-using-dd/m-p/4366615#M346764</link>
      <description>&lt;!--!*#--&gt;Hello all,&lt;BR /&gt;&lt;BR /&gt;I am attempting to wipe all data on some AIT5 tapes before we send them back to the manufacturer.  To do this, I have been using a combination of:&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/zero of=/dev/rmt/cXtXdXBEST bs=1024k&lt;BR /&gt;dd if=/dev/random of=/dev/rmt/cXtXdXBEST bs=1024k&lt;BR /&gt;&lt;BR /&gt;There have been a few issues with running it this way up to this point.&lt;BR /&gt;&lt;BR /&gt;Initially, I had these commands in a single script in which I rewind the tape, run one pass with dev/zero, rewind the tape, run a second pass with dev/zero, rewind the tape, run a third pass with dev/random and offline the tape.&lt;BR /&gt;&lt;BR /&gt;Here is some log output from the above script.&lt;BR /&gt;&lt;BR /&gt;Beginning script at: 13:13:57&lt;BR /&gt;Rewind Tape&lt;BR /&gt;&lt;BR /&gt;Running first pass of dd with dev-zero at 13:14:20&lt;BR /&gt;5245292+0 records in&lt;BR /&gt;5245291+1 records out&lt;BR /&gt;I/O error&lt;BR /&gt;Rewinding Tape&lt;BR /&gt;&lt;BR /&gt;Running second pass of dd with dev-zero at 13:38:36&lt;BR /&gt;26394+0 records in&lt;BR /&gt;26393+1 records out&lt;BR /&gt;I/O error&lt;BR /&gt;Rewinding Tape&lt;BR /&gt;/dev/rmt/c23t0d0BEST: No such device or address&lt;BR /&gt;&lt;BR /&gt;Running third pass of dd with dev-random at 13:39:04&lt;BR /&gt;/dev/rmt/c23t0d0BEST: No such device or address&lt;BR /&gt;dd: cannot create /dev/rmt/c23t0d0BEST&lt;BR /&gt;/dev/rmt/c23t0d0BEST: No such device or address&lt;BR /&gt;&lt;BR /&gt;Script Completed at: 13:39:08&lt;BR /&gt;&lt;BR /&gt;*This log output was before I had begun specifying block size as 1024k*&lt;BR /&gt;&lt;BR /&gt;As you can see, for some reason the tape drive is unresponsive after the second run of dd.  After a small amount of time, I can again access the tape.&lt;BR /&gt;&lt;BR /&gt;After struggling with this for a bit, I decided to run each dd separate on the command line, which has been (seemingly) working.  However, each time I run dd with dev-zero, even for the same tape and block size set at 1024k, it reports drastically different 'records in' and 'records out' when it is finished.&lt;BR /&gt;&lt;BR /&gt;My questions are these:&lt;BR /&gt;&lt;BR /&gt;Is there a reason why dd would not work in succession in a script?&lt;BR /&gt;&lt;BR /&gt;Why would dd report different records in and out when running it multiple times from the command line?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you so much for your help.</description>
      <pubDate>Wed, 25 Feb 2009 19:56:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/data-wipe-on-tapes-using-dd/m-p/4366615#M346764</guid>
      <dc:creator>John Talaga</dc:creator>
      <dc:date>2009-02-25T19:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Data Wipe on tapes using dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/data-wipe-on-tapes-using-dd/m-p/4366616#M346765</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;I use a high powered magnet. That does the job. At my last employer, disks and tapes, which were considered as disks were physically destroyed, lest they have recoverable data.&lt;BR /&gt;&lt;BR /&gt;Is there a reason why dd would not work in succession in a script?&lt;BR /&gt;&lt;BR /&gt;The media has some variance on it, or was not completely rewound. &lt;BR /&gt;&lt;BR /&gt;Why would dd report different records in and out when running it multiple times from the command line?&lt;BR /&gt;&lt;BR /&gt;Perhaps the media has been used too many times and is wearing out. Tape is a sequential media and how the erase goes depends on what was on the tape in the first place. The second erase on the same type might get different results because the first erase changed the end of data point on the tape.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 25 Feb 2009 20:09:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/data-wipe-on-tapes-using-dd/m-p/4366616#M346765</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-02-25T20:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Data Wipe on tapes using dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/data-wipe-on-tapes-using-dd/m-p/4366617#M346766</link>
      <description>I'm assuming you've got a problem w/ media and are preparing to send them back (for a refund or whatever)?  &lt;BR /&gt;&lt;BR /&gt;if that's the case, consider that a) you already have a problem w/ the media, and b) your attempting to write on the said problematic media so no one else can read it.  If that's the actual case, I'd expect to have problems as well.&lt;BR /&gt;&lt;BR /&gt;As SEP noted, consider a strong magnet.  We actually have a degauser made for this application (forget where we got it).&lt;BR /&gt;&lt;BR /&gt;or consider physical destruction of the media (strip out the tape a shred it)....although I doubt you'd be able to return it to the manufacturer in that case&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Feb 2009 20:17:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/data-wipe-on-tapes-using-dd/m-p/4366617#M346766</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2009-02-25T20:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Data Wipe on tapes using dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/data-wipe-on-tapes-using-dd/m-p/4366618#M346767</link>
      <description>&amp;gt;it reports drastically different 'records in' and 'records out' when it is finished. cXtXdXBEST&lt;BR /&gt;&lt;BR /&gt;Does your tape have hardware compression?  That would give different number of records, in addition to stopping early on I/O errors.</description>
      <pubDate>Wed, 25 Feb 2009 20:46:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/data-wipe-on-tapes-using-dd/m-p/4366618#M346767</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-02-25T20:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Data Wipe on tapes using dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/data-wipe-on-tapes-using-dd/m-p/4366619#M346768</link>
      <description>Pls. refer&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=840750" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=840750&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Can u try ?&lt;BR /&gt;&lt;BR /&gt;tar cf &lt;TAPE_DEVICE_FILE&gt; /dev/null&lt;BR /&gt;&lt;/TAPE_DEVICE_FILE&gt;</description>
      <pubDate>Thu, 26 Feb 2009 04:58:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/data-wipe-on-tapes-using-dd/m-p/4366619#M346768</guid>
      <dc:creator>Sameer Kelkar</dc:creator>
      <dc:date>2009-02-26T04:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Data Wipe on tapes using dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/data-wipe-on-tapes-using-dd/m-p/4366620#M346769</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;Thanks for the thoughts everyone.  To further clarify, these tapes were recalled because they have an expected failure in 2 to 3 years.  I am not sure if the tape itself is faulty at this point.  The tapes themselves are fairly new and have not been used but for 6 months or less, being written to once or twice a month.  &lt;BR /&gt;&lt;BR /&gt;Physically destroying the tape is not an option (although I wish that was an option!).  Degaussing the tapes is an interesting suggestion, but one that I don't really have the time or resources to pursue.&lt;BR /&gt;&lt;BR /&gt;Hardware compression is enabled on the tape, but would the records in/out be different every time the command is run?&lt;BR /&gt;&lt;BR /&gt;Sameer -- I will attempt your command and reply with the results.&lt;BR /&gt;&lt;BR /&gt;Really my lengthy first post boils down to this:  Because of the vastly different records in and out reported by dd, I am worried that not all data is being overwritten on the tape.&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Feb 2009 15:23:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/data-wipe-on-tapes-using-dd/m-p/4366620#M346769</guid>
      <dc:creator>John Talaga</dc:creator>
      <dc:date>2009-02-26T15:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Data Wipe on tapes using dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/data-wipe-on-tapes-using-dd/m-p/4366621#M346770</link>
      <description>&amp;gt;I am not sure if the tape itself is faulty at this point.&lt;BR /&gt;&lt;BR /&gt;You may want to remove compression from the equation.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Hardware compression is enabled on the tape, but would the records in/out be different every time the command is run?&lt;BR /&gt;&lt;BR /&gt;It will be different for the zero vs random.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Because of the vastly different records in and out reported by dd, I am worried that not all data is being overwritten on the tape.&lt;BR /&gt;&lt;BR /&gt;You may want to try reading it, that should be the same.</description>
      <pubDate>Thu, 26 Feb 2009 17:45:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/data-wipe-on-tapes-using-dd/m-p/4366621#M346770</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-02-26T17:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Data Wipe on tapes using dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/data-wipe-on-tapes-using-dd/m-p/4366622#M346771</link>
      <description>Everyone,&lt;BR /&gt;&lt;BR /&gt;Thank you much for your assistance.  After much analysis, it appears that the tape drive itself is at fault here.  When I get a new drive to replace this one, I will again test multiple dd commands in succession, and I suspect there will be no problem.&lt;BR /&gt;&lt;BR /&gt;Thank you again.</description>
      <pubDate>Tue, 24 Mar 2009 20:34:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/data-wipe-on-tapes-using-dd/m-p/4366622#M346771</guid>
      <dc:creator>John Talaga</dc:creator>
      <dc:date>2009-03-24T20:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Data Wipe on tapes using dd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/data-wipe-on-tapes-using-dd/m-p/4366623#M346772</link>
      <description>&lt;!--!*#--&gt;The tape driver may not be able to handle a pending I/O for the length of time it takes to rewind. I am fairly certain that the automatic rewind returns immediately which means the next dd will try to start an I/O on the busy drive. I would follow each dd with a pause+mt command looking for BOT status:&lt;BR /&gt; &lt;BR /&gt;dd if=/dev/zero of=/dev/rmt/cXtXdXBEST bs=1024k&lt;BR /&gt;STATUS=""&lt;BR /&gt;while [ "$STATUS" = "" ]&lt;BR /&gt;do&lt;BR /&gt;   sleep 1&lt;BR /&gt;   STATUS=$(mt -f /dev/rmt/cXtXdXBEST status | grep -i BOT)&lt;BR /&gt;done&lt;BR /&gt;# next dd command...&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Mar 2009 23:53:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/data-wipe-on-tapes-using-dd/m-p/4366623#M346772</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2009-03-24T23:53:40Z</dc:date>
    </item>
  </channel>
</rss>

