- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /dev/null recreation
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
Discussions
Discussions
Forums
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
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
тАО03-14-2011 12:03 PM
тАО03-14-2011 12:03 PM
/dev/null recreation
OS B.11.11
Model 9000/800/rp4440
some how my /dev/null become ordinary file..
ignit_02(OVO8):/dev (root) ll null
-rw-rw-rw- 1 root sys 0 Mar 14 15:18 null
ignit_02(OVO8):/dev (root)
what i did mv null to /tmp
then try to recreate it
#mknod /dev/null c 3 0x000002
whenever i am trying it shows null exists.
even when i remove it again it has been craeted
ignit_02(OVO8):/dev (root) rm /dev/null
ignit_02(OVO8):/dev (root) ll|grep null
lrwxr-xr-x 1 root root 9 Feb 6 2007 dtremote -> /dev/null
-rw-r--r-- 1 root sys 0 Mar 14 16:00 null
-rw-rw-rw- 1 root sys 0 Jul 28 2005 null0
ignit_02(OVO8):/dev (root)
could you please help me...
Regards,
Ani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2011 12:32 PM - last edited on тАО07-13-2011 02:51 PM by Kevin_Paul
тАО03-14-2011 12:32 PM - last edited on тАО07-13-2011 02:51 PM by Kevin_Paul
Re: /dev/null recreation
Shalom Ani,
Remove the regular file.
Recreate the file.
http://h30499.www3.hp.com/t5/System-Administration/Recreating-dev-null/m-p/2589798#M32744
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2011 12:58 PM
тАО03-14-2011 12:58 PM
Re: /dev/null recreation
xxx02(OVO8):/dev (root) rm /dev/null
delovo02(OVO8):/dev (root) ll|grep null
lrwxr-xr-x 1 root root 9 Feb 6 2007 dtremote -> /dev/null
-rw-r--r-- 1 root sys 0 Mar 14 16:00 null
-rw-rw-rw- 1 root sys 0 Jul 28 2005 null0
xxx02(OVO8):/dev (root)
======================
can i copy it from other box? it is our production server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2011 02:38 PM
тАО03-14-2011 02:38 PM
Re: /dev/null recreation
any better ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2011 02:49 PM
тАО03-14-2011 02:49 PM
Re: /dev/null recreation
xxx02(OVO8):/dev (root) rm /dev/null
delovo02(OVO8):/dev (root) ll|grep null
lrwxr-xr-x 1 root root 9 Feb 6 2007 dtremote -> /dev/null
-rw-r--r-- 1 root sys 0 Mar 14 16:00 null
-rw-rw-rw- 1 root sys 0 Jul 28 2005 null0
xxx02(OVO8):/dev (root)
======================
can i copy it from other box? it is our production server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2011 04:13 PM
тАО03-14-2011 04:13 PM
Re: /dev/null recreation
You'll have to reboot into single user mode to stop all the processes that are using /dev/null. Then run the commands:
rm /dev/null
mknod /dev/null c 3 2
Now you can reboot into multi-user mode.
I see /dev/null0 which is a mistake. There must be no ordinary files in /dev. Look for these mistakes like this:
find /dev -type f
Whatever is reported should be removed.
Bill Hassell, sysadmin