- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- /dev/null recreation
-
-
Categories
- Topics
- Hybrid IT with Cloud
- Mobile & IoT
- IT for Data & Analytics
- Transformation
- Strategy and Technology
- Products
- Cloud
- Integrated Systems
- Networking
- Servers and Operating Systems
- Services
- Storage
- Company
- Events
- Partner Solutions and Certifications
- Welcome
- Welcome
- Announcements
- Tips and Tricks
- Feedback
-
Blogs
- Alliances
- Around the Storage Block
- Behind the scenes @ Labs
- Converged Data Center Infrastructure
- Digital Transformation
- Grounded in the Cloud
- HPE Careers
- HPE Storage Tech Insiders
- Infrastructure Insights
- Inspiring Progress
- Internet of Things (IoT)
- My Learning Certification
- Networking
- OEM Solutions
- Servers: The Right Compute
- Telecom IQ
- Transforming IT
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Enterprise.nxt
- Marketplace
- Aruba Airheads Community
-
Categories
-
Forums
-
Blogs
-
InformationEnglish
/dev/null recreation
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-14-2011 12:03 PM
03-14-2011 12:03 PM
/dev/null recreation
/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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-14-2011 12:58 PM
03-14-2011 12:58 PM
Re: /dev/null recreation
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-14-2011 02:38 PM
03-14-2011 02:38 PM
Re: /dev/null recreation
Re: /dev/null recreation
any better ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-14-2011 02:49 PM
03-14-2011 02:49 PM
Re: /dev/null recreation
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-14-2011 04:13 PM
03-14-2011 04:13 PM
Re: /dev/null recreation
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
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2018 Hewlett Packard Enterprise Development LP