<?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: How to fill a device file with zeroes in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-fill-a-device-file-with-zeroes/m-p/2507813#M21787</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;here my suggestion:&lt;BR /&gt;&lt;BR /&gt;prealloc /var/tmp/zero 65536&lt;BR /&gt;while :&lt;BR /&gt;do&lt;BR /&gt;cat /var/tmp/zero&lt;BR /&gt;done | dd of=/dev/rdsk/c#t#d0 bs=64k&lt;BR /&gt;&lt;BR /&gt;This will write to raw device until dd gets an I/O error (which means the disk is full written)&lt;BR /&gt;&lt;BR /&gt;Be careful with the device to prevent writing to a wrong disk.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
    <pubDate>Wed, 21 Mar 2001 09:31:40 GMT</pubDate>
    <dc:creator>Andreas Voss</dc:creator>
    <dc:date>2001-03-21T09:31:40Z</dc:date>
    <item>
      <title>How to fill a device file with zeroes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-fill-a-device-file-with-zeroes/m-p/2507811#M21785</link>
      <description>Is there any way to fill a device file with zeroes or other value ?&lt;BR /&gt;&lt;BR /&gt;I need something similar to /dev/zero from Linux.&lt;BR /&gt;&lt;BR /&gt;According to man pages, I cannot use "prealloc" command in a device file.&lt;BR /&gt;&lt;BR /&gt;Thanx in advance.&lt;BR /&gt;&lt;BR /&gt;P.D: My purpose is to erase any trace of confidential data in a raw disk.</description>
      <pubDate>Wed, 21 Mar 2001 09:09:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-fill-a-device-file-with-zeroes/m-p/2507811#M21785</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2001-03-21T09:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill a device file with zeroes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-fill-a-device-file-with-zeroes/m-p/2507812#M21786</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I don't understand the question , &lt;BR /&gt;just wanna guess what you want.&lt;BR /&gt;&lt;BR /&gt;- to empty a file&lt;BR /&gt;  #&amp;gt; filename&lt;BR /&gt;  empty content of file but the file name still exist.&lt;BR /&gt;- null device file is /dev/null&lt;BR /&gt;- if you want to scrap the disk&lt;BR /&gt;  #dd if=some large files of=/dev/dsk/...&lt;BR /&gt;  but this is very dangerous !!!!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Mar 2001 09:17:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-fill-a-device-file-with-zeroes/m-p/2507812#M21786</guid>
      <dc:creator>Printaporn_1</dc:creator>
      <dc:date>2001-03-21T09:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill a device file with zeroes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-fill-a-device-file-with-zeroes/m-p/2507813#M21787</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;here my suggestion:&lt;BR /&gt;&lt;BR /&gt;prealloc /var/tmp/zero 65536&lt;BR /&gt;while :&lt;BR /&gt;do&lt;BR /&gt;cat /var/tmp/zero&lt;BR /&gt;done | dd of=/dev/rdsk/c#t#d0 bs=64k&lt;BR /&gt;&lt;BR /&gt;This will write to raw device until dd gets an I/O error (which means the disk is full written)&lt;BR /&gt;&lt;BR /&gt;Be careful with the device to prevent writing to a wrong disk.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Wed, 21 Mar 2001 09:31:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-fill-a-device-file-with-zeroes/m-p/2507813#M21787</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2001-03-21T09:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill a device file with zeroes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-fill-a-device-file-with-zeroes/m-p/2507814#M21788</link>
      <description>&lt;BR /&gt;Hola hola hola:&lt;BR /&gt;&lt;BR /&gt;Easy :&lt;BR /&gt;&lt;BR /&gt;see note &lt;A href="http://europe-support.external.hp.com/cki/bin/doc.pl/sid=42a841b019c125f148/screen=ckiDisplayDocument?docId=200000052634178" target="_blank"&gt;http://europe-support.external.hp.com/cki/bin/doc.pl/sid=42a841b019c125f148/screen=ckiDisplayDocument?docId=200000052634178&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;if you cant read it ,  create /dev/zero :&lt;BR /&gt;mknod /dev/zero c 3 0x000003&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Mar 2001 11:22:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-fill-a-device-file-with-zeroes/m-p/2507814#M21788</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2001-03-22T11:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill a device file with zeroes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-fill-a-device-file-with-zeroes/m-p/2507815#M21789</link>
      <description>then I presume &lt;BR /&gt;dd if=/dev/zero of=/dev/dsk/c#t#d#&lt;BR /&gt;&lt;BR /&gt;has anyone verified this, sounds interesting.&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill (no free disk space !)&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Mar 2001 15:44:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-fill-a-device-file-with-zeroes/m-p/2507815#M21789</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-03-23T15:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill a device file with zeroes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-fill-a-device-file-with-zeroes/m-p/2507816#M21790</link>
      <description>Hi Bill:&lt;BR /&gt;&lt;BR /&gt;use rdsk better.&lt;BR /&gt;&lt;BR /&gt;Yes, this special file exists in others Unix and runs perfectly.&lt;BR /&gt;&lt;BR /&gt;After mknod check it with&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/zero of=/tmp/zeros bs=1k count=10&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Mar 2001 09:21:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-fill-a-device-file-with-zeroes/m-p/2507816#M21790</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2001-03-26T09:21:38Z</dc:date>
    </item>
  </channel>
</rss>

