<?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: Device Erase in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/device-erase/m-p/2649288#M45663</link>
    <description>Thanks all, I now have a clear path of action to follow.&lt;BR /&gt;&lt;BR /&gt;:)</description>
    <pubDate>Mon, 21 Jan 2002 15:56:53 GMT</pubDate>
    <dc:creator>Alex Green</dc:creator>
    <dc:date>2002-01-21T15:56:53Z</dc:date>
    <item>
      <title>Device Erase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/device-erase/m-p/2649282#M45657</link>
      <description>Hey,&lt;BR /&gt;&lt;BR /&gt;I've just been watching the hpux newsgroup and I was wondering if someone could confirm if the following command would work to blank a tape device.&lt;BR /&gt;&lt;BR /&gt;cp /dev/null /dev/rmt/0m&lt;BR /&gt;&lt;BR /&gt;As I am fairly sure it used to work on solaris.&lt;BR /&gt;&lt;BR /&gt;All comment appreciated.&lt;BR /&gt;&lt;BR /&gt;Thnx</description>
      <pubDate>Mon, 21 Jan 2002 15:11:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/device-erase/m-p/2649282#M45657</guid>
      <dc:creator>Alex Green</dc:creator>
      <dc:date>2002-01-21T15:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Device Erase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/device-erase/m-p/2649283#M45658</link>
      <description>It will copy ONE null to the device. If you want more than one NULL, then use:&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/null of=/dev/rmt/0m bs=512 count=numberofpotentialblocksondevice&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;or do a man on "mediainit".&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Jan 2002 15:18:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/device-erase/m-p/2649283#M45658</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-01-21T15:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Device Erase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/device-erase/m-p/2649284#M45659</link>
      <description>Does a block size or a count, have to be specified?</description>
      <pubDate>Mon, 21 Jan 2002 15:21:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/device-erase/m-p/2649284#M45659</guid>
      <dc:creator>Alex Green</dc:creator>
      <dc:date>2002-01-21T15:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Device Erase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/device-erase/m-p/2649285#M45660</link>
      <description>NO!!!!  I would not do a 'cp /dev/null /dev/rmt/0m'  That would probably overwrite your /dev/rmt/0m file with the /dev/null device file.  That is NOT what you want.&lt;BR /&gt;&lt;BR /&gt;To scratch a tar or fbackup tape, you can just reuse it and all data will be overwritten.</description>
      <pubDate>Mon, 21 Jan 2002 15:32:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/device-erase/m-p/2649285#M45660</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2002-01-21T15:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Device Erase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/device-erase/m-p/2649286#M45661</link>
      <description>I was just thinking about what if you have a tape device that is doing compression (most do), how would it treat a huge string of nulls, anyways if I had a 24gb dds3 tape, and I wanted to erase it, I'd set my dd command like this:&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/null of=/dev/rmt/0m bs=1024 count=24000000&lt;BR /&gt;&lt;BR /&gt;It's ok if the tape write fails with an IO error (it hit the EOT marker).&lt;BR /&gt;&lt;BR /&gt;If it's a disk the same rules apply, but at least with a disk you can get specs on block sizes and overall disk size.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Mon, 21 Jan 2002 15:32:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/device-erase/m-p/2649286#M45661</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-01-21T15:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Device Erase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/device-erase/m-p/2649287#M45662</link>
      <description>Hi Alex:&lt;BR /&gt;&lt;BR /&gt;You need a device that will supply an unlimited supply of NUL's. That is /dev/zero.&lt;BR /&gt;Do an ls -l /dev/zero to see if you have such a device. If not, create one thusly:&lt;BR /&gt;mknod /dev/zero c 3 0x000003. Chmod 444 /dev/zero.&lt;BR /&gt;&lt;BR /&gt;If you then use this device rather than /dev/null, you can use your command. However, there is one wrinkle here, if this is a compression device and you write a ton of NUL's, what does that actually write to the tape? If possible, use a non-compression tape device node.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay</description>
      <pubDate>Mon, 21 Jan 2002 15:35:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/device-erase/m-p/2649287#M45662</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-01-21T15:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Device Erase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/device-erase/m-p/2649288#M45663</link>
      <description>Thanks all, I now have a clear path of action to follow.&lt;BR /&gt;&lt;BR /&gt;:)</description>
      <pubDate>Mon, 21 Jan 2002 15:56:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/device-erase/m-p/2649288#M45663</guid>
      <dc:creator>Alex Green</dc:creator>
      <dc:date>2002-01-21T15:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Device Erase</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/device-erase/m-p/2649289#M45664</link>
      <description>Clay,&lt;BR /&gt;&lt;BR /&gt;You are right, what the hell was I thinking about (/dev/null), it must be a monday?? Alex, use the /dev/zero device!&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Mon, 21 Jan 2002 16:00:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/device-erase/m-p/2649289#M45664</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-01-21T16:00:15Z</dc:date>
    </item>
  </channel>
</rss>

