- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Recreating /dev/null
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2001 07:37 AM
10-04-2001 07:37 AM
First off, this is a Unisys box running SVr4 (System Five, revision Four I think is how its said).
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 :)
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?
-Tim
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2001 07:42 AM
10-04-2001 07:42 AM
Re: Recreating /dev/null
Found this post about this very thing...
http://us-support2.external.hp.com/cki/bin/doc.pl/sid=74dede071df77c4168/screen=ckiDisplayDocument?docId=200000024603238
Basically, its this:
To recreate /dev/null, follow these steps as a superuser:
# rm /dev/null
# mknod /dev/null c 3 0x000002
# chown bin /dev/null
# chgrp bin /dev/null
# chmod 666 /dev/null
Does this seem correct?
-Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2001 07:44 AM
10-04-2001 07:44 AM
Re: Recreating /dev/null
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2001 07:49 AM
10-04-2001 07:49 AM
Re: Recreating /dev/null
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2001 07:54 AM
10-04-2001 07:54 AM
Re: Recreating /dev/null
I looked on the development box, and it seems those numbers are correct. The output of 'ls -l /dev/null' below shows it...
crw-rw-rw- 1 root sys 2, 2 Oct 4 11:00 /dev/null
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...
-Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2001 07:55 AM
10-04-2001 07:55 AM
Re: Recreating /dev/null
-Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2001 07:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2001 08:04 AM
10-04-2001 08:04 AM
Re: Recreating /dev/null
By the way, have I mentioned lately how much I LOVE THESE FORUMS!
Thanks again!
-Tim