<?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: /dev/zero on HP-UX 11 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-zero-on-hp-ux-11/m-p/2526074#M892614</link>
    <description>Yes there is but you may have to build it.&lt;BR /&gt;&lt;BR /&gt;Do an ls /dev/zero.&lt;BR /&gt;&lt;BR /&gt;If not found then we will build one.&lt;BR /&gt;&lt;BR /&gt;cd /dev&lt;BR /&gt;mknod zero c 3 0x000004&lt;BR /&gt;chown bin:sys zero&lt;BR /&gt;chmod 666 zero&lt;BR /&gt;&lt;BR /&gt;On 10.20, I think the correct minor device no. is 0x000003 but everything else is the same.&lt;BR /&gt;&lt;BR /&gt;To test:&lt;BR /&gt;dd if=/dev/zero bs=1k count=2 of=/tmp/xx&lt;BR /&gt;&lt;BR /&gt;That should create 1 2k zero'ed file.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay&lt;BR /&gt;</description>
    <pubDate>Tue, 08 May 2001 20:39:20 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2001-05-08T20:39:20Z</dc:date>
    <item>
      <title>/dev/zero on HP-UX 11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-zero-on-hp-ux-11/m-p/2526073#M892613</link>
      <description>Hello HP experts !&lt;BR /&gt;&lt;BR /&gt;I use some versions of UNIXes,&lt;BR /&gt;but under HP-UX, I miss something&lt;BR /&gt;like '/dev/zero' a device producing&lt;BR /&gt;0x00 characters. I often use&lt;BR /&gt;this to wipe out devices with `dd',&lt;BR /&gt;etc...&lt;BR /&gt;&lt;BR /&gt;Is there a similar device in HP-UX ?&lt;BR /&gt;What is '/dev/nuls' (the read is &lt;BR /&gt;blocking, when I try to use) ?&lt;BR /&gt;&lt;BR /&gt;With friendly regards&lt;BR /&gt; Christoph Plattner&lt;BR /&gt;&lt;BR /&gt;-------------------------&lt;BR /&gt;private:&lt;BR /&gt;  christoph.plattner@gmx.at&lt;BR /&gt;company:&lt;BR /&gt;  christoph.plattner@alcatel.at&lt;BR /&gt;</description>
      <pubDate>Tue, 08 May 2001 19:49:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dev-zero-on-hp-ux-11/m-p/2526073#M892613</guid>
      <dc:creator>Christoph Plattner</dc:creator>
      <dc:date>2001-05-08T19:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: /dev/zero on HP-UX 11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-zero-on-hp-ux-11/m-p/2526074#M892614</link>
      <description>Yes there is but you may have to build it.&lt;BR /&gt;&lt;BR /&gt;Do an ls /dev/zero.&lt;BR /&gt;&lt;BR /&gt;If not found then we will build one.&lt;BR /&gt;&lt;BR /&gt;cd /dev&lt;BR /&gt;mknod zero c 3 0x000004&lt;BR /&gt;chown bin:sys zero&lt;BR /&gt;chmod 666 zero&lt;BR /&gt;&lt;BR /&gt;On 10.20, I think the correct minor device no. is 0x000003 but everything else is the same.&lt;BR /&gt;&lt;BR /&gt;To test:&lt;BR /&gt;dd if=/dev/zero bs=1k count=2 of=/tmp/xx&lt;BR /&gt;&lt;BR /&gt;That should create 1 2k zero'ed file.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay&lt;BR /&gt;</description>
      <pubDate>Tue, 08 May 2001 20:39:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dev-zero-on-hp-ux-11/m-p/2526074#M892614</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-05-08T20:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: /dev/zero on HP-UX 11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-zero-on-hp-ux-11/m-p/2526075#M892615</link>
      <description>&lt;P&gt;See&lt;A href="https://community.hpe.com/t5/forums/searchpage/tab/message?q=%2Fdev%2Fzero+on+HP-UX+11" target="_blank"&gt;https://community.hpe.com/t5/forums/searchpage/tab/message?q=%2Fdev%2Fzero+on+HP-UX+11&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 09:11:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dev-zero-on-hp-ux-11/m-p/2526075#M892615</guid>
      <dc:creator>Vincenzo Restuccia</dc:creator>
      <dc:date>2017-03-24T09:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: /dev/zero on HP-UX 11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-zero-on-hp-ux-11/m-p/2526076#M892616</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I use /dev/null for those purposes.&lt;BR /&gt;&lt;BR /&gt;If I test a disk for example I use dd if= .... of=/dev/null.&lt;BR /&gt;&lt;BR /&gt;Hope that helps,&lt;BR /&gt;&lt;BR /&gt;Steffi Jones</description>
      <pubDate>Wed, 09 May 2001 13:15:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dev-zero-on-hp-ux-11/m-p/2526076#M892616</guid>
      <dc:creator>Steffi Jones_1</dc:creator>
      <dc:date>2001-05-09T13:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: /dev/zero on HP-UX 11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-zero-on-hp-ux-11/m-p/2526077#M892617</link>
      <description>&lt;BR /&gt;the correct command to create /dev/zero is&lt;BR /&gt;&lt;BR /&gt;   "mknod /dev/zero c 3 3"</description>
      <pubDate>Tue, 15 May 2001 11:24:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dev-zero-on-hp-ux-11/m-p/2526077#M892617</guid>
      <dc:creator>Klaus Crusius</dc:creator>
      <dc:date>2001-05-15T11:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: /dev/zero on HP-UX 11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-zero-on-hp-ux-11/m-p/2526078#M892618</link>
      <description>I don't think you want to use /dev/null as it's output is discarded.  To test I used the dd command listed above:&lt;BR /&gt;dd if=/dev/null bs=1k count=2 of=/tmp/xx&lt;BR /&gt;&lt;BR /&gt;When I used /dev/null the file length was zero, and of course contained no data.&lt;BR /&gt;dd listed:&lt;BR /&gt;0+0 records in&lt;BR /&gt;0+0 records out&lt;BR /&gt;&lt;BR /&gt;Next I created /dev/zero using:&lt;BR /&gt;mknod /dev/zero c 3 4&lt;BR /&gt;chown bin:sys /dev/zero&lt;BR /&gt;chmod 666 /dev/zero&lt;BR /&gt;&lt;BR /&gt;Then tested with&lt;BR /&gt;dd if=/dev/zero bs=1k count=2 of=/tmp/xx&lt;BR /&gt;dd listed:&lt;BR /&gt;2+0 records in&lt;BR /&gt;2+0 records out&lt;BR /&gt;&lt;BR /&gt;This time /tmp/xx had size:&lt;BR /&gt;-rw-r--r--   1 root       sys           2048 Jul 11 11:12 /tmp/xx&lt;BR /&gt;&lt;BR /&gt;This is probably what you want as it will over write the data that is on the disk instead of discarding the output.&lt;BR /&gt;&lt;BR /&gt;I have seen some discrepancy with the minor numbers.  I have an 11.0 workstation an it did not have a /dev/zero.  On another 11i box fresh from the factory it has a /dev/zero and has minor of 4 instead of 3 that I've seen listed elsewhere.  I used 4 in my test since that was on a fresh install of 11i.  It may work with minor of 3 as well, but I didn't test.  I tested using an 11.0 box.&lt;BR /&gt;&lt;BR /&gt;For anyone that doesn't know mknod /dev/zero &lt;MAJOR&gt; &lt;MINOR&gt;&lt;BR /&gt;&lt;BR /&gt;I know this is an old thread, but wanted to clarify in case anyone else ran across this thread.&lt;BR /&gt;&lt;BR /&gt;Bryan Payne&lt;BR /&gt;Senior Unix Admin&lt;BR /&gt;Levi Strauss&lt;BR /&gt;bryan_payne@yahoo.com&lt;/MINOR&gt;&lt;/MAJOR&gt;</description>
      <pubDate>Thu, 11 Jul 2002 15:28:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dev-zero-on-hp-ux-11/m-p/2526078#M892618</guid>
      <dc:creator>Bryan Payne</dc:creator>
      <dc:date>2002-07-11T15:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: /dev/zero on HP-UX 11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-zero-on-hp-ux-11/m-p/2526079#M892619</link>
      <description>Correction:&lt;BR /&gt;mknod /dev/zero &lt;MAJOR&gt; &lt;MINOR&gt;&lt;BR /&gt;&lt;BR /&gt;Should be:&lt;BR /&gt;mknod /dev/zero c &lt;MAJOR&gt; &lt;MINOR&gt;&lt;/MINOR&gt;&lt;/MAJOR&gt;&lt;/MINOR&gt;&lt;/MAJOR&gt;</description>
      <pubDate>Thu, 11 Jul 2002 15:30:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dev-zero-on-hp-ux-11/m-p/2526079#M892619</guid>
      <dc:creator>Bryan Payne</dc:creator>
      <dc:date>2002-07-11T15:30:54Z</dc:date>
    </item>
  </channel>
</rss>

