<?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 disk clearing problems in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-clearing-problems/m-p/2543638#M896557</link>
    <description>I wrote an Xwindow program that uses the UNIX command "dd if=file of=/dev/rdsk/c0txd0 bs=1024k", where x=1 for the system disk, x=2 for the archive disk, and "file" contains all 1's, all 0's, or alternating 1's and 0's (depending on the pass the program is on) The program does 7 passes, writing all 1's, then all zeros, and repeating this 2 more times, with a final pass of alternating 1's and 0's. Each pass consists of 4096 calls to the dd command, since we are using 4Gb disks. This works fine on the archive disk, but when I try and run it on itself (the system disk) it appears to be working ok but when I do a "xd" on the disk it appears that there is still alot of garbage still on the disk. I would greatly appreciate it if anybody could tell me what is going on and what, if anything can be done to fix this problem, or if there are better ways to do what I'm trying to accomplish.&lt;BR /&gt;&lt;BR /&gt;Greg</description>
    <pubDate>Thu, 21 Jun 2001 21:47:07 GMT</pubDate>
    <dc:creator>Gregory Hartmann</dc:creator>
    <dc:date>2001-06-21T21:47:07Z</dc:date>
    <item>
      <title>disk clearing problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-clearing-problems/m-p/2543638#M896557</link>
      <description>I wrote an Xwindow program that uses the UNIX command "dd if=file of=/dev/rdsk/c0txd0 bs=1024k", where x=1 for the system disk, x=2 for the archive disk, and "file" contains all 1's, all 0's, or alternating 1's and 0's (depending on the pass the program is on) The program does 7 passes, writing all 1's, then all zeros, and repeating this 2 more times, with a final pass of alternating 1's and 0's. Each pass consists of 4096 calls to the dd command, since we are using 4Gb disks. This works fine on the archive disk, but when I try and run it on itself (the system disk) it appears to be working ok but when I do a "xd" on the disk it appears that there is still alot of garbage still on the disk. I would greatly appreciate it if anybody could tell me what is going on and what, if anything can be done to fix this problem, or if there are better ways to do what I'm trying to accomplish.&lt;BR /&gt;&lt;BR /&gt;Greg</description>
      <pubDate>Thu, 21 Jun 2001 21:47:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-clearing-problems/m-p/2543638#M896557</guid>
      <dc:creator>Gregory Hartmann</dc:creator>
      <dc:date>2001-06-21T21:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: disk clearing problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-clearing-problems/m-p/2543639#M896558</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I don't know what your problem was, but I assume you fixed it.  &lt;BR /&gt;&lt;BR /&gt;For those reading this, there is a good discussion (although somewhat disjointed) at &lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0x24b53a7b3682d611abdb0090277a778c%2C00.html&amp;amp;admit=716493758+1074477294344+28353475" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0x24b53a7b3682d611abdb0090277a778c%2C00.html&amp;amp;admit=716493758+1074477294344+28353475&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Basically, what I did was (for HP-UX 11.00):&lt;BR /&gt;mknod /dev/zero c 3 4&lt;BR /&gt;chown bin:bin /dev/zero&lt;BR /&gt;chmod 666 /dev/zero&lt;BR /&gt;dd of=/dev/rdsk/c1t1d0 bs=1024k &amp;lt; /dev/zero&lt;BR /&gt;&lt;BR /&gt;This wiped 100 luns (some 7GB, others 14 GB) residing on an XP256 in about 10 hours, which is pretty quick for a dd command.  Note, must use rdsk, must use a large block size, and must redirect /dev/zero to the device, don't 'cat' it, and don't if='s it.&lt;BR /&gt;&lt;BR /&gt;If you want alternating 1' and zero's, read the above link, or search for it on the forums, as there have been good discussions about this previously.&lt;BR /&gt;&lt;BR /&gt;Cheers.&lt;BR /&gt;&lt;BR /&gt;- Andrew Gray&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 18 Jan 2004 21:00:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-clearing-problems/m-p/2543639#M896558</guid>
      <dc:creator>support_5</dc:creator>
      <dc:date>2004-01-18T21:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: disk clearing problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-clearing-problems/m-p/2543640#M896559</link>
      <description>Sorry if I'm being dense.  It sounds like &lt;BR /&gt;in addition to running it on some non-boot &lt;BR /&gt;disks, you're also running it on an active&lt;BR /&gt;boot disk.  AFAIK you would not be able to &lt;BR /&gt;truly erase this disk because parts of it are&lt;BR /&gt;in use (or so it seems).  Perhaps someone&lt;BR /&gt;can shed more light.&lt;BR /&gt;&lt;BR /&gt;But my suggestion for "fixing" is to make it&lt;BR /&gt;a non-boot disk (boot from a CD that has&lt;BR /&gt;your erasing program, move it to another&lt;BR /&gt;system, etc) and run the erasing program on&lt;BR /&gt;it.&lt;BR /&gt;&lt;BR /&gt;HTH.&lt;BR /&gt;Mic</description>
      <pubDate>Sun, 18 Jan 2004 23:47:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-clearing-problems/m-p/2543640#M896559</guid>
      <dc:creator>Mic V.</dc:creator>
      <dc:date>2004-01-18T23:47:26Z</dc:date>
    </item>
  </channel>
</rss>

