1834429 Members
2352 Online
110067 Solutions
New Discussion

/dev/null

 
Ritesh_8
Occasional Contributor

/dev/null

1)Anyone knows how /dev/null or /dev/zero have been implemented?
2)Ever tried removing /dev/null or /dev/zero and rebooting?
3)How does one recover?
3 REPLIES 3
Robert-Jan Goossens
Honored Contributor

Re: /dev/null

Hi,

Take a look at this thread.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=48674

Regards,
Robert-Jan
Mark Grant
Honored Contributor

Re: /dev/null

Well, to recover, you will need to re-create the device files. I doubt if insf will create them for you. You can recreate them as follows

mknod /dev/null c 3 0x000002

and

mknod /dev/null c 3 0x000004
Never preceed any demonstration with anything more predictive than "watch this"
Robert-Jan Goossens
Honored Contributor

Re: /dev/null

# mknod /dev/null c 3 0x000002
# chown bin:bin /dev/null
# chmod 666 /dev/null

# mknod /dev/zero c 3 0x000004
# chown bin:bin /dev/zero
# chmod 666 /dev/zero

Regards,
Robert-Jan