<?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: Recreating /dev/null in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/recreating-dev-null/m-p/2589799#M32745</link>
    <description>Hey all,&lt;BR /&gt;&lt;BR /&gt;Found this post about this very thing...&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://us-support2.external.hp.com/cki/bin/doc.pl/sid=74dede071df77c4168/screen=ckiDisplayDocument?docId=200000024603238" target="_blank"&gt;http://us-support2.external.hp.com/cki/bin/doc.pl/sid=74dede071df77c4168/screen=ckiDisplayDocument?docId=200000024603238&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Basically, its this:&lt;BR /&gt;&lt;BR /&gt;To recreate /dev/null, follow these steps as a superuser:     &lt;BR /&gt;# rm /dev/null&lt;BR /&gt;# mknod /dev/null c 3 0x000002     &lt;BR /&gt;# chown bin /dev/null&lt;BR /&gt;# chgrp bin /dev/null     &lt;BR /&gt;# chmod 666 /dev/null&lt;BR /&gt;&lt;BR /&gt;Does this seem correct?&lt;BR /&gt;&lt;BR /&gt;-Tim&lt;BR /&gt;</description>
    <pubDate>Thu, 04 Oct 2001 14:42:46 GMT</pubDate>
    <dc:creator>Timothy Czarnik</dc:creator>
    <dc:date>2001-10-04T14:42:46Z</dc:date>
    <item>
      <title>Recreating /dev/null</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recreating-dev-null/m-p/2589798#M32744</link>
      <description>Hey all,&lt;BR /&gt;&lt;BR /&gt;First off, this is a Unisys box running SVr4 (System Five, revision Four I think is how its said).&lt;BR /&gt;&lt;BR /&gt;Anywho, before I got here someone had removed the file /dev/null and then created a regular file in its place.  You can imagine the fun that this presents us from time to time :)&lt;BR /&gt;&lt;BR /&gt;Are there any special circumstances surrounding this file that I need to be aware of in order to use the mknod command to recreate it?  How do I find the major/minor number of this?&lt;BR /&gt;&lt;BR /&gt;-Tim</description>
      <pubDate>Thu, 04 Oct 2001 14:37:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recreating-dev-null/m-p/2589798#M32744</guid>
      <dc:creator>Timothy Czarnik</dc:creator>
      <dc:date>2001-10-04T14:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Recreating /dev/null</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recreating-dev-null/m-p/2589799#M32745</link>
      <description>Hey all,&lt;BR /&gt;&lt;BR /&gt;Found this post about this very thing...&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://us-support2.external.hp.com/cki/bin/doc.pl/sid=74dede071df77c4168/screen=ckiDisplayDocument?docId=200000024603238" target="_blank"&gt;http://us-support2.external.hp.com/cki/bin/doc.pl/sid=74dede071df77c4168/screen=ckiDisplayDocument?docId=200000024603238&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Basically, its this:&lt;BR /&gt;&lt;BR /&gt;To recreate /dev/null, follow these steps as a superuser:     &lt;BR /&gt;# rm /dev/null&lt;BR /&gt;# mknod /dev/null c 3 0x000002     &lt;BR /&gt;# chown bin /dev/null&lt;BR /&gt;# chgrp bin /dev/null     &lt;BR /&gt;# chmod 666 /dev/null&lt;BR /&gt;&lt;BR /&gt;Does this seem correct?&lt;BR /&gt;&lt;BR /&gt;-Tim&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Oct 2001 14:42:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recreating-dev-null/m-p/2589799#M32745</guid>
      <dc:creator>Timothy Czarnik</dc:creator>
      <dc:date>2001-10-04T14:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Recreating /dev/null</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recreating-dev-null/m-p/2589800#M32746</link>
      <description>That sounds about right.  I checked on my system and that's how its set up here.&lt;BR /&gt;&lt;BR /&gt;-Santosh</description>
      <pubDate>Thu, 04 Oct 2001 14:44:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recreating-dev-null/m-p/2589800#M32746</guid>
      <dc:creator>Santosh Nair_1</dc:creator>
      <dc:date>2001-10-04T14:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Recreating /dev/null</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recreating-dev-null/m-p/2589801#M32747</link>
      <description>Hold on Guys, this is an Unisys box. I would not assume that those are the correct major/minor device numbers without more digging.&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Oct 2001 14:49:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recreating-dev-null/m-p/2589801#M32747</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-10-04T14:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Recreating /dev/null</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recreating-dev-null/m-p/2589802#M32748</link>
      <description>Hey all,&lt;BR /&gt;&lt;BR /&gt;I looked on the development box, and it seems those numbers are correct.  The output of 'ls -l /dev/null' below shows it...&lt;BR /&gt;&lt;BR /&gt;crw-rw-rw-   1 root     sys        2,  2 Oct  4 11:00 /dev/null&lt;BR /&gt; &lt;BR /&gt;I looked at the man page for mknod on the Unisys server, and it says you can specify the major/minors as decimal or hex, so it loks like this is what I need to do...&lt;BR /&gt;&lt;BR /&gt;-Tim&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Oct 2001 14:54:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recreating-dev-null/m-p/2589802#M32748</guid>
      <dc:creator>Timothy Czarnik</dc:creator>
      <dc:date>2001-10-04T14:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Recreating /dev/null</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recreating-dev-null/m-p/2589803#M32749</link>
      <description>Actually, upon second look, the numbers are not the same.  The major is different...&lt;BR /&gt;&lt;BR /&gt;-Tim&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Oct 2001 14:55:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recreating-dev-null/m-p/2589803#M32749</guid>
      <dc:creator>Timothy Czarnik</dc:creator>
      <dc:date>2001-10-04T14:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Recreating /dev/null</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recreating-dev-null/m-p/2589804#M32750</link>
      <description>Great in that case all you need to do is:&lt;BR /&gt;mknod /dev/null c 2 2 &lt;BR /&gt;chown bin:bin /dev/null&lt;BR /&gt;chmod 666 /dev/null&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Oct 2001 14:58:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recreating-dev-null/m-p/2589804#M32750</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-10-04T14:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Recreating /dev/null</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recreating-dev-null/m-p/2589805#M32751</link>
      <description>Thanks guys!  That did the trick.&lt;BR /&gt;&lt;BR /&gt;By the way, have I mentioned lately how much I LOVE THESE FORUMS!&lt;BR /&gt;&lt;BR /&gt;Thanks again!&lt;BR /&gt;&lt;BR /&gt;-Tim&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Oct 2001 15:04:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recreating-dev-null/m-p/2589805#M32751</guid>
      <dc:creator>Timothy Czarnik</dc:creator>
      <dc:date>2001-10-04T15:04:10Z</dc:date>
    </item>
  </channel>
</rss>

